0

Response assertion failure for below assertion with DB? how to fix it?

XML value

enter image description here

DB table

enter image description here

enter image description here

2

You need to tick JMeter Variable radiobutton in order to make this work as you expect

JMeter Response Assertion

Your current setup is comparing ${imageurl_1} with the parent sampler response.

See documentation on Response Assertion and How to Use JMeter Assertions in Three Easy Steps guide for more details.

Also be aware that you can check JMeter Variables names and values using Debug Sampler

| improve this answer | |
  • Thanks Dimitri T for reminding me to tick JMeter Variable and see my another requirment in below question. – lak May 31 '17 at 5:38
0

For below details how is it possible to set values for Response assertion? only image URL path saved in DB and need to match with full image URL in XML?

enter image description here

Test failed for these configuration

Assertion failure message: Test failed: variable IMAGEURL expected to equal /

****** received : [[[http://tcc.cad/abc/klj.jpg]]]/abc/klj.jpg

****** comparison: [[[ ]]]/abc/klj.jpg

Test failed for these configuration

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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