Timeline for Multiple response assertions and Xpath assertions not working
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 5, 2017 at 9:00 | comment | added | lak | Let us continue this discussion in chat. | |
May 5, 2017 at 8:59 | vote | accept | lak | ||
May 5, 2017 at 8:40 | comment | added | Dmitri T | It is possible, but you need to either learn some XPath. I am not telepathic enough to suggest anything without seeing your response data and knowing what you are trying to achieve | |
May 5, 2017 at 8:34 | comment | added | lak | Yes in response assertion 'Contains' pattern matching rule is used. isn't possible to combining several Xpath assertions? | |
May 5, 2017 at 8:29 | comment | added | Dmitri T | I was talking about response assertion, not the xpath assertion | |
May 5, 2017 at 8:27 | comment | added | lak | 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' | |
May 5, 2017 at 8:18 | comment | added | Dmitri T |
Given you choose Contains pattern matching rule it should work. Also the last | is not required
|
|
May 5, 2017 at 7:17 | comment | added | lak | 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? | |
May 5, 2017 at 6:19 | history | answered | Dmitri T | CC BY-SA 3.0 |