Skip to content

Instantly share code, notes, and snippets.

@prashanth-sams
Last active November 5, 2019 06:10
Show Gist options
  • Save prashanth-sams/33c9b41b197c8de06c6242fdbf66e70e to your computer and use it in GitHub Desktop.
Save prashanth-sams/33c9b41b197c8de06c6242fdbf66e70e to your computer and use it in GitHub Desktop.
Python Automation - Appium parallel
if os.getenv('PYTEST_XDIST_WORKER') == 'gw1':
return 8101
else: # include 'master' and 'gw0'
return 8100
if os.getenv('PYTEST_XDIST_WORKER') == 'gw0':
return 'emulator-5554'
elif os.getenv('PYTEST_XDIST_WORKER') == 'gw1':
return 'emulator-5556'
else: # default
return 'emulator-5554'
@pytest.mark.parametrize("udid, systemPort", [
("emulator-5554", "8201"),
("emulator-5556", "8202"),
("emulator-5558", "8203"),
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment