qxf2-page-object-model icon indicating copy to clipboard operation
qxf2-page-object-model copied to clipboard

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

Open rohandudam opened this issue 4 months ago • 0 comments

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:

  • Run any api test with the --api_url command-line option set to a different value than the one in the configuration file. pytest tests/test_api_example.py --api_url "https://qxf2.com"
  • Observe that the test uses the URL from the config file rather than the command-line value.

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.

rohandudam avatar Oct 18 '24 15:10 rohandudam