Skip to content

Commit bebc892

Browse files
authored
Use pabot when using Selenium grid (robotframework#1498)
Only using pabot when running test in CI and by using Selenium Grid.
1 parent 03ea961 commit bebc892

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ chromedriver.log
1414

1515
dist
1616
build
17+
.pabotsuitenames

atest/run.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,10 @@ def http_server():
167167

168168
def execute_tests(interpreter, browser, rf_options, grid):
169169
options = []
170-
runner = interpreter.split() + ['-m', 'robot.run']
170+
if grid:
171+
runner = interpreter.split() + ['-m', 'pabot.pabot', '--verbose', '--processes', '2']
172+
else:
173+
runner = interpreter.split() + ['-m', 'robot.run']
171174
options.extend([opt.format(browser=browser) for opt in ROBOT_OPTIONS])
172175
if rf_options:
173176
options += rf_options

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ robotstatuschecker >= 1.4
66
approvaltests >= 0.2.4
77
pytest
88
requests
9+
robotframework-pabot
910

1011
# Include normal dependencies from requirements.txt. Makes it possible to use
1112
# requirements-dev.txt as a single requirement file in PyCharm and other IDEs.

0 commit comments

Comments
 (0)