From 3a4c792cb5e4739ac7a106eed4e658262c5ae79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Batuhan=20Berk=20Ba=C5=9Fo=C4=9Flu?= Date: Thu, 1 Nov 2018 21:17:32 -0400 Subject: [PATCH] Added more test cases --- .../olympus/olympusservices/SignUpTest.java | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/SignUpTest.java b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/SignUpTest.java index 1b4af49..b299158 100644 --- a/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/SignUpTest.java +++ b/OlympusServices/app/src/androidTest/java/com/uottawa/olympus/olympusservices/SignUpTest.java @@ -57,6 +57,32 @@ public class SignUpTest { 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 public void tearDown() throws Exception { mActivity=null;