Correlated variable not getting evaluated
up vote
1
down vote
favorite
I have created an regular expression to extract CSRF token from the HTTP Headers and storing the value in the reference name CSRF_TOKEN by following this How to Load Test CSRF-Protected Web Sites
I using this variable in POST Parameters of another HttpRequest as below
csrfmiddlewaretoken=${CSRF_TOKEN}
Here ${CSRF_TOKEN} is not getting evaluated and the server is getting the middleware token as csrfmiddlewaretoken=%24%7BCSRF_TOKEN%7D
jmeter load-testing jmeter-plugins
add a comment |
up vote
1
down vote
favorite
I have created an regular expression to extract CSRF token from the HTTP Headers and storing the value in the reference name CSRF_TOKEN by following this How to Load Test CSRF-Protected Web Sites
I using this variable in POST Parameters of another HttpRequest as below
csrfmiddlewaretoken=${CSRF_TOKEN}
Here ${CSRF_TOKEN} is not getting evaluated and the server is getting the middleware token as csrfmiddlewaretoken=%24%7BCSRF_TOKEN%7D
jmeter load-testing jmeter-plugins
can you show your regular expression extractor ?
– UBIK LOAD PACK
Nov 10 at 22:02
in addition to @UBIK LOAD PACK requested, can you also please post the response which you are using to extract the value
– M Navneet Krishna
Nov 11 at 6:30
Here is my regular expression after my fix: Set-Cookie: csrftoken=(.+?); And the response headers are HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 X-Frame-Options: SAMEORIGIN Vary: Cookie Content-Length: 21901 Set-Cookie: csrftoken=R03ysqEIIn0NVFjQchFjTxdXYfwl37AIFUyTO9lElMBishgu8ao0SoJqZlEoinXO; expires=Sat, 09-Nov-2019 21:18:33 GMT; Max-Age=31449600; Path=/
– Murthy
Nov 11 at 7:38
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have created an regular expression to extract CSRF token from the HTTP Headers and storing the value in the reference name CSRF_TOKEN by following this How to Load Test CSRF-Protected Web Sites
I using this variable in POST Parameters of another HttpRequest as below
csrfmiddlewaretoken=${CSRF_TOKEN}
Here ${CSRF_TOKEN} is not getting evaluated and the server is getting the middleware token as csrfmiddlewaretoken=%24%7BCSRF_TOKEN%7D
jmeter load-testing jmeter-plugins
I have created an regular expression to extract CSRF token from the HTTP Headers and storing the value in the reference name CSRF_TOKEN by following this How to Load Test CSRF-Protected Web Sites
I using this variable in POST Parameters of another HttpRequest as below
csrfmiddlewaretoken=${CSRF_TOKEN}
Here ${CSRF_TOKEN} is not getting evaluated and the server is getting the middleware token as csrfmiddlewaretoken=%24%7BCSRF_TOKEN%7D
jmeter load-testing jmeter-plugins
jmeter load-testing jmeter-plugins
edited Nov 10 at 20:17
jonrsharpe
76k1098203
76k1098203
asked Nov 10 at 20:15
Murthy
616
616
can you show your regular expression extractor ?
– UBIK LOAD PACK
Nov 10 at 22:02
in addition to @UBIK LOAD PACK requested, can you also please post the response which you are using to extract the value
– M Navneet Krishna
Nov 11 at 6:30
Here is my regular expression after my fix: Set-Cookie: csrftoken=(.+?); And the response headers are HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 X-Frame-Options: SAMEORIGIN Vary: Cookie Content-Length: 21901 Set-Cookie: csrftoken=R03ysqEIIn0NVFjQchFjTxdXYfwl37AIFUyTO9lElMBishgu8ao0SoJqZlEoinXO; expires=Sat, 09-Nov-2019 21:18:33 GMT; Max-Age=31449600; Path=/
– Murthy
Nov 11 at 7:38
add a comment |
can you show your regular expression extractor ?
– UBIK LOAD PACK
Nov 10 at 22:02
in addition to @UBIK LOAD PACK requested, can you also please post the response which you are using to extract the value
– M Navneet Krishna
Nov 11 at 6:30
Here is my regular expression after my fix: Set-Cookie: csrftoken=(.+?); And the response headers are HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 X-Frame-Options: SAMEORIGIN Vary: Cookie Content-Length: 21901 Set-Cookie: csrftoken=R03ysqEIIn0NVFjQchFjTxdXYfwl37AIFUyTO9lElMBishgu8ao0SoJqZlEoinXO; expires=Sat, 09-Nov-2019 21:18:33 GMT; Max-Age=31449600; Path=/
– Murthy
Nov 11 at 7:38
can you show your regular expression extractor ?
– UBIK LOAD PACK
Nov 10 at 22:02
can you show your regular expression extractor ?
– UBIK LOAD PACK
Nov 10 at 22:02
in addition to @UBIK LOAD PACK requested, can you also please post the response which you are using to extract the value
– M Navneet Krishna
Nov 11 at 6:30
in addition to @UBIK LOAD PACK requested, can you also please post the response which you are using to extract the value
– M Navneet Krishna
Nov 11 at 6:30
Here is my regular expression after my fix: Set-Cookie: csrftoken=(.+?); And the response headers are HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 X-Frame-Options: SAMEORIGIN Vary: Cookie Content-Length: 21901 Set-Cookie: csrftoken=R03ysqEIIn0NVFjQchFjTxdXYfwl37AIFUyTO9lElMBishgu8ao0SoJqZlEoinXO; expires=Sat, 09-Nov-2019 21:18:33 GMT; Max-Age=31449600; Path=/
– Murthy
Nov 11 at 7:38
Here is my regular expression after my fix: Set-Cookie: csrftoken=(.+?); And the response headers are HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 X-Frame-Options: SAMEORIGIN Vary: Cookie Content-Length: 21901 Set-Cookie: csrftoken=R03ysqEIIn0NVFjQchFjTxdXYfwl37AIFUyTO9lElMBishgu8ao0SoJqZlEoinXO; expires=Sat, 09-Nov-2019 21:18:33 GMT; Max-Age=31449600; Path=/
– Murthy
Nov 11 at 7:38
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
It got resolved. I identified that, if the regular expression is not matching any value and there is no default value specified, then JMeter is not treating as a dynamic variable. I corrected it by fixing regular expression. it starts working. Thank you.
you should accept your answer also.
– UBIK LOAD PACK
Nov 11 at 9:36
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
It got resolved. I identified that, if the regular expression is not matching any value and there is no default value specified, then JMeter is not treating as a dynamic variable. I corrected it by fixing regular expression. it starts working. Thank you.
you should accept your answer also.
– UBIK LOAD PACK
Nov 11 at 9:36
add a comment |
up vote
2
down vote
It got resolved. I identified that, if the regular expression is not matching any value and there is no default value specified, then JMeter is not treating as a dynamic variable. I corrected it by fixing regular expression. it starts working. Thank you.
you should accept your answer also.
– UBIK LOAD PACK
Nov 11 at 9:36
add a comment |
up vote
2
down vote
up vote
2
down vote
It got resolved. I identified that, if the regular expression is not matching any value and there is no default value specified, then JMeter is not treating as a dynamic variable. I corrected it by fixing regular expression. it starts working. Thank you.
It got resolved. I identified that, if the regular expression is not matching any value and there is no default value specified, then JMeter is not treating as a dynamic variable. I corrected it by fixing regular expression. it starts working. Thank you.
answered Nov 11 at 4:06
Murthy
616
616
you should accept your answer also.
– UBIK LOAD PACK
Nov 11 at 9:36
add a comment |
you should accept your answer also.
– UBIK LOAD PACK
Nov 11 at 9:36
you should accept your answer also.
– UBIK LOAD PACK
Nov 11 at 9:36
you should accept your answer also.
– UBIK LOAD PACK
Nov 11 at 9:36
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243033%2fcorrelated-variable-not-getting-evaluated%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
can you show your regular expression extractor ?
– UBIK LOAD PACK
Nov 10 at 22:02
in addition to @UBIK LOAD PACK requested, can you also please post the response which you are using to extract the value
– M Navneet Krishna
Nov 11 at 6:30
Here is my regular expression after my fix: Set-Cookie: csrftoken=(.+?); And the response headers are HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 X-Frame-Options: SAMEORIGIN Vary: Cookie Content-Length: 21901 Set-Cookie: csrftoken=R03ysqEIIn0NVFjQchFjTxdXYfwl37AIFUyTO9lElMBishgu8ao0SoJqZlEoinXO; expires=Sat, 09-Nov-2019 21:18:33 GMT; Max-Age=31449600; Path=/
– Murthy
Nov 11 at 7:38