Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi!
you need to manually check in your code if the testCase has failed and abort execution if so. I.e. add the following:
// <eventlist>
def eventlist = project.testSuites['E-GREFFE XML STRUCTURE'].testCases['eventList'].run( null, true )
eventlist.waitUntilFinished()
if( eventlist.status.toString() == "FAILED" )
throw new Exception( "eventList TestCase failed with message [" + eventlist.reason + "]" )
etc...
Hope this helps
regards,
/Ole
eviware.com
you need to manually check in your code if the testCase has failed and abort execution if so. I.e. add the following:
// <eventlist>
def eventlist = project.testSuites['E-GREFFE XML STRUCTURE'].testCases['eventList'].run( null, true )
eventlist.waitUntilFinished()
if( eventlist.status.toString() == "FAILED" )
throw new Exception( "eventList TestCase failed with message [" + eventlist.reason + "]" )
etc...
Hope this helps
regards,
/Ole
eviware.com