You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2008/12/16 17:18:23 UTC
DO NOT REPLY [Bug 46407] New: BSF Postprocessor does not load script
files, attempts to interpret filename as script
https://issues.apache.org/bugzilla/show_bug.cgi?id=46407
Summary: BSF Postprocessor does not load script files, attempts
to interpret filename as script
Product: JMeter
Version: Nightly (Please specify date)
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: Main
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: NTmatter@gmail.com
When specifying a script file in the BSF post-processor, the filename is
treated as a code snippet instead of being loaded, taking precedence over the
regular script.
This likely also affects the BSF Preprocessor, Assertion, and Listener, as they
all call the BSFTestElement.processFileOrScript(BSFManager) method. The
processFileOrScript method currently takes the filename and passes it directly
to the script manager for evaluation instead of loading the file and passing
its contents to the script manager.
Steps to Reproduce:
- Create new Test Plan
- Add a new Thread Group
- Add a new sampler (tested with a Debug Sampler)
- Add a new BSF Postprocessor
- Choose an available BSF language (Tested with "javascript")
- Input valid javascript as filename (Tested with OUT.println("--- filename
---"))
- Input valid javascript as script (Tested with OUT.println("--- script
---");)
- Execute test
Expected Results:
- Postprocessor fails, unable to find file
Actual Results:
- Console output: "--- filename ---"
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46407] BSF Postprocessor does not load script
files, attempts to interpret filename as script
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46407
--- Comment #2 from Thomas Johnson <NT...@gmail.com> 2008-12-16 08:22:54 PST ---
Affects nightly build from r724447 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=724447 )
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46407] BSF elements do not load script files,
attempt to interpret filename as script
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46407
Sebb <se...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Summary|BSF Postprocessor does not |BSF elements do not load
|load script files, attempts |script files, attempt to
|to interpret filename as |interpret filename as script
|script |
--- Comment #3 from Sebb <se...@apache.org> 2008-12-19 19:55:44 PST ---
Thanks for the bug report.
The code for processing script files was completely broken - it did not bother
reading the file - oops!
Fixed in SVN in r728228 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=728228 )
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 46407] BSF Postprocessor does not load script
files, attempts to interpret filename as script
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46407
--- Comment #1 from Thomas Johnson <NT...@gmail.com> 2008-12-16 08:20:44 PST ---
Created an attachment (id=23031)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=23031)
Test case illustrating issue (watch the console output)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org