0
votes

I have to do performance testing for ipad application. There is scenario in which i have to read the token id from the response and use this token id in my next request. I used the regular expression extractor, but when i used the variable in next request i.e. ${tokenid}, it wasn't replaced with the captured value. When i look at View Result tree, it is simply requesting the variable instead of token. Here is the regular expression extractor

1
I didn't working out for me. Here is request which is hitting to server. POST data: {"Token":"${tokenid}"} The "tokenid" is not replacing by the actual value - mdashu
Please show the test plan screenshot, at least previous sampler and children and the one with var, also show response that contains token - UBIK LOAD PACK

1 Answers

0
votes

There is at least an error where you must check:

  • Body

instead of checking :

  • Response Code

in Regular Expression Extractor

You can use View Result to check your regexp:

enter image description here

Finally regexp should be:

"Token":"([^"]+?)"