Summary: | CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Bakir Jusufbegovic <ext-bakir.jusufbegovic> |
Component: | Main | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jomebrew, p.mouawad |
Priority: | P2 | ||
Version: | 2.6 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All | ||
Attachments: |
Simplified Test Plan
Possible patch to prevent CSVDataset from affecting BSF Sampler simple example |
Description
Bakir Jusufbegovic
2012-02-21 11:59:58 UTC
Please submit a simplified Test Plan to reproduce the issue. Regards In orer Created attachment 28358 [details]
Simplified Test Plan
Attached is simplified Test Plan that shows this defect.
In this test plan there are two samplers:
1. BSF Sampler
2. BeanShell Sampler
and one CSV Data Set Config
BeanShell Sampler will work without a problem but BSF will fail.
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. Created attachment 28375 [details]
Possible patch to prevent CSVDataset from affecting BSF Sampler
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? Fixed using new marker interface. URL: http://svn.apache.org/viewvc?rev=1293052&view=rev Log: Bug 52728 - 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 *** Bug 53030 has been marked as a duplicate of this bug. *** (In reply to comment #8) > *** Bug 53030 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 Created attachment 28541 [details]
simple example
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/2747 |