def sample_run(): ejecutor = TBTAFExecutor() suite = TBTestSuite(1,'A') for i in range(2): newTest = TBTAFSampleTest() suite.addTestCase(newTest) newTest = TBTAFSampleTest() newTest.testResult = None suite.addTestCase(newTest) for i in range(2): newTest = TBTAFSampleTest() suite.addTestCase(newTest) ejecutor.executeTests(suite) while True: ejecutor.getStatus(suite) time.sleep(10)