-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 364 remote options fix #376
Conversation
…ument, moved the remote urls to remote_url_conf
… into issue_364_remote_options_fix
#The URLs for connecting to BrowserStack and Sauce Labs. | ||
|
||
browserstack_url = "http://hub-cloud.browserstack.com/wd/hub" | ||
saucelabs_url = "https://ondemand.eu-central-1.saucelabs.com:443/wd/hub" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the port number from the url?
Using HTTPS
will make it use 443
, we can skip adding the port number in the URL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could create this as new issue
Remote testing ( browserstack and saucelabs) would be taking the parameters as which browser /version to test .
However noticed that the option passing as browser is throwing error message as "list index out of range"
While we run the test using the command
python -m pytest tests/test_example_form.py --remote_flag Y --browser firefox
Fixed this issue .
Changed files :
conftest.py
page_objects/driverfactory.py
Added file :
remote_url_conf.py
How to test :
Run the test with the remote options it should take the partial options and go with the default ones . If not browser option provided , it will ask for it
python -m pytest tests/test_example_form.py --remote_flag Y --browser firefox
Will pass
python -m pytest tests/test_example_form.py --remote_flag Y --ver 122 will take the default browser and the updated version that pass .