def runnerCaseApp(l_devices): start_test_time = dataToString.getStrTime(time.localtime(), "%Y-%m-%d %H:%M %p") starttime = datetime.datetime.now() #print l_devices suite = unittest.TestSuite() suite.addTest( TestInterfaceCase.parametrize(testMonkey, l_devices=l_devices)) unittest.TextTestRunner(verbosity=2).run(suite) endtime = datetime.datetime.now()
def runnerCaseApp(l_devices): start_test_time = dataToString.getStrTime(time.localtime(), "%Y-%m-%d %H:%M %p") starttime = datetime.datetime.now() suite = unittest.TestSuite() suite.addTest(TestInterfaceCase.parametrize(testMonkey, l_devices=l_devices)) unittest.TextTestRunner(verbosity=2).run(suite) endtime = datetime.datetime.now() get_common_report(start_test_time, endtime, starttime) report()
def runnerCaseWeb(): start_test_time = dataToString.getStrTime(time.localtime(), "%Y-%m-%d %H:%M %p") print (start_test_time) starttime = datetime.datetime.now() suite = unittest.TestSuite() suite.addTest(TestInterfaceCase.parametrize(testMonkey, l_devices=l_devices)) unittest.TextTestRunner(verbosity=2).run(suite) endtime = datetime.datetime.now() get_common_web_report(start_test_time, endtime, starttime) testComments=testComment("runTest") print (testComments) return testComments
def runnerCaseApp(): start_test_time = dataToString.getStrTime(time.localtime(), "%Y-%m-%d %H:%M %p") suite = unittest.TestSuite() starttime = datetime.datetime.now() suite.addTest(TestInterfaceCase.parametrize(testHome)) # suite.addTest(TestInterfaceCase.parametrize(testContact)) unittest.TextTestRunner(verbosity=2).run(suite) endtime = datetime.datetime.now() get_common_report(start_test_time, endtime, starttime) report()
def runnerCaseApp(l_devices): start_test_time = dataToString.getStrTime(time.localtime(), "%Y-%m-%d %H:%M %p") starttime = datetime.datetime.now() suite = unittest.TestSuite() suite.addTest(TestInterfaceCase.parametrize(runCase, l_devices=l_devices)) # suite.addTest(TestInterfaceCase.parametrize(testOpen,l_devices=l_devices)) # suite.addTest(TestInterfaceCase.parametrize(testLogin,l_devices=l_devices)) unittest.TextTestRunner(verbosity=1).run(suite) endtime = datetime.datetime.now() get_common_report(start_test_time, endtime, starttime) report()