Multiple response assertions and Xpath assertions not working see below.could you please explain it with example?

enter image description here

enter image description here


I believe it would be a lot easier to use 4 separate assertions like:

JMeter several separate assertions.

Combining several clauses into single assertion is also possible, for example:

See How to Use JMeter Assertions in Three Easy Steps to learn more about using assertions in JMeter tests.

  • When combining several clauses into single Response assertion->pattern to test for example: http:abc1.com.html|http:abc1.com.html| Do you think this is working becoause it was not working for me?
    – lak
    May 5 '17 at 7:17
  • Given you choose Contains pattern matching rule it should work. Also the last | is not required
    – Dmitri T
    May 5 '17 at 8:18
  • http:abc1.com.html|http:abc1.com.html --> Response Assertion failure message: TransformerException: Unknown error in XPath. Xpath assertion looks like //product/url = 'http:abc1.com.html' l //product/image 'http:abc2.com.html'
    – lak
    May 5 '17 at 8:27
  • I was talking about response assertion, not the xpath assertion
    – Dmitri T
    May 5 '17 at 8:29
  • Yes in response assertion 'Contains' pattern matching rule is used. isn't possible to combining several Xpath assertions?
    – lak
    May 5 '17 at 8:34

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.