Datepicker android junit

547 views Asked by At

I am new to Android Junit, i have been trying to write test case to a sample application that displays a datepicker on click of button and display it in the textview. I am able to write unit test case to check if the button is getting clicked and datepicker is opening, but on opening of the datepicker how do i change the date in datepicker to a particular date and cross check it with the result in textview using assert. I have used TouchUtils.clickView(this, mdate); to click , mdate is the name of the button in testfile refering to the button in main java file.

Please guide me with this, i am not sure if my understanding is correct

0

There are 0 answers