Forum Discussion
RJanecek
14 years agoRegular Contributor
answer for your second question:
add this to every testCase tearDown Script:
you are iterating over all testStep and if one is failed = testCase is failed so you cancel projectRunner
add this to every testCase tearDown Script:
you are iterating over all testStep and if one is failed = testCase is failed so you cancel projectRunner
for ( testStepResult in testRunner.results ) {
if (testStepResult.getStatus().toString().equals("FAILED")){
def tsr = context.getProperty( "#ProjectRunner#" )
if( tsr != null ) tsr.cancel( "The assertion failed" )
}
}