def test_run_suite(self): fclient = FractClient(self.testsuite) fclient.run_suite() self.assertTrue( len(fclient._result_suite) ==2 ) logging.info('test_run_suite(): _result_suite={}'.format(fclient._result_suite[0])) fclient.export_result()
def test_run_suite2(self): fclient = FractClient(self.testsuite) fclient.run_suite( ['d704230e1206c259ddbb900004c185e46c42a32a']) self.assertTrue( len(fclient._result_suite) ==1 ) self.assertTrue( len(fclient._failed_result_suite) == 0) logging.info('test_run_suite(): _result_suite={}'.format(fclient._result_suite[0])) fclient.export_result()
def test_load_resultfile(self): fclient = FractClient(self.testsuite) fclient.load_resultfile('resutlcase4test.json') self.assertTrue( len(fclient._result_suite) == 32 ) self.assertTrue( len(fclient._failed_result_suite) == 23 )
def test_export_failed_testsuite(self): fclient = FractClient(self.testsuite) fclient.run_suite( ['3606bd5770167eaca08586a8c77d05e6ed076899']) fclient.export_failed_testsuite('diff.json')
def test_get_testcase(self): fclient = FractClient(self.testsuite) t = fclient._get_testcase('d704230e1206c259ddbb900004c185e46c42a32a') self.assertTrue(t.query['TestId'] == 'd704230e1206c259ddbb900004c185e46c42a32a')
def test_make_summary(self): fclient = FractClient(self.testsuite) fclient.run_suite() fclient.make_summary()
def test_init2(self): fclient = FractClient(fract_suite_file='testcase4test.json') self.assertTrue( len(fclient._testsuite) == 32 )
def test_init(self): fclient = FractClient(self.testsuite) self.assertTrue( len(fclient._testsuite) ==2 )