You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2012/02/21 12:59:58 UTC

DO NOT REPLY [Bug 52728] New: CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

             Bug #: 52728
           Summary: CSV Data Set Config element cannot coexist with BSF
                    Sampler in same Thread Plan
           Product: JMeter
           Version: 2.6
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: issues@jmeter.apache.org
        ReportedBy: ext-bakir.jusufbegovic@nokia.com
    Classification: Unclassified


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:
1. Sharing of variables between CSV Data Set Config and BSF Sampler component
shouldnt be permitted
2. Chosen value from Script File drop down menu in BSF Sampler should remain
even if we change focus from that component

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

--- Comment #3 from Bakir Jusufbegovic <ex...@nokia.com> 2012-02-21 12:24:33 UTC ---
Created attachment 28358
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28358
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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

--- Comment #2 from Bakir Jusufbegovic <ex...@nokia.com> 2012-02-21 12:23:09 UTC ---
In orer

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
         OS/Version|                            |All

--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> 2012-02-21 12:13:27 UTC ---
Please submit a simplified Test Plan to reproduce the issue.
Regards

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #4 from Sebb <se...@apache.org> 2012-02-21 12:36:04 UTC ---
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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

--- Comment #10 from jomebrew <jo...@gmail.com> 2012-04-03 21:32:27 UTC ---
Created attachment 28541
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28541
simple example

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Sebb <se...@apache.org> 2012-02-24 01:12:49 UTC ---
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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

--- Comment #9 from jomebrew <jo...@gmail.com> 2012-04-03 21:31:56 UTC ---
(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

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

--- Comment #5 from Sebb <se...@apache.org> 2012-02-23 21:17:09 UTC ---
Created attachment 28375
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28375
Possible patch to prevent CSVDataset from affecting BSF Sampler

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

--- Comment #6 from Sebb <se...@apache.org> 2012-02-23 23:42:29 UTC ---
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?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 52728] CSV Data Set Config element cannot coexist with BSF Sampler in same Thread Plan

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52728

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jomebrew@gmail.com

--- Comment #8 from Philippe Mouawad <p....@ubik-ingenierie.com> 2012-04-03 20:28:16 UTC ---
*** Bug 53030 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.