Contributions
How to trim a value if I compare to services in an assertion?
Hi all I have a web service and a new rest service.I want to confirm that nothing has change with the new rest service. If I compare the web serviceas an example "frist name" the service returns "Gareth" and the new rest service returns "Gareth " with spaces at the back. My assersion as follow my jsonPath expression = $[0].cms.firstName And expected result = ${Request 1#ResponseAsXml#//Response[1]/e[1]/cms[1]/firstName[1]} How do I trim this assertion? Please see screen shot because I don't know with this where in my expression to put the trim()8 years agoPlace ReadyAPI QuestionsReadyAPI Questions761Views0likes1Comment