Forum Discussion
tried below the script to validate the node reponse value
def fn = new com.eviware.soapui.support.GroovyUtils(context)
def fn2 = fn.getXmlHolder(messageExchange.responseContent)
assert fn2.getNodeValue("//ns1:ID")=="0000111"
Have got below the error message
error: Unexpected element:CDATA
someone can help me to fix this issue
- Sandyapitester9 years agoFrequent Contributor
Rao,
Need to extract the below two response parameter from my testcase
Response parameter and value:
"StringID":0000111,
"ID":0000111,
and need to compare the two parameter values matching or not,
am looking for this validation in groovy scripting
could u plz help me to fix this issue...
- nmrao9 years agoChampion Level 3Sorry, that is not helpful information which was available there already.
- Sandyapitester9 years agoFrequent Contributor
:) Rao, am unable to share the full response with API because it's policy violation
that the reason am sharing the peace of response
could u help to how to get and compare the above response data using groovy scripting
Note : I need get the above text response as well need to compare those two values are matching or not
sorry for the inconvenient
Related Content
- 2 years ago
- 6 years ago
Recent Discussions
- 2 days ago
- 2 days ago