Unit Test |
Cases |
Errors |
% for unit_test in data["UT"]:
${unit_test["UnitTest"]} |
${unit_test["TotalTestCases"]} |
${str(int(unit_test['TotalTestCases']) - int(unit_test['CasePassCount']))} |
% endfor
% for unit_test in data["UT"]:
<%
total_cnt = unit_test["TotalTestCases"]
pass_cnt = unit_test['CasePassCount']
status = ("Passed " + pass_cnt) if (total_cnt == pass_cnt) else ("Failed " + str(int(total_cnt) - int(pass_cnt)))
status = status + "/" + total_cnt
%>
${unit_test["UnitTest"] + " - " + status}
% for test_case in unit_test["TestCases"]:
<%
total_cnt = test_case["TestCount"]
pass_cnt = test_case['PassCount']
status = ("Passed " + pass_cnt) if (total_cnt == pass_cnt) else ("Failed " + str(int(total_cnt) - int(pass_cnt)))
status = status + "/" + total_cnt
%>
Test Name |
Time |
Result |
% for test_result in test_case["TestResults"]:
% if "Error" in test_result:
% else:
% endif
${test_result["TestName"]} |
${test_result["TestTime"]} |
${test_result["TestResult"]} |
% endfor
% endfor
% endfor
Unit Test |
Cases |
Errors |
% for integration_test in data["IT"]:
${integration_test["UnitTest"]} |
${integration_test["TotalTestCases"]} |
${str(int(integration_test['TotalTestCases']) - int(integration_test['CasePassCount']))} |
% endfor
% for integration_test in data["IT"]:
<%
total_cnt = integration_test["TotalTestCases"]
pass_cnt = integration_test['CasePassCount']
status = ("Passed " + pass_cnt) if (total_cnt == pass_cnt) else ("Failed " + str(int(total_cnt) - int(pass_cnt)))
status = status + "/" + total_cnt
%>
${integration_test["UnitTest"] + " - " + status}
% for test_case in integration_test["TestCases"]:
<%
total_cnt = test_case["TestCount"]
pass_cnt = test_case['PassCount']
status = ("Passed " + pass_cnt) if (total_cnt == pass_cnt) else ("Failed " + str(int(total_cnt) - int(pass_cnt)))
status = status + "/" + total_cnt
%>
Test Name |
Time |
Result |
% for test_result in test_case["TestResults"]:
% if "Error" in test_result:
% else:
% endif
${test_result["TestName"]} |
${test_result["TestTime"]} |
${test_result["TestResult"]} |
% endfor
% endfor
% endfor
Unit Test |
Cases |
Errors |
% for integration_test in data["IT"]:
${integration_test["UnitTest"]} |
${integration_test["TotalTestCases"]} |
${str(int(integration_test['TotalTestCases']) - int(integration_test['CasePassCount']))} |
% endfor
% if "performance" in data.keys():
% if "Info" in data["performance"].keys():
Info |
Data |
% for k,v in data["performance"]["Info"].items():
${k} |
${v.rstrip()} |
% endfor
% endif
% if "Results" in data["performance"].keys():
Test Case |
Query |
Min |
Max |
Mean |
Median |
% for test_vector in data["performance"]["Results"]:
${test_vector["Case"]} |
${test_vector["Query"]} |
${test_vector["Min"]} |
${test_vector["Max"]} |
${test_vector["Mean"]} |
${test_vector["Median"]} |
% endfor
% endif
% endif