Ask a Question

Xpath Match Configuration

SOLVED
Chowdhary
Contributor

Xpath Match Configuration

Hi Friends,

 

I have a request in soap and my response is having 500 response values, if i want to use the X-path expression to match my responses, i can do it for 1 value in response, but if i want to match all the 500 values in response with Xpath, how can i do it ?

Vam
1 REPLY 1
nmrao
Community Hero

Xpath Assertion allows one to check one value. That way it is clear which value check is failed.

If you want to do more, like 500, it is difficult to create manually 500 assertions. So you can use below two options:

1. use script assertion instead of xpath. Are you expecting a list of values for the same xpath, by the way?

2. use groovy script which can create 500 or whatever number of xpath assertions for the required test step.



Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: