robo-automation-test-kit 1.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- robo_automation_test_kit/__init__.py +8 -0
- robo_automation_test_kit/hookspec.py +36 -0
- robo_automation_test_kit/plugin.py +867 -0
- robo_automation_test_kit/templates/email_report/email_template.html +0 -0
- robo_automation_test_kit/templates/html_report/components/category-chart.html +148 -0
- robo_automation_test_kit/templates/html_report/components/center-chart.html +97 -0
- robo_automation_test_kit/templates/html_report/components/phase-chart.html +148 -0
- robo_automation_test_kit/templates/html_report/components/results-table.html +240 -0
- robo_automation_test_kit/templates/html_report/components/status-center-chart.html +148 -0
- robo_automation_test_kit/templates/html_report/components/summary-chart.html +94 -0
- robo_automation_test_kit/templates/html_report/html_template.html +62 -0
- robo_automation_test_kit/templates/html_report/scripts/css/material-icons.css +20 -0
- robo_automation_test_kit/templates/html_report/scripts/css/report.css +714 -0
- robo_automation_test_kit/templates/html_report/scripts/css/robo-fonts.css +24 -0
- robo_automation_test_kit/templates/html_report/scripts/js/chart.js +14 -0
- robo_automation_test_kit/templates/html_report/scripts/js/report.js +319 -0
- robo_automation_test_kit/utils/RoboHelper.py +420 -0
- robo_automation_test_kit/utils/__init__.py +19 -0
- robo_automation_test_kit/utils/reports/EmailReportUtils.py +0 -0
- robo_automation_test_kit/utils/reports/HtmlReportUtils.py +154 -0
- robo_automation_test_kit/utils/reports/__init__.py +3 -0
- robo_automation_test_kit-1.0.0.dist-info/METADATA +132 -0
- robo_automation_test_kit-1.0.0.dist-info/RECORD +26 -0
- robo_automation_test_kit-1.0.0.dist-info/WHEEL +4 -0
- robo_automation_test_kit-1.0.0.dist-info/entry_points.txt +3 -0
- robo_automation_test_kit-1.0.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Hook specifications for robo_automation_test_kit plugin.
|
|
3
|
+
These hooks allow source projects to customize the reporting behavior.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import pytest
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@pytest.hookspec
|
|
10
|
+
def robo_modify_report_row(report_row, test_data):
|
|
11
|
+
"""
|
|
12
|
+
Hook specification for source projects to provide custom test data attributes.
|
|
13
|
+
|
|
14
|
+
Source projects can implement this hook in their conftest.py to:
|
|
15
|
+
- Extract custom attributes from test_data (CSV/Excel row)
|
|
16
|
+
- Add project-specific fields to test results
|
|
17
|
+
- Transform or enrich test data using both report_row and test_data
|
|
18
|
+
|
|
19
|
+
Args:
|
|
20
|
+
report_row: Dictionary with base test result data (status, duration, error_log, etc.)
|
|
21
|
+
test_data: Dictionary with parametrized test data from CSV/Excel
|
|
22
|
+
|
|
23
|
+
Returns:
|
|
24
|
+
Dictionary with custom attributes to merge into report_row.
|
|
25
|
+
Keys in this dict will override or extend the default report_row fields.
|
|
26
|
+
|
|
27
|
+
Example in source project's conftest.py:
|
|
28
|
+
@pytest.hookimpl
|
|
29
|
+
def robo_modify_report_row(report_row, test_data):
|
|
30
|
+
return {
|
|
31
|
+
'test_case_name': test_data.get('Test Case Name', ''),
|
|
32
|
+
'custom_field': test_data.get('Custom Field', ''),
|
|
33
|
+
'priority': test_data.get('Priority', 'Medium'),
|
|
34
|
+
}
|
|
35
|
+
"""
|
|
36
|
+
pass
|