[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-dev
Subject:    DO NOT REPLY [Bug 46407] New: BSF Postprocessor does not load script
From:       bugzilla () apache ! org
Date:       2008-12-16 16:18:23
Message-ID: bug-46407-1333 () https ! issues ! apache ! org/bugzilla/
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic