Test Results

Unit Tests

% for unit_test in data["UT"]: % endfor
Unit Test Cases Errors
${unit_test["UnitTest"]} ${unit_test["TotalTestCases"]} ${str(int(unit_test['TotalTestCases']) - int(unit_test['CasePassCount']))}
% 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 %>
% for test_result in test_case["TestResults"]: % if "Error" in test_result: % else: % endif % endfor
Test Name Time Result
${test_result["TestName"]} ${test_result["TestTime"]} ${test_result["TestResult"]}
% endfor % endfor

Integration Tests

% for integration_test in data["IT"]: % endfor
Unit Test Cases Errors
${integration_test["UnitTest"]} ${integration_test["TotalTestCases"]} ${str(int(integration_test['TotalTestCases']) - int(integration_test['CasePassCount']))}
% 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 %>
% for test_result in test_case["TestResults"]: % if "Error" in test_result: % else: % endif % endfor
Test Name Time Result
${test_result["TestName"]} ${test_result["TestTime"]} ${test_result["TestResult"]}
% endfor % endfor

Integration Tests

% for integration_test in data["IT"]: % endfor
Unit Test Cases Errors
${integration_test["UnitTest"]} ${integration_test["TotalTestCases"]} ${str(int(integration_test['TotalTestCases']) - int(integration_test['CasePassCount']))}
% if "performance" in data.keys(): % if "Info" in data["performance"].keys():

Performance Info

% for k,v in data["performance"]["Info"].items(): % endfor
Info Data
${k} ${v.rstrip()}
% endif % if "Results" in data["performance"].keys():

Performance Results

% for test_vector in data["performance"]["Results"]: % endfor
Test Case Query Min Max Mean Median
${test_vector["Case"]} ${test_vector["Query"]} ${test_vector["Min"]} ${test_vector["Max"]} ${test_vector["Mean"]} ${test_vector["Median"]}
% endif % endif