Created
February 26, 2019 05:16
-
-
Save zwliew/a61bfe2f5bd05690fb48829040aa5608 to your computer and use it in GitHub Desktop.
UI Testing the Get Hacking Android App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GreeterTest { | |
@Test | |
public void greeterSaysHello() { | |
onView(withId(R.id.name_field)).perform(typeText("Steve")); | |
onView(withId(R.id.greet_button)).perform(click()); | |
onView(withText("Hello Steve!")).check(matches(isDisplayed())); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment