Forum Discussion
RohitBBorse
15 years agoContributor
Hi,
Sorry for late reply. I was away from office for the days.
This have helped me and i have successfully stepped up to the next level.
Thanks a lot
Here is a code snippet
Thanks
Rohit Borse
Sorry for late reply. I was away from office for the days.
This have helped me and i have successfully stepped up to the next level.
Thanks a lot
Here is a code snippet
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
for (int i in 0..<context.testCase.testStepCount)
{
step=context.testCase.getTestStepAt(i)
if( step instanceof com.eviware.soapui.model.testsuite.SamplerTestStep && step.testRequest.response != null )
{
Response = groovyUtils.getXmlHolder(step.name+"#Response")
Severity = Response.getNodeValue("//*:Severity")
log.info (Severity)
}
}
Thanks
Rohit Borse