Forum Discussion
omatzura
18 years agoSuper Contributor
Hi Franky,
create a groovy-script step after your request that gets the response message and parses it using any of the available XML-parsing options in groovy (http://groovy.codehaus.org/Processing+XML).. for example:
Hope this helps!
regards,
/Ole
eviware.com
create a groovy-script step after your request that gets the response message and parses it using any of the available XML-parsing options in groovy (http://groovy.codehaus.org/Processing+XML).. for example:
// get request property
def request = testRunner.testCase.getTestStepByName( "Request 1" )
def property = request.getProperty( "request" )
// parse out textnodes to modify
def node = new groovy.util.XmlParser(false,false).parseText(property.value)
...
Hope this helps!
regards,
/Ole
eviware.com
Related Content
- 3 years ago
- 6 years ago
- 9 years ago
Recent Discussions
- 2 days ago