def validGetCompletionPercentage(): tbtafExecutionStatus = TBTAFExecutionStatus() tbtafExecutionStatus.setTestCasesTotal(10) tbtafExecutionStatus.setTestCasesExecuted(3) result = tbtafExecutionStatus.getCompletionPercentage() if result != 30.00: raise Exception('The calculation is wrong')
def invalidGetCompletionPercentage2(): tbtafExecutionStatus = TBTAFExecutionStatus() tbtafExecutionStatus.setTestCasesExecuted(3) result = tbtafExecutionStatus.getCompletionPercentage()
def invalidGetCompletionPercentage1(): tbtafExecutionStatus = TBTAFExecutionStatus() tbtafExecutionStatus.setTestCasesTotal(10) result = tbtafExecutionStatus.getCompletionPercentage()