You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+21-23Lines changed: 21 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ any one using pytest command line option:
60
60
61
61
The :code:`pytest.ini` file should have next mandatory fields:
62
62
63
-
- :code:`rp_uuid` - value could be found in the User Profile section
63
+
- :code:`rp_api_key` - value could be found in the User Profile section
64
64
- :code:`rp_project` - name of project in Report Portal
65
65
- :code:`rp_endpoint` - address of Report Portal Server
66
66
@@ -69,43 +69,41 @@ Example of :code:`pytest.ini`:
69
69
.. code-block:: text
70
70
71
71
[pytest]
72
-
rp_uuid = fb586627-32be-47dd-93c1-678873458a5f
72
+
rp_api_key = fb586627-32be-47dd-93c1-678873458a5f
73
73
rp_endpoint = http://192.168.1.10:8080
74
74
rp_project = user_personal
75
75
rp_launch = AnyLaunchName
76
76
rp_launch_attributes = 'PyTest' 'Smoke'
77
77
rp_launch_description = 'Smoke test'
78
78
rp_ignore_attributes = 'xfail' 'usefixture'
79
79
80
-
- The :code:`rp_uuid` can also be set with the environment variable `RP_UUID`. This will override the value set for :code:`rp_uuid` in pytest.ini
80
+
- The :code:`rp_api_key` can also be set with the environment variable `RP_API_KEY`. This will override the value set for :code:`rp_api_key` in pytest.ini
81
81
82
82
The following parameters are optional:
83
83
84
-
- :code:`rp_launch = AnyLaunchName` - launch name (could be overridden
85
-
by pytest --rp-launch option, default value is 'Pytest Launch')
86
-
- :code:`rp_launch_id = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` - id of the existing launch (the session will not handle the lifecycle of the given launch)
87
-
- :code:`rp_launch_attributes = 'PyTest' 'Smoke' 'Env:Python3'` - list of attributes for launch
88
-
- :code:`rp_parent_item_id = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` - id of the existing test item for session to use as parent item for the tests (the session will not handle the lifecycle of the given test item)
89
-
- :code:`rp_tests_attributes = 'PyTest' 'Smoke'` - list of attributes that will be added for each item in the launch
by pytest --rp-launch-description option, default value is '')
92
-
93
-
- :code:`rp_log_batch_size = 20` - size of batch log request
94
-
- :code:`rp_log_batch_payload_size = 65000000` - maximum payload size in bytes of async batch log requests
95
-
- :code:`rp_log_level = INFO` - The log level that will be reported
84
+
- :code:`rp_launch = AnyLaunchName` - launch name (could be overridden by pytest --rp-launch option, default value is 'Pytest Launch').
85
+
- :code:`rp_launch_id = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` - id of the existing launch (the session will not handle the lifecycle of the given launch).
86
+
- :code:`rp_launch_attributes = 'PyTest' 'Smoke' 'Env:Python3'` - list of attributes for launch.
87
+
- :code:`rp_parent_item_id = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` - id of the existing test item for session to use as parent item for the tests (the session will not handle the lifecycle of the given test item).
88
+
- :code:`rp_tests_attributes = 'PyTest' 'Smoke'` - list of attributes that will be added for each item in the launch.
89
+
- :code:`rp_launch_description = 'Smoke test'` - launch description (could be overridden by pytest --rp-launch-description option, default value is '').
90
+
- :code:`rp_log_batch_size = 20` - size of batch log request.
91
+
- :code:`rp_log_batch_payload_size = 65000000` - maximum payload size in bytes of async batch log requests.
92
+
- :code:`rp_log_level = INFO` - The log level that will be reported.
96
93
- :code:`rp_log_format = [%(levelname)7s] (%(name)s) %(message)s (%(filename)s:%(lineno)s)` - Format string to be used for logs sent to the service.
- :code:`rp_hierarchy_dirs = True` - Enables hierarchy for tests directories, default `False`. Doesn't support 'xdist' plugin.
101
-
- :code:`rp_hierarchy_dir_path_separator` - Path separator to display directories in test hierarchy. In case of empty value current system path separator will be used (os.path.sep)
98
+
- :code:`rp_hierarchy_dir_path_separator` - Path separator to display directories in test hierarchy. In case of empty value current system path separator will be used (os.path.sep).
102
99
- :code:`rp_hierarchy_code` - Enables hierarchy for inner classes and parametrized tests, default `False`. Doesn't support 'xdist' plugin.
103
-
- :code:`rp_issue_system_url = https://bugzilla.some.com/show_bug.cgi?id={issue_id}` - issue URL (issue_id will be filled by parameter from pytest mark)
104
-
- :code:`rp_issue_id_marks = True` - Enables adding marks for issue ids (e.g. "issue:123456")
105
-
- :code:`rp_verify_ssl = True` - Verify SSL when connecting to the server
106
-
- :code:`rp_mode = DEFAULT` - DEBUG or DEFAULT launch mode. DEBUG launches are displayed in a separate tab and not visible to anyone except owner
100
+
- :code:`rp_issue_system_url = https://bugzilla.some.com/show_bug.cgi?id={issue_id}` - issue URL (issue_id will be filled by parameter from pytest mark).
101
+
- :code:`rp_issue_id_marks = True` - Enables adding marks for issue ids (e.g. "issue:123456").
102
+
- :code:`rp_verify_ssl = True` - Verify SSL when connecting to the server.
103
+
- :code:`rp_mode = DEFAULT` - DEBUG or DEFAULT launch mode. DEBUG launches are displayed in a separate tab and not visible to anyone except owner.
107
104
- :code:`rp_thread_logging` - EXPERIMENTAL - Enables support for reporting logs from threads by patching the builtin Thread class. Use with caution.
108
-
- :code:`rp_launch_timeout = 86400` - Maximum time to wait for child processes finish, default value: 86400 seconds (1 day)
105
+
- :code:`rp_launch_timeout = 86400` - Maximum time to wait for child processes finish, default value: 86400 seconds (1 day).
106
+
- :code:`rp_api_retries = 0` - Amount of retries for performing REST calls to RP server.
0 commit comments