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/08 00:44:37 UTC

DO NOT REPLY [Bug 52620] New: HTTP Sampler doesn't resolve ${__beanshell} function for HTTP POST request with un-named parameter

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

             Bug #: 52620
           Summary: HTTP Sampler doesn't resolve ${__beanshell} function
                    for HTTP POST request with un-named parameter
           Product: JMeter
           Version: 2.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: issues@jmeter.apache.org
        ReportedBy: inyabass@virginmedia.com
    Classification: Unclassified


Created attachment 28281
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=28281
HTTP Sampler snippet from project file

I have an HTTP Sampler node that does an HTTP POST request. It has exactly one
un-named parameter. The parameter value has an embedded ${__beanshell..}
function in it which is not been evaluated.

See attached XML Snippet from the project file. Note that line 4 defines a
parameter that has no explicit name.

<elementProp name="" elementType="HTTPArgument">

-- 
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 52620] HTTP Sampler doesn't resolve ${__beanshell} function for HTTP POST request with un-named parameter

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

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

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

--- Comment #2 from Sebb <se...@apache.org> 2012-02-08 00:32:38 UTC ---
Works fine for me if I replace the parameter with 

${__BeanShell("some stuff in here")}

so it's most likely a bug in the script. 

Check jmeter.log for any errors.

If you do find a problem, please re-open with a working test script that shows
the problem.

-- 
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 52620] HTTP Sampler doesn't resolve ${__beanshell} function for HTTP POST request with un-named parameter

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

--- Comment #1 from inyabass@virginmedia.com 2012-02-07 23:57:50 UTC ---
Clarification : When the Test is run, the ${__Beanshell..} function is not
being evaulated and is just being passed as-is in the HTTP POST Request.

-- 
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 52620] HTTP Sampler doesn't resolve ${__beanshell} function for HTTP POST request with un-named parameter

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

--- Comment #3 from inyabass@virginmedia.com 2012-02-08 01:14:01 UTC ---
OK Will do. I couldn't post the exact parm to the ${__Beanshell..} function for
confidentiality reasons. Chances are the function is failing and I need to
investigate further.

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