Exemplo n.º 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')
Exemplo n.º 2
0
def invalidGetCompletionPercentage1():
    tbtafExecutionStatus = TBTAFExecutionStatus()
    tbtafExecutionStatus.setTestCasesTotal(10)
    result = tbtafExecutionStatus.getCompletionPercentage()
Exemplo n.º 3
0
def validSetAndGetTestCasesTotal():
    tbtafExecutionStatus = TBTAFExecutionStatus()
    tbtafExecutionStatus.setTestCasesTotal(10)
    result = tbtafExecutionStatus.getTestCasesTotal()
    if result != 10:
        raise Exception('The value returned is not the same that was set')