Skip to content
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

Merged
merged 7 commits into from
Mar 29, 2024
Merged

Conversation

drishyatm
Copy link
Collaborator

@drishyatm drishyatm commented Mar 22, 2024

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 .

#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"
Copy link
Collaborator

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

Copy link
Collaborator Author

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

@drishyatm drishyatm merged commit 49e0aed into master Mar 29, 2024
2 checks passed
@rohandudam rohandudam deleted the issue_364_remote_options_fix branch November 4, 2024 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants