0

Test results as advised by Dimitri TCan any one help to resolve this?

enter image description here?

[![]3[][1]]4

enter image description here

0

You need to change your Response Assertion scope to Response Code

Assertion Response Code

Your default Text Response setting looks for 200 in the whole response body, HTTP status code isn't included into the body therefore your assertion fails.

It will also make sense to change "Pattern Matching Rules" to Equals to avoid matches in case when response code will be 2000 (unlikely though)

More information on using JMeter Assertions: How to Use JMeter Assertions in Three Easy Steps

  • @ Dmitri T how to print pass fail result – lak Feb 2 '17 at 4:05
  • Where do you want to print it? Normally if sampler is successful - assertion has passed and vice versa – Dmitri T Feb 2 '17 at 5:59
  • @ Dmitri I want to print test result in assertion result ? – lak Feb 2 '17 at 6:06
  • If you really need this, how about Assertion Results listener? However using listeners during load tests isn't recommended as they cause resources overhead, see Greedy Listeners - Memory Leeches of Performance Testing article for more details. – Dmitri T Feb 2 '17 at 6:14
  • im using this assertion listner but it will print HTTP request every time so i want to fix it? – lak Feb 2 '17 at 6:24

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.