Пример #1
0
def validInputAbortExecution():
    ejecutor = TBTAFExecutor()
    suite = TBTestSuite(1,'Sample test 2')
    for i in range(3):
        newTest = TBTAFSampleTest()
        suite.addTestCase(newTest)
    ejecutor.executeTests(suite)
    time.sleep(10)
    ejecutor.abortExecution(suite)
    ejecutor.getStatus(suite)
Пример #2
0
def sample_run():
    ejecutor = TBTAFExecutor()
    suite = TBTestSuite(1,'A')
    for i in range(5):
        newTest = TBTAFSampleTest()
        suite.addTestCase(newTest)
    ejecutor.executeTests(suite)
    
    while True:
        ejecutor.getStatus(suite)
        time.sleep(10)
Пример #3
0
def validInputExecuteTests():
    ejecutor = TBTAFExecutor()
    suite = TBTestSuite(1,'Sample test')
    for i in range(3):
        newTest = TBTAFSampleTest()
        suite.addTestCase(newTest)
    ejecutor.executeTests(suite)
    
    waitingComplete = True
    while waitingComplete:
        result = ejecutor.getStatus(suite)
        time.sleep(5)
        waitingComplete = result.getExecutionStatusType() != TBTAFExecutionStatusType.COMPLETED
Пример #4
0
	def executeTestSuite(self, tbTestSuiteInstance, testBed = "dummy", flagsCollection = [], executorListenerCollection = []):
		#tbtafExecutorInstance = TBTAFExecutor()
		_executor = TBTAFExecutor()
		suiteResult = _executor.executeTests(tbTestSuiteInstance, testBed, flagsCollection, executorListenerCollection)

		waitingComplete = True
		while waitingComplete:
			result = _executor.getStatus(tbTestSuiteInstance)
			time.sleep(5)
			waitingComplete = result.getExecutionStatusType() != TBTAFExecutionStatusType.COMPLETED
		
		#return suiteResult
		#Si esto no funciona, el executor tiene que poner un metodo llamado getSuiteResult que devuelva getSuiteResult.
		return tbTestSuiteInstance.getSuiteResult()
Пример #5
0
def invalidInputExecuteTests():
    ejecutor = TBTAFExecutor()
    ejecutor.executeTests(None)