Answered question

To Extract only Relevant Value from Huge Server response

I am trying to capture 2 values at a time using regular expressions from a huge server response. I am interested only in 2 values ā€“ ID & Estimate availability and have to pass the Document ID captured in a subsequent POST Parameter request. Can a Single regular expression can be written to capture only interested values and pass on to the subsequent requests.

Shivani R.
Shivani R.

Shivani R.

Level
0
13 / 100
points

You can use one or two separate variable extractors. NeoLoad will load only once the response data so it should not impact the memory footprint even if you use two successive variable extractors on the same response.

If you really want to extract with one extractor you could use the one below in advanced mode:

{"ID":(\d*?),"Title"[\s\S]*?SharedDocs":\[\],"(.*?)":false,"IsPendingEstimates"

If you call your variable foo, you can call your two values with ${foo_g1} and ${foo_g2}

Did you find this useful ?

No (0)

Yes (0)

0% of users found this answer useful