Added more test cases
This commit is contained in:
		
							parent
							
								
									a9f26d7261
								
							
						
					
					
						commit
						c2caecba4a
					
				
					 1 changed files with 26 additions and 0 deletions
				
			
		| 
						 | 
					@ -57,6 +57,32 @@ public class SignUpTest {
 | 
				
			||||||
        onView(withId(R.id.SignUp)).perform(click());
 | 
					        onView(withId(R.id.SignUp)).perform(click());
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Test
 | 
				
			||||||
 | 
					    public void checkSignUp3() throws Exception{
 | 
				
			||||||
 | 
					        onView(withId(R.id.UsernameInput)).perform(typeText(""), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.PasswordInput)).perform(typeText(""), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.FirstNameInput)).perform(typeText(""), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.LastNameInput)).perform(typeText(""), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.SignUp)).perform(click());
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @Test
 | 
				
			||||||
 | 
					    public void checkSignUp4() throws Exception{
 | 
				
			||||||
 | 
					        onView(withId(R.id.UsernameInput)).perform(typeText("$$$$$$"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.PasswordInput)).perform(typeText("$$$$$$"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.FirstNameInput)).perform(typeText("$$$$$$"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.LastNameInput)).perform(typeText("$$$$$$"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.SignUp)).perform(click());
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public void checkSignUp5() throws Exception{
 | 
				
			||||||
 | 
					        onView(withId(R.id.UsernameInput)).perform(typeText("user"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.PasswordInput)).perform(typeText("pass"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.FirstNameInput)).perform(typeText("Honda"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.LastNameInput)).perform(typeText("Gokuchi"), closeSoftKeyboard());
 | 
				
			||||||
 | 
					        onView(withId(R.id.SignUp)).perform(click());
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @After
 | 
					    @After
 | 
				
			||||||
    public void tearDown() throws Exception {
 | 
					    public void tearDown() throws Exception {
 | 
				
			||||||
        mActivity=null;
 | 
					        mActivity=null;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue