Closed asfimport closed 12 years ago
@pmouawad (migrated from Bugzilla): Please submit a simplified Test Plan to reproduce the issue. Regards
Bakir Jusufbegovic (migrated from Bugzilla): In orer
Bakir Jusufbegovic (migrated from Bugzilla): Attached is simplified Test Plan that shows this defect. In this test plan there are two samplers:
BeanShell Sampler will work without a problem but BSF will fail.
Created attachment BUG-52728.zip: Simplified Test Plan
Sebb (migrated from Bugzilla): The problem is that the Config element variables from CSV Dataset are being merged into the variables for the BSF sampler. It so happens that they both use the same name, whereas BSH uses a different name.
This may not be easy to fix, as we need to maintain backwards compatibility.
Sebb (migrated from Bugzilla): Created attachment bug52728.patch: Possible patch to prevent CSVDataset from affecting BSF Sampler
Sebb (migrated from Bugzilla): Just realised that patch won't build with Ant, because CSVDataSet (components) is compiled after TestCompiler (core).
Could perhaps use a marker interface for Config elements that are stand-alone?
Sebb (migrated from Bugzilla): Fixed using new marker interface.
URL: http://svn.apache.org/viewvc?rev=1293052&view=rev Log: https://github.com/apache/jmeter/issues/2747 - CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan
Added: jmeter/trunk/src/core/org/apache/jmeter/engine/util/NoConfigMerge.java (with props) Modified: jmeter/trunk/src/components/org/apache/jmeter/config/CSVDataSet.java jmeter/trunk/src/core/org/apache/jmeter/threads/TestCompiler.java jmeter/trunk/xdocs/changes.xml
jomebrew (migrated from Bugzilla): (In reply to comment 8)
https://github.com/apache/jmeter/issues/2801 has been marked as a duplicate of this bug.
Replaced the Bin and Lib directories with the last night (4/03) build.
Still has same problem.
Attaching simple procedure
jomebrew (migrated from Bugzilla): Created attachment BSF_Sampler_FileNotFound.jmx: simple example
Bakir Jusufbegovic (Bug 52728): Here is a quick overview of the problem:
If there is a BSF sampler in JMeter script and also CSV Data Set Config that loads some external file like *.csv, for some reason, that represents a sign to BSF Sampler that this external file is BSF Script that needs to be loaded in JMeter during execution of the script (In general, these two components shouldn’t have anything to do with each other and variable from CSV Data Set Config shouldn’t be visible from BSF Sampler component). Because it cannot find this file on the path, error with following message will happen:
Response message: java.io.FileNotFoundException: ${SOME_FILE_PATH} (The system cannot find the file specified)
Also, with new JMeter 2.6 following drop down menu was added: Script file (overrides script) When trying to change value from drop down menu and then change focus to some other element and then retrieve back, drop down menu value was reset so it will always try to load bsf script from external file.
I think that two fixes need to be introduced:
Severity: normal OS: All
Duplicates: