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

API tests are not using `api_url` command-line option, defaulting to config file value #481

Closed rohandudam closed 2 weeks ago

rohandudam commented 1 month ago

I have identified a bug in our framework where the api tests are not using the value provided for the api_url command-line option. Instead, the tests always default to using the API URL from the configuration file base_url_conf.api_base_url.

Steps to reproduce:

Expected behavior: The test should prioritize and use the api_url provided through the command line option over the one from the configuration file.

Please investigate and fix this issue so that the framework properly utilizes the command-line option for the api_url.