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
256 stars 191 forks source link

Update cross browsers (BrowserStack and LambdaTest) to return session url and noted in logs #430

Closed rohandudam closed 3 weeks ago

rohandudam commented 1 month ago

web test mobile test

rohandudam commented 3 weeks ago

The tests seems to be working fine. I'm also seeing the session URL's for both Browserstack and lambda test.

  1. Something i noted is that when we run the tests in parallel , we don't have an idea of which URL belongs to what test in the console log. session_review I think it would be better if we print the testname along with the URL self.write( "Cloud Session URL: " + '\n' + str(self.session_url))
  2. is the auth_token required to be present in the URL? It enables people outside the organization to view the test runs.
  1. I liked your suggestion. Will make your suggested change in upcoming PR. @akkuldn jfyi: When we run the tests in parallel, we need to check respective test log file under log directory as console log shows random logs from all test. Even we can't guess which log is from which test.
  2. We decided to print public url for BrowserStack session if public_url is available. If public_url is not available or None, it will print private browser_url without auth_token. Look at get_current_session_url method under browserstack_runner.py file.