Saturday, 15 September 2012

java - Android Espresso doesn't perform onData calls -



java - Android Espresso doesn't perform onData calls -

i trying create helper method performs selection (button press).

public void performposeselection(string roomname, int selection) { ondata(anything()) .inadapterview(withid(android.r.id.list)) .atposition(selection) .onchildview(withid(r.id.btn)) .perform(click()); } public void testpickpose() throws interruptedexception{ performposeselection("white room", 0); performposeselection("white room", 1); performposeselection("white room", 1); performposeselection("white room", 0); }

what finding results inconsistent. there times when selection not made @ all! other times, the test performed correctly. causing issue?

java android automated-tests android-espresso

No comments:

Post a Comment