Пример #1
0
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()
Пример #2
0
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()
Пример #3
0
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
Пример #4
0
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()
Пример #5
0
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()