From 223461e4620533024e4985a04172b960bd2c4c6e Mon Sep 17 00:00:00 2001 From: Sofya Balandina Date: Fri, 28 Jul 2023 10:41:32 +0100 Subject: [PATCH] [apiConformanceReport] Fix double 'passed' in 'all test amount' and fist mandatory view (#18822) --- .../layer_tests_summary/summarize.py | 6 +++--- .../template/report_api_template.html | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/tests/test_utils/functional_test_utils/layer_tests_summary/summarize.py b/src/tests/test_utils/functional_test_utils/layer_tests_summary/summarize.py index 3776e27e05e..8a7b0c16ee8 100644 --- a/src/tests/test_utils/functional_test_utils/layer_tests_summary/summarize.py +++ b/src/tests/test_utils/functional_test_utils/layer_tests_summary/summarize.py @@ -364,8 +364,8 @@ def create_api_summary(xml_paths: list, output_folder: str, expected_devices:lis api_info[test_type.tag].setdefault(sw_plugin_name, {device.tag: {}}) api_info[test_type.tag][sw_plugin_name][device.tag] = {'passrate': float(sw_plugin.get('passrate', 0)), 'relative_passrate': float(sw_plugin.get('relative_passrate', 0)), - 'relative_all': float(sw_plugin.get('relative_all', 0)), - 'relative_passed': float(sw_plugin.get('relative_passed', 0)), + 'relative_all': int(float(sw_plugin.get('relative_all', 0))), + 'relative_passed': int(float(sw_plugin.get('relative_passed', 0))), 'passed': int(sw_plugin.get('passed', 0)), 'failed': int(sw_plugin.get('failed', 0)), 'crashed': int(sw_plugin.get('crashed', 0)), @@ -373,8 +373,8 @@ def create_api_summary(xml_paths: list, output_folder: str, expected_devices:lis 'hanged': int(sw_plugin.get('hanged', 0)), 'test_amout': int(sw_plugin.get('passed', 0)) +\ int(sw_plugin.get('failed', 0)) +\ - int(sw_plugin.get('passed', 0)) +\ int(sw_plugin.get('crashed', 0)) +\ + int(sw_plugin.get('skipped', 0)) +\ int(sw_plugin.get('hanged', 0))} except ET.ParseError: diff --git a/src/tests/test_utils/functional_test_utils/layer_tests_summary/template/report_api_template.html b/src/tests/test_utils/functional_test_utils/layer_tests_summary/template/report_api_template.html index 8bb2d4c005e..81cd320d1db 100644 --- a/src/tests/test_utils/functional_test_utils/layer_tests_summary/template/report_api_template.html +++ b/src/tests/test_utils/functional_test_utils/layer_tests_summary/template/report_api_template.html @@ -133,13 +133,13 @@ data-hanged="{{api_info[test_type][sw_plugin][device]['hanged']}}" > - {{api_info[test_type][sw_plugin][device]['passrate']}} % + {{api_info[test_type][sw_plugin][device]['relative_passrate']}} %
- P:{{api_info[test_type][sw_plugin][device]['passed']}} - F:{{api_info[test_type][sw_plugin][device]['failed']}} - S:{{api_info[test_type][sw_plugin][device]['skipped']}} - C:{{api_info[test_type][sw_plugin][device]['crashed']}} - H:{{api_info[test_type][sw_plugin][device]['hanged']}} + P:{{ api_info[test_type][sw_plugin][device]['relative_passed'] }} + F:{{ api_info[test_type][sw_plugin][device]['relative_all'] - api_info[test_type][sw_plugin][device]['relative_passed'] }} + + +
{% else %}