Forum Discussion
saprao
Occasional Contributor
Hi ,
I have same query , i have to stop the entire testsuite through groovy when soap response assertion is fail. I am able to stop the execution in test case level by using testrunner.cancel().
I have seen this blog in smart bear for this query
import com.eviware.soapui.model.testsuite.Assertable.AssertionStatus
def tsr = context.getProperty( "#TestSuiteRunner#" )
if( tsr != null ){
if( tsr.currentTestCase.getTestStepByName("My Request").assertionStatus==AssertionStatus.FAILED ){
tsr.cancel( "The assertion failed" )
}
}
can i know that what value need to pass to "#TestSuiteRunner# property.. .
Thanks
saprao
8 years agoOccasional Contributor
Hi ,
Can anyone help me, how to stop the test suite execution through Groovy when any assertion is fail in run time.
I have seen above blog in the internet but it wouldn't worked out.
context.getProperty( "#TestSuiteRunner#" )
In above statement, what value i need to pass.
Thanks
Related Content
- 2 years ago
- 2 years ago
- 2 years ago
Recent Discussions
- 5 days ago