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

           Summary: Having a beanshell sampler in a http test plan
                    prevents http header manager from working
           Product: JMeter
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created an attachment (id=26671)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=26671)
testplan demonstrating this issue

Steps to reproduce:
- build up a testplan ass followed (testplan attached) and execute it:
/
|- Test Plan
   |- MyThreadGroup
       |- HttpRequest Sampler 1
       |- Beanshell Sampler
       |- HttpRequest Sampler 2
       |- 2ndLevel HttpHeaderManager
   |- 1stLevel HttpHeaderManager
|- WorkBench

Expected behavior: 
- The header sent by 'HttpRequest Sampler 1' contains the values configured in
'1stLevel HttpHeaderManager' and '2ndLevel HttpHeaderManager'
- The header sent by 'HttpRequest Sampler 2' contains the values configured in
'1stLevel HttpHeaderManager' and '2ndLevel HttpHeaderManager'

Actual behavior:
- The header sent by 'HttpRequest Sampler 1' contains all expected values
- The header sent by 'HttpRequest Sampler 2' contains only the values
configured in '1stLevel HttpHeaderManager'

Notes:
- it seems that the used beanshell sampler prevents the '2ndLevel
HttpHeaderManager' from setting its header values to all HttpRequest Samplers
which are positioned below/after the beanshell sampler.
- the log file doesn't show any errors or other abnormalities.
- if only one 'http header manager' (it doesn't matter which one in the example
mentioned above) is used, the header values are set as expected.

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to