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
PabotLib remote server is started by default to enable locking and resource distribution between parallel test executions.
90
100
91
101
Supports all [Robot Framework command line options](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#all-command-line-options) and also following pabot options:
92
102
93
-
--verbose
103
+
**--verbose**
94
104
More output from the parallel execution.
95
105
96
-
--testlevelsplit
106
+
**--testlevelsplit**
97
107
Split execution on test level instead of default suite level. If .pabotsuitenames contains both tests and suites then
98
108
this will only affect new suites and split only them. Leaving this flag out when both suites and tests in
99
109
.pabotsuitenames file will also only affect new suites and add them as suite files.
100
110
101
-
--command [ACTUAL COMMANDS TO START ROBOT EXECUTOR] --end-command
111
+
**--command [ACTUAL COMMANDS TO START ROBOT EXECUTOR] --end-command**
102
112
RF script for situations where robot is not used directly.
103
113
104
-
--processes [NUMBER OF PROCESSES]
114
+
**--processes [NUMBER OF PROCESSES]**
105
115
How many parallel executors to use (default max of 2 and cpu count). Special option "all" will use as many processes as
106
116
there are executable suites or tests.
107
117
108
-
--no-pabotlib
118
+
**--no-pabotlib**
109
119
Disable the PabotLib remote server if you don't need locking or resource distribution features.
110
120
111
-
--pabotlibhost [HOSTNAME]
121
+
**--pabotlibhost [HOSTNAME]**
112
122
Connect to an already running instance of the PabotLib remote server at the given host (disables the local PabotLib
113
123
server start). For example, to connect to a remote PabotLib server running on another machine:
This enables sharing a resource with multiple Robot Framework instances.
123
133
124
-
--pabotlibport [PORT]
134
+
Additional details:
135
+
- The default value for --pabotlibhost is 127.0.0.1.
136
+
- If you provide a hostname other than 127.0.0.1, the local PabotLib server startup is automatically disabled.
137
+
138
+
**--pabotlibport [PORT]**
125
139
Port number of the PabotLib remote server (default is 8270). See --pabotlibhost for more information.
126
140
127
-
--processtimeout [TIMEOUT]
141
+
Behavior with port and host settings:
142
+
- If you set the port value to 0 and --pabotlibhost is 127.0.0.1 (default), a free port on localhost will be assigned automatically.
143
+
144
+
**--processtimeout [TIMEOUT]**
128
145
Maximum time in seconds to wait for a process before killing it. If not set, there's no timeout.
129
146
130
-
--shard [INDEX]/[TOTAL]
147
+
**--shard [INDEX]/[TOTAL]**
131
148
Optionally split execution into smaller pieces. This can be used for distributing testing to multiple machines.
132
149
133
-
--artifacts [FILE EXTENSIONS]
150
+
**--artifacts [FILE EXTENSIONS]**
134
151
List of file extensions (comma separated). Defines which files (screenshots, videos etc.) from separate reporting
135
152
directories would be copied and included in a final report. Possible links to copied files in RF log would be updated
136
153
(only relative paths supported). The default value is `png`.
@@ -139,49 +156,51 @@ Supports all [Robot Framework command line options](https://robotframework.org/r
139
156
140
157
--artifacts png,mp4,txt
141
158
142
-
--artifactsinsubfolders
159
+
The artifact naming conventions are described in the README.md section: [Output Files Generated by Pabot](#output-files-generated-by-pabot).
160
+
161
+
**--artifactsinsubfolders**
143
162
Copy artifacts located not only directly in the RF output dir, but also in it's sub-folders.
144
163
145
-
--resourcefile [FILEPATH]
164
+
**--resourcefile [FILEPATH]**
146
165
Indicator for a file that can contain shared variables for distributing resources. This needs to be used together with
147
166
pabotlib option. Resource file syntax is same as Windows ini files. Where a section is a shared set of variables.
148
167
149
-
--argumentfile[INTEGER][FILEPATH]
168
+
**--argumentfile[INTEGER][FILEPATH]**
150
169
Run same suites with multiple [argumentfile](http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#argument-files) options.
151
170
152
171
For example:
153
172
154
173
--argumentfile1 arg1.txt --argumentfile2 arg2.txt
155
174
156
-
--suitesfrom [FILEPATH TO OUTPUTXML]
175
+
**--suitesfrom [FILEPATH TO OUTPUTXML]**
157
176
Optionally read suites from output.xml file. Failed suites will run first and longer running ones will be executed
158
177
before shorter ones.
159
178
160
-
--ordering [FILE PATH]
179
+
**--ordering [FILE PATH]**
161
180
Optionally give execution order from a file.
162
181
163
-
--chunk
182
+
**--chunk**
164
183
Optionally chunk tests to PROCESSES number of robot runs. This can save time because all the suites will share the same
165
184
setups and teardowns.
166
185
167
-
--pabotprerunmodifier [PRERUNMODIFIER MODULE OR CLASS]
186
+
**--pabotprerunmodifier [PRERUNMODIFIER MODULE OR CLASS]**
168
187
Like Robot Framework's --prerunmodifier, but executed only once in the pabot's main process after all other
169
188
--prerunmodifiers. But unlike the regular --prerunmodifier command, --pabotprerunmodifier is not executed again in each
170
189
pabot subprocesses. Depending on the intended use, this may be desirable as well as more efficient. Can be used, for
171
190
example, to modify the list of tests to be performed.
172
191
173
-
--no-rebot
192
+
**--no-rebot**
174
193
If specified, the tests will execute as usual, but Rebot will not be called to merge the logs. This option is designed
175
194
for scenarios where Rebot should be run later due to large log files, ensuring better memory and resource availability.
176
195
Subprocess results are stored in the pabot_results folder.
177
196
178
-
--help
197
+
**--help**
179
198
Print usage instructions.
180
199
181
-
--version
200
+
**--version**
182
201
Print version information.
183
202
184
-
Example usages:
203
+
**Example usages:**
185
204
186
205
pabot test_directory
187
206
pabot --exclude FOO directory_to_tests
@@ -398,6 +417,12 @@ Artifacts are **copied** into the output directory and renamed with the followin
398
417
TIMESTAMP-ARGUMENT_INDEX-PABOTQUEUEINDEX
399
418
```
400
419
420
+
If you use the special option `notimestamps` at the end of the `--artifacts` command, (For example: `--artifacts png,txt,notimestamps`) the timestamp part will be omitted, and the name will be in the format:
421
+
422
+
```
423
+
ARGUMENT_INDEX-PABOTQUEUEINDEX
424
+
```
425
+
401
426
-**TIMESTAMP** = Time of `pabot` command invocation (not the screenshot's actual timestamp), format: `YYYYmmdd_HHMMSS`
402
427
-**ARGUMENT_INDEX** = Optional index number, only used if `--argumentfileN` options are given
403
428
-**PABOTQUEUEINDEX** = Process queue index (see section [Global Variables](#global-variables))
0 commit comments