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
- 2 years ago
Recent Discussions
- 15 years ago