Home
last modified time | relevance | path

Searched refs:ReportConstant (Results 1 – 7 of 7) sorted by relevance

/test/testfwk/xdevice/src/xdevice/_core/report/
Dsuite_reporter.py28 from _core.report.reporter_helper import ReportConstant
78 test_suites_attributes[ReportConstant.unavailable] = 1
87 test_suite_attributes[ReportConstant.unavailable] = 1
88 test_suite_attributes[ReportConstant.message] = suite_result.stacktrace
92 test_suite_attributes[ReportConstant.result] = ReportConstant.false
138 test_suites_attributes[ReportConstant.time] = \
139 round(test_suites_attributes.get(ReportConstant.time), 3)
155 ReportConstant.name: self.report_name,
156 ReportConstant.time_stamp: time.strftime(ReportConstant.time_format, time.localtime()),
157 ReportConstant.time: 0,
[all …]
Drepeater_helper.py18 from _core.report.reporter_helper import ReportConstant
36 module_name = suite.attrib.get(ReportConstant.module_name, "")
40 name_in_suite = suite.attrib.get(ReportConstant.name, "")
42 total = int(suite.attrib.get(ReportConstant.tests, 0))
51 root_tree.attrib.update({ReportConstant.modules: str(len(name_set))})
52 root_tree.attrib.update({ReportConstant.run_modules: str(len(name_set))})
58 for item in root_tree.findall(ReportConstant.test_suite):
61 [ReportConstant.tests, ReportConstant.ignored,
62 ReportConstant.failures, ReportConstant.disabled,
63 ReportConstant.errors]
[all …]
Dreporter_helper.py45 class ReportConstant: class
174 return self.initial_element(ReportConstant.test_suites,
178 return self.initial_element(ReportConstant.test_suite,
183 return self.initial_element(ReportConstant.test_case,
189 ReportConstant.time, 0)) + float(
190 case.get(ReportConstant.time, 0)), 3)
191 suite.set(ReportConstant.time, str(update_time))
192 update_tests = str(int(suite.get(ReportConstant.tests, 0))+1)
193 suite.set(ReportConstant.tests, update_tests)
195 update_failures = str(int(suite.get(ReportConstant.failures, 0))+1)
[all …]
Dresult_reporter.py50 from _core.report.reporter_helper import ReportConstant
157 self.report_path, ReportConstant.summary_data_report)
173 …test_report = os.path.join(self.report_path, ReportConstant.summary_vision_report).replace("\\", "…
182 if data_report.endswith(ReportConstant.summary_data_report):
200 end_time = time.strftime(ReportConstant.time_format, time.localtime())
203 time.mktime(time.strptime(start_time, ReportConstant.time_format)),
204 time.mktime(time.strptime(end_time, ReportConstant.time_format)))
206 device_name = getattr(self.task_info, ReportConstant.device_name, "None")
207 device_type = getattr(self.task_info, ReportConstant.device_label, "None")
208 platform_info = getattr(self.task_info, ReportConstant.platform, "None")
[all …]
D__main__.py25 from _core.report.reporter_helper import ReportConstant
55 task_info.test_time = time.strftime(ReportConstant.time_format,
/test/testfwk/xdevice/src/xdevice/_core/executor/
Dscheduler.py52 from _core.report.reporter_helper import ReportConstant
1002 case_id = model_element.get(ReportConstant.name, "")
1008 model_element.get(ReportConstant.report, ""))
1017 module_name = testsuite_element.get(ReportConstant.name,
1030 case_element.get(ReportConstant.report, ""))
1037 disabled = int(model_element.get(ReportConstant.disabled)) if \
1038 model_element.get(ReportConstant.disabled, "") else 0
1039 failures = int(model_element.get(ReportConstant.failures)) if \
1040 model_element.get(ReportConstant.failures, "") else 0
1041 errors = int(model_element.get(ReportConstant.errors)) if \
[all …]
Dconcurrent.py47 from _core.report.reporter_helper import ReportConstant
447 ReportConstant.tests, 0)) + int(
448 history_testsuite_element.get(ReportConstant.tests, 0))
449 testsuites_element.set(ReportConstant.tests,
460 ReportConstant.tests, 0)) + pass_num
461 target_testsuite_element.set(ReportConstant.tests,
464 ReportConstant.tests, 0)) + pass_num
465 testsuites_element.set(ReportConstant.tests, str(inherited_test))
485 case.result = history_testcase_element.get(ReportConstant.result, "")
486 case.status = history_testcase_element.get(ReportConstant.status, "")
[all …]