Closed mvasin closed 4 years ago
I believe this is due to the fact that the BrowserStack GUI shows the status of the tests in the "physical" world, in that a session didn't timeout or error.
If it shows completed it means it completed the test but is abstracted away from the result of the test.
I hope this makes sense.
that seems incredible useless. I am experiencing something similar where tests are failing but its showing completed in the portal. This pretty much makes this platform useless if you can only observe the actual test results in the console on your development machine.
@mvasin @chrisathook @gregoryduckworth, The reason all tests are green is that the command driver.quit
was executed by the user/ framework. The system cannot itself say if the user's test was passed or failed as it does not receive such data during a selenium session.
However, Browserstack provides additional rest API if you would like to mark a session as passed/failed. I think that is what you are looking for. Link: https://www.browserstack.com/automate/rest-api
Someone can patch the framework too to use the above APIs to mark a test as failed.
I followed readme instructions on how to set up, then did
npm run parallel
.According to terminal output, firefox test failed:
but dashboard shows it passed: