I am using J meter tool, I need to send the user name along with the HTTP header data so that I can see in the access log which user is failing. I tried adding the variable in the header Manager: user name : ${variable} The variable i am reading form config data file when I run this I don't even see the variable send in the request in the access logs. Can any one please help!
-
Is the http header manager within the scope of the request itself?Ophir Prusak– Ophir Prusak2013-12-05 13:57:50 +00:00Commented Dec 5, 2013 at 13:57
-
I have tried adding the http header manager in the sampler and even tried removing from each sample and adding one in the loop controller. but its not workingGagan Singh Johar– Gagan Singh Johar2013-12-06 17:15:54 +00:00Commented Dec 6, 2013 at 17:15
-
Can you add a few screenshots?olyv– olyv2013-12-07 09:53:27 +00:00Commented Dec 7, 2013 at 9:53
Add a comment
|
1 Answer
First of all, you can not have spaces in HTTP Headers.
You'll have to change your user name header name to something like username or user-name elsewise your request will be rejected by HTTP server (if not earlier)
See Using JMeter's HTTP Header Manager guide for details.