Test Plan :
* Recording Controller#1
> CSV UserName DateSet
> HTTP Request#1
> HTTP Request#2
- HttpHeader Manager
- Regular Expression Extractor
- JSR223 PostProcess [To Set property for UniqueTokenId value ]
> HTTP Request#3
- HttpHeader Manager [Passing UniqueTokenId value]
> HTTP Request#4
- HttpHeader Manager [Passing UniqueTokenId value]
> HTTP Request#5
- HttpHeader Manager [Passing UniqueTokenId value]
The above test plan I am saving unique Token value extracted in Regular Expression Extractor through JSR223 post script, this script contains only one sentence:
props.put("tokenID",vars.get("RgxUniqueToken"))
And this saved value Passed in HTTP Header Manager to all Successive Http requests.
This test plan works fine for single user as well as multiple users and shows 200 OK response. When I did QC of each request I found that jmeter is passing same tokenID value to all HTTP headers for each users (Thread) in multi user scenario. However the JSR223 post process get unique token value for each users. According my test plan it should pass unique value for each thread.
I do not understand what is wrong in my script. Can anyone have any other way to pass token id unique to each users (thread).