class Select61xx63xx(ArgonTest): def setUp(self): super().setUp() self.mytest = PBOC(self.device) def test_Select_61xx(self): """标准测试""" self.begintrans('Standard Transcation') self.mytest.select_test_61xx('Select Process') def test_Select_6Cxx(self): """标准测试""" self.begintrans('Standard Transcation') self.mytest.select_test_6cxx('Select Process')
class Select6A82(ArgonTest): def setUp(self): super().setUp() self.mytest = PBOC(self.device) def test_Select6A82_procedure(self): """标准测试""" self.begintrans('Standard Transcation') self.mytest.select_pass('Select Process') def test_Select6A82_blank_procedure(self): """空白测试""" self.begintrans('Blank Transcation') @skipif(True, 'I want to skip') def test_Select6A82_skip_procedure(self): """跳出测试""" pass
class TestSelectApp(ArgonTest): def setUp(self): super().setUp() self.mytest = PBOC(self.device) def test_standard_procedure(self): """标准测试""" self.begintrans('Standard Transcation') self.mytest.select('Select Process') def test_standard_skip_procedure(self): """跳出测试""" self.skipTest('Skip Test') def test_standard_blank_procedure(self): """空白测试""" self.begintrans('Blank Transcation') # @skipif(True, 'skipIf') def test_standard_fail(self): """失败测试""" # raise AssertionError('') raise ArgonLogError('Error') self.mytest.select('Select Process')
def setUp(self): super().setUp() self.mytest = PBOC(self.device)