osmo-gsm-tester/selftest/suite_test/suitedirA/test_suite/test_report_fragment.py

12 lines
341 B
Python

from osmo_gsm_tester.testenv import *
with test.report_fragment('fragment1'):
print('a step in the first fragment')
with test.report_fragment('fragment2'):
print('a step in the second fragment')
with test.report_fragment('fragment3'):
print('a step in the third fragment')
raise Exception('failure in the third fragment')