qxf2 / qxf2-page-object-model

Write Selenium and Appium tests in Python using the Page Object pattern. This Pythonic GUI and API test automation framework will help you get started with QA automation quickly. It comes with many useful integrations like - email, BrowserStack, Slack, TestRail, etc. This repository is developed and maintained by Qxf2 Services.
https://qxf2.com
MIT License
262 stars 191 forks source link

Linking the remote options #459

Closed akkuldn closed 2 months ago

akkuldn commented 2 months ago

Have added link between CLI arguments that are required to run the test remotely.

mohanqxf2 commented 2 months ago

@akkuldn I and @nelabhotlaR Tested this on local:

  1. If you pass the browser version without setting the browser, the test will error out with the message asking you to set the browser python -m pytest --browser="" --ver="119" --remote_flag=Y tests/test_example_table.py this will error out for browser name not specified.

  2. If you pass the OS version without specifying the OS name then test will error out with message asking you to set the os name python -m pytest --browser="chrome" --ver="" --os_name="" --os_version="08" --remote_flag=Y tests/test_example_table.py The tests are running without any issues by take defaults, when the --os_name is not specified but the parameter is passed. image

python -m pytest --browser="chrome" --ver="" --os_version="08" --remote_flag=Y tests/test_example_table.py without os_name parameter running the command will throw out the error image

  1. If you pass the browser and not specify the browser version then it will run against the latest version of that browser [working as expected]

  2. If you pass the OS name without specifying the version then, if the OS is windows it will run against "windows 11" , if its "os x" then it will run against "sequoia" [working as expected]

mohanqxf2 commented 2 months ago

@akkuldn If above test case scenarios are expected, then its good to merge