예제 #1
0
def validGetCompletionPercentage():
    tbtafExecutionStatus = TBTAFExecutionStatus()
    tbtafExecutionStatus.setTestCasesTotal(10)
    tbtafExecutionStatus.setTestCasesExecuted(3)
    result = tbtafExecutionStatus.getCompletionPercentage()
    if result != 30.00:
        raise Exception('The calculation is wrong')
예제 #2
0
def invalidGetCompletionPercentage2():
    tbtafExecutionStatus = TBTAFExecutionStatus()
    tbtafExecutionStatus.setTestCasesExecuted(3)
    result = tbtafExecutionStatus.getCompletionPercentage()
예제 #3
0
def validSetAndGetTestCasesExecuted():
    tbtafExecutionStatus = TBTAFExecutionStatus()
    tbtafExecutionStatus.setTestCasesExecuted(3)
    result = tbtafExecutionStatus.getTestCasesExecuted()
    if result != 3:
        raise Exception('The value returned is not the same that was set')