Created
February 23, 2016 02:03
-
-
Save luizmarcus/ba9f009f9f525258d3c8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Test | |
public void executarTesteLoginContaCorreta() { | |
//Insere o usuário no campo user | |
onView(withId(R.id.user)).perform(typeText("Testeapp"), closeSoftKeyboard()); | |
//Insere a senha no campo pass | |
onView(withId(R.id.pass)).perform(typeText("Password"), closeSoftKeyboard()); | |
//Clica no botao submit | |
onView(withId(R.id.submit)).perform(click()); | |
//Verifica se o texto é exibido no textView da SecondActivity | |
onView(withId(R.id.success)).check(matches(withText("Logado!"))); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment