Unanswered question

Variable extractor not fetching values during second loop execution

One of the variable extractor in my script, fetching the value during 1st loop execution and passing it through the script. But the same not fetching the value during repeated loop execution (when loop count is 2 or more)

Sumith H.
Sumith H.

Sumith H.

Level
0
43 / 100
points

Answers

Sumith H.
Sumith H.

Sumith H.

Level
0
43 / 100
points

State and Inmate Loop count = 2
'regionIsoCode' is extracted from '/shop/inmate-finder' from 'Search for State' transaction.
Extracted value is passed into '/shop/inmate-finder/region' at 'Select State' transaction.

(Loop1) 1st time value is extracted and passed into correctly.

(Loop2) But when 2nd time, 'regionIsoCode' is not being extracted, throws error <not-found>

I want 'regionIsoCode' to be extracted multiple times with respective loop count and to be passed on to the script.

Looking at your screen shots it seems that your variable extractor is configured to extract all occurrences. Do you need to evaluate the extraction on each loop iteration?

Also if the second extraction returns <NOT FOUND> that probably means that the server response is not the expected one. You should check on your check virtual user output to check the server response on the second iteration so you can figure out why the second time the variable extractor does not match anything.

Sumith H.
Sumith H.

Sumith H.

Level
0
43 / 100
points

Thank you for your support.

Yes, i need to evaluate the extraction on each loop iteration. Please suggest.

Response : HTTP/1.1 302 Found

Assertion : Variable 'extractedRegionCode' extraction failed. No match found for expression: 'isocodeShort" : "(.*?)",'