3

According to my previous example How to get API response XML values in to variables in Jmeter tool for matching purpose with DB?

first time run API shown in Jmeter -> Xapth tester

enter image description here

this is defined in jmeter Pattern to test ${ID_1} - Value in DB Dynamically changing so it will fail the result in API - Response Assertion on another day

enter image description here

Due to this in jmeter -> Pattern to test value should be ${ID_2} []

So How To Resolve this issue?

====DB table values shown below ===

enter image description here

enter image description here

1 Answer 1

1

You can use Contains instead of Equals and then check for XML tag, in your case Patterns to Test:

<Id>${ID_1}</Id>

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.