Пример #1
0
 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()
Пример #2
0
 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()
Пример #3
0
 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 )
Пример #4
0
 def test_export_failed_testsuite(self):
     fclient = FractClient(self.testsuite)
     fclient.run_suite( ['3606bd5770167eaca08586a8c77d05e6ed076899'])
     fclient.export_failed_testsuite('diff.json')
Пример #5
0
 def test_get_testcase(self):
     fclient = FractClient(self.testsuite)
     t = fclient._get_testcase('d704230e1206c259ddbb900004c185e46c42a32a')
     self.assertTrue(t.query['TestId'] == 'd704230e1206c259ddbb900004c185e46c42a32a')
Пример #6
0
 def test_make_summary(self):
     fclient = FractClient(self.testsuite)
     fclient.run_suite()
     fclient.make_summary()
Пример #7
0
 def test_init2(self):
     fclient = FractClient(fract_suite_file='testcase4test.json')
     self.assertTrue( len(fclient._testsuite) == 32 )
Пример #8
0
 def test_init(self):
     fclient = FractClient(self.testsuite)
     self.assertTrue( len(fclient._testsuite) ==2 )