Create Espresso Test Class
suggest changePlace next java class in src/androidTest/java and run it.
public class UITest {
@Test public void Simple_Test() {
onView(withId(R.id.my_view)) // withId(R.id.my_view) is a ViewMatcher
.perform(click()) // click() is a ViewAction
.check(matches(isDisplayed())); // matches(isDisplayed()) is a ViewAssertion
}
}
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents