lundi 23 février 2015

Robotium best practice. clickOnView vs clickOnButton

I was wondering if it is not better to always use solo.clickOnView(solo.getView(R.id.example_button)); to press on an button or solo.enterText((EditText) solo.getView(R.id.example_editText), "invalidEmail"); to enter en Text. When using the index solo.clickOnButton(0) to press on an button, the test will fail instant when UI has changed.


Would this still be BlackBox Testing when always using the View?


Im new to Robotium and testing itself and was wondering what other Programmers are using.


Aucun commentaire:

Enregistrer un commentaire