Forum Discussion
pradeepbishnoi
16 years agoContributor
Hi,
The best way to perform the same is try to use Script assertion instead of Xpath match assertion.
However, if you want to stick with Xpath match assertion try to use the following approach :
To perform the string match also use the property variables. Like
//cwsgl:errorNumber[1]/text() = ${#Project#new_propertry_w004}
So whereever you have anything to match, just create a property variable for that & perform the logical operation.
I hope this would be of some help.
~~ Pradeep Bishnoi ~~
The best way to perform the same is try to use Script assertion instead of Xpath match assertion.
However, if you want to stick with Xpath match assertion try to use the following approach :
To perform the string match also use the property variables. Like
//cwsgl:errorNumber[1]/text() = ${#Project#new_propertry_w004}
So whereever you have anything to match, just create a property variable for that & perform the logical operation.
I hope this would be of some help.
~~ Pradeep Bishnoi ~~