Package com.snapfix.tests
Class LoginTest
java.lang.Object
com.snapfix.tests.LoginTest
public class LoginTest
extends java.lang.Object
*********************************************************************************************************************
This class contains 13 test cases in login scenario for email and mobile phone number.
LoginTest Class Docs
This class contains 13 test cases in login scenario for email and mobile phone number.
- invalidEmailAndValidPassword - This test contains when user enters invalid email and valid password and click on login button that time error message display so we verify that message in this test case
- validEmailAndInvalidPassword - This test contains when user enters valid email and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidEmailAndInvalidPassword - This test contains when user enters invalid email and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileAndInvalidPassword - This test contains when user enters invalid mobile number and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFourDigitAndPassword - This test contains when user enters invalid mobile number with four digit and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileSpecialCharacterAndPassword - This test contains when user enters invalid mobile number with special character and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileSemiColonAndPassword - This test contains when user enters invalid mobile number with semicolon and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFirstZeroAndPassword - This test contains when user enters invalid mobile number with four zero and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFirstDoubleZeroAndPassword - This test contains when user enters invalid mobile number with first two as zero and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFourSpecaialCharacterPassword - This test contains when user enters invalid mobile number with special four character and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobilePluseSpaceAndIPassword - This test contains when user enters invalid mobile number with +,space,number and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobilePluseSplasSpaceAndIPassword - This test contains when user enters invalid mobile number with +,space,special character,number and invalid password and click on login button that time error message display so we verify that message in this test case
- Login - This test contains when user enters valid email and valid password and click on login button, after successful login we verify group listing screen in this test case after that go to burger menu and logout
*********************************************************************************************************************
- invalidEmailAndValidPassword - This test contains when user enters invalid email and valid password and click on login button that time error message display so we verify that message in this test case
- validEmailAndInvalidPassword - This test contains when user enters valid email and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidEmailAndInvalidPassword - This test contains when user enters invalid email and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileAndInvalidPassword - This test contains when user enters invalid mobile number and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFourDigitAndPassword - This test contains when user enters invalid mobile number with four digit and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileSpecialCharacterAndPassword - This test contains when user enters invalid mobile number with special character and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileSemiColonAndPassword - This test contains when user enters invalid mobile number with semicolon and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFirstZeroAndPassword - This test contains when user enters invalid mobile number with four zero and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFirstDoubleZeroAndPassword - This test contains when user enters invalid mobile number with first two as zero and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobileFourSpecaialCharacterPassword - This test contains when user enters invalid mobile number with special four character and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobilePluseSpaceAndIPassword - This test contains when user enters invalid mobile number with +,space,number and invalid password and click on login button that time error message display so we verify that message in this test case
- invalidMobilePluseSplasSpaceAndIPassword - This test contains when user enters invalid mobile number with +,space,special character,number and invalid password and click on login button that time error message display so we verify that message in this test case
- Login - This test contains when user enters valid email and valid password and click on login button, after successful login we verify group listing screen in this test case after that go to burger menu and logout
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
LoginTest.TestNGRunner
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
message
-
Constructor Summary
Constructors Constructor Description LoginTest()
-
Method Summary
Modifier and Type Method Description void
getResponseBody()
void
InternetPoorConnection()
void
InternetPoorConnectionForMessages()
void
invalidEmailAndInvalidPassword()
void
invalidEmailAndValidPassword()
void
invalidMobileAndInvalidPassword()
void
invalidMobileFirstDoubleZeroAndPassword()
void
invalidMobileFirstZeroAndPassword()
void
invalidMobileFourDigitAndPassword()
void
invalidMobileFourSpecaialCharacterPassword()
void
invalidMobilePluseSpaceAndIPassword()
void
invalidMobilePluseSplasSpaceAndIPassword()
void
invalidMobileSemiColonAndPassword()
void
invalidMobileSpecialCharacterAndPassword()
void
jsonCommonData()
void
Login()
void
LoginCheck()
void
tearDown()
void
validEmailAndInvalidPassword()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
message
public static final java.lang.String message- See Also:
- Constant Field Values
-
-
Constructor Details
-
LoginTest
public LoginTest()
-
-
Method Details
-
jsonCommonData
public void jsonCommonData() -
LoginCheck
public void LoginCheck() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
InternetPoorConnectionForMessages
public void InternetPoorConnectionForMessages() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
InternetPoorConnection
public void InternetPoorConnection() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidEmailAndValidPassword
public void invalidEmailAndValidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
validEmailAndInvalidPassword
public void validEmailAndInvalidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidEmailAndInvalidPassword
public void invalidEmailAndInvalidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobileAndInvalidPassword
public void invalidMobileAndInvalidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobileFourDigitAndPassword
public void invalidMobileFourDigitAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobileSpecialCharacterAndPassword
public void invalidMobileSpecialCharacterAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobileSemiColonAndPassword
public void invalidMobileSemiColonAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobileFirstZeroAndPassword
public void invalidMobileFirstZeroAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobileFirstDoubleZeroAndPassword
public void invalidMobileFirstDoubleZeroAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobileFourSpecaialCharacterPassword
public void invalidMobileFourSpecaialCharacterPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobilePluseSpaceAndIPassword
public void invalidMobilePluseSpaceAndIPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
invalidMobilePluseSplasSpaceAndIPassword
public void invalidMobilePluseSplasSpaceAndIPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
Login
public void Login() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedException
java.io.IOException
java.text.ParseException
-
getResponseBody
public void getResponseBody() -
tearDown
@AfterSuite public void tearDown() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-