Last active
November 5, 2019 06:10
-
-
Save prashanth-sams/33c9b41b197c8de06c6242fdbf66e70e to your computer and use it in GitHub Desktop.
Python Automation - Appium parallel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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