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

Update BrowserStack Session Status #456

Closed rohandudam closed 1 month ago

rohandudam commented 2 months ago

Look at the attached screenshots to look at staus update: When test pass: session status pass When test fail: session status failed

nelabhotlaR commented 2 months ago

Tested the fix with and without fix to know what exactly change and how it is behaving before fix and after fix. Tested for PASS and Failed Scenarios. I was trying to test Javascript Failed message to display and how it will display the status in BS. here are the details image image image

rohandudam commented 2 months ago

Tested the fix with and without fix to know what exactly change and how it is behaving before fix and after fix. Tested for PASS and Failed Scenarios. I was trying to test Javascript Failed message to display and how it will display the status in BS. here are the details image image image

@nelabhotlaR What changes do you made to make test to fail. Test executing PASS command. And do you touched conftest.py, specifically javascript code which we are using to set status? Are you able to reproduce the issue consistantly?

nelabhotlaR commented 2 months ago

@rohandudam , In execute_javascript() method I was testing this line of code print(f"An error occured during javascript execution: {str(e)}") for which I modified the code to fail and display this print() statement.