Exemplo n.º 1
0
def invalidResume():
    tbTestSuite = TBTestSuite(1,'Sample test 2')
    for i in range(3):
        newTest = TBTAFSampleTest()
        tbTestSuite.addTestCase(newTest)

    executionTBTestSuite = ExecutionTBTestSuite(tbTestSuite)
    executionTBTestSuite.resume()
Exemplo n.º 2
0
def validPauseResume():
    tbTestSuite = TBTestSuite(1,'Sample test 2')
    for i in range(3):
        newTest = TBTAFSampleTest()
        tbTestSuite.addTestCase(newTest)

    executionTBTestSuite = ExecutionTBTestSuite(tbTestSuite)
    executionTBTestSuite.execute()
    time.sleep(1)
    executionTBTestSuite.pause()
    time.sleep(10)
    executionTBTestSuite.resume()
    
    waitingComplete = True
    while waitingComplete:
        result = executionTBTestSuite.getStatus()
        time.sleep(5)
        waitingComplete = result != TBTAFExecutionStatusType.COMPLETED