vendredi 28 octobre 2016

Android Appium : Test multiple conditions first before to declare that test is failed

Scenario : I have different types of ads coming . One can be clicked on a button and other can be clicked on the whole ad. I have to test when an ad comes , the first test by clicking on the button , if it doesn't work , click on the other type. In appium , in the first if condition if it doesn't find element it will fail the test. How can I test multiple conditions before it declares it failed.

Aucun commentaire:

Enregistrer un commentaire