Forum Discussion

philhayes's avatar
16 years ago

What's the exact syntax for checking that a step has failed?

// issue SOAP message
def result = testRunner.runTestStepByName( "TEST Purchase" )

// I know this syntax is wrong!
if ( FAILED = result.getStatus() ){
// tell me the result
log.error( "step failed" )
}