1

I have added regular expression extractor and able to obtain the taskid value, but when i have multiple task id's in same request, how to handle them ?

Here is my POST data: It's sending same taskid over and over again, instead of picking different taskid's from the payload request

[{"state":"COMPLETED","taskId":"345836","properties":[{"value":"2018-08-01T18:36:41.635Z","id":"deliveryDate"}]},{"state":"COMPLETED","taskId":"345836","properties":[{"value":"2018-08-01T18:36:41.635Z","id":"deliveryDate"}]}]

Here is my Payload request: Payload Request

Instead of taking different Task ID's , its using the same Task ID's again and again.

Please suggest what needs to be done to resolve this issue

2 Answers 2

0

To get different results in Regular expression extractor you need to change Match No. either

Use a value of zero to indicate JMeter should choose a match at random.

Or use

Negative numbers are used in conjunction with the ForEach Controller

Sign up to request clarification or add additional context in comments.

1 Comment

This option didnt work for me, is there any other way?
0

I am able to resolve this issue by using , Json extractor. enter image description here

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.