jeudi 24 octobre 2019

How to avoid the test execution if application throws exception?

Good morning, i am junior tester and i have to test a very unstable application in Javafx. I am using testfx framework.

I am testing a very unstable application. This application throws some exceptions and it affect the execution of test. When i am going to check the trace's exception, the test shows its exceptions after the application exceptions. It can produce confusion, because the developers can blame the QA team.

Is there any way to stops the test executions if the application throws exception to avoid test's exceptions?

Is there any way to different the tests exceptions from the application exceptions?

Thanks advance

//If application fail or throws exceptions,
//this code throws nullpointer exception.
//If the application doenst fail, this code
//work perfectly
new FxRobot.lookup("#anyid").query.isVisible()

I tried catch a test exception, but if application works perfecty and test throws a exception, i need to know it. I need to know if application fail.I am interested in application's exceptions if the application fail.

Aucun commentaire:

Enregistrer un commentaire