api - How to extract ApiKey from Response Headers and use it in another HTTP request on Jmeter? -


i new jmeter user. have been using test apis. need extract api key response header , pass request.

for purpose have used regular expression extractor child of request returning api key , configured follows.

field checked: response headers reference name: api_key regular expression: "apikey":"(.+?)" template:$1$ other fields left 

and have added http header manager child of second request , configured follows:

name: apikey value: ${api_key} 

but it's not working.

it couldn't catch api key , passing variable ("${api_key}").

could please tell me doing wrong , how fix or there other way catch api key.

thanks!

what did looks ok, issue may in regexp.

to debug add debug sampler after first sampler , add default value regular expression extractor see if what's happening.

show response header contains key , sure there " ?


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -