Forum Discussion

Department_of_T's avatar
Department_of_T
Contributor
11 years ago

[Resolved] Xpath match content- case sensitive match

Hello, i need some help please with case sensitive assertions. Since the request has lower and uppercase characters and the response is only Uppercase the validation fails. How can i ensure the the assertion is case sensitive? I have tried 'translate' and 'upper-case()' methods but i am not sure how to use them.

X Path Expression = //Results[1]/ResultSet[1]/Row[1]/UNSTRUCTURED_ADDRESS_1[1]/text()
Expected Result = ${changeCustomerDetails - Request 1#Request#declare namespace apo='http://transport.wa.gov.au/apo-ws/'; //apo:changeCustomerDetails[1]/changeCustomerDetailsRequest[1]/residentialAddress[1]/firstAddressLine[1]}

4 Replies