Luxoft / Twister

Twister Test Automation Framework
http://www.twistertesting.com/
Apache License 2.0
38 stars 21 forks source link

Test abort is being marked as fail #166

Closed jashanka closed 9 years ago

jashanka commented 9 years ago

Hi,

While running a test, if we hit the stop button it's being marked as fail (instead of abort).

Seems here is the problem, twister/client/executionprocess/ExecutionProcess.py


1203 except (Exception, SystemExit): 1204 # On error, print the error message, but don't exit 1205 print('\nTest case exception:') 1206 print(traceback.format_exc()[34:].strip()) 1207 print('\n>>> File {} execution CRASHED. <<<\n'.format(filename)) 1208 1209 proxy().echo('ERROR Error executing file {}!'.format(filename)) 1210 try: 1211 proxy().set_file_status(self.epName, file_id, STATUS_FAIL, (time.time() - timer_i)) 1212 except Exception: 1213 trace = traceback.format_exc()[34:].strip() 1214 print('Exception on change file status {}!\n'.format(trace))


In the above try block, status should be 'STATUS_ABORTED', could you please check?

Thanks, Jai

jashanka commented 9 years ago

Closing for now, will re-open later with more info.