Guest User

Untitled

a guest
Apr 1st, 2018
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. @MediumTest
  2. public void testLoginSenzaCredenziali() {
  3.  
  4. Button btn_login = (Button) mActiviy.findViewById(R.id.btn_login);
  5. EditText txt_username = (EditText) mActiviy.findViewById(R.id.txt_login_username);
  6. EditText txt_password = (EditText) mActiviy.findViewById(R.id.txt_login_password);
  7.  
  8. assertNotNull("Button btn_login non può essere nullo", btn_login);
  9. assertNotNull("EditText txt_username non può essere nullo", txt_username);
  10. assertNotNull("EditText txt_password non può essere nullo", txt_password);
  11. assertEquals("EditText txt_username deve essere vuota", "", txt_username.getText());
  12. assertEquals("EditText txt_password deve essere vuota", "", txt_password.getText());
  13.  
  14.  
  15. }
  16.  
  17. public class LoginTest extends ActivityUnitTestCase<LoginActivity>
  18.  
  19. @Override
  20. protected void setUp() throws Exception {
  21. super.setUp();
  22. }
  23.  
  24. adb shell pm list packages
Add Comment
Please, Sign In to add comment