andrew_laser
14 years agoOccasional Contributor
selectFromCurrent() method doesn't work in "TearDown Script"
Method com.eviware.soapui.impl.wsdl.teststeps.assertions.basic.XPathContainsAssertion.selectFromCurrent() doesn't do anything when executed in TearDown Script.
Though it works correctly when executed in Script assertion.
Not working code from TearDown script:
Working code from script assertion (in a test step)
Does anybody know how to
1) make the method selectFromCurrent() work in TearDown script
or
2) in TearDown script get the current result produced by XPath expression (so I can set it as expected myself)
Though it works correctly when executed in Script assertion.
Not working code from TearDown script:
testCase.getTestStepByName("test").getAssertionByName('Response').selectFromCurrent()
Working code from script assertion (in a test step)
context.getCurrentStep().getAssertionByName('Response').selectFromCurrent()
Does anybody know how to
1) make the method selectFromCurrent() work in TearDown script
or
2) in TearDown script get the current result produced by XPath expression (so I can set it as expected myself)