KingRabbid opened a new issue, #6064:
URL: https://github.com/apache/jmeter/issues/6064

   ### Expected behavior
   
   Using sampler.getHeaderManager() in a JSR223 PreProcessor attached to a HTTP 
Sampler returns current manager.
   When using this in a loop it should work.
   
   ### Actual behavior
   
   Using this in a Loop controller leads to retrieving a null manager from 
sampler upon 2nd iteration:
   ```
   2023-08-17 21:29:16,832 INFO o.a.j.m.J.JSR223 PreProcessor: sampler=class 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
   2023-08-17 21:29:16,832 INFO o.a.j.m.J.JSR223 PreProcessor: 
headerManager=org.apache.jmeter.protocol.http.control.HeaderManager@6e58c5cf
   2023-08-17 21:29:16,851 INFO o.a.j.p.h.s.HTTPHC4Impl: HTTP request retry 
count = 0
   2023-08-17 21:29:16,950 INFO o.a.j.m.J.JSR223 PreProcessor: sampler=class 
org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy
   2023-08-17 21:29:16,950 INFO o.a.j.m.J.JSR223 PreProcessor: 
headerManager=null
   
   ```
   
   ### Steps to reproduce the problem
   
   Attached sample JMX to prove the point.
   
[jmeter_loop_http_header_manager.zip](https://github.com/apache/jmeter/files/12372587/jmeter_loop_http_header_manager.zip)
   
   
   ### JMeter Version
   
   5.6.2
   
   ### Java Version
   
   Oracle JDK 11.0.17+10-LTS-269
   
   ### OS Version
   
   Windows 11


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to