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 classLoginTest.TestNGRunner -
Field Summary
Fields Modifier and Type Field Description static java.lang.Stringmessage -
Constructor Summary
Constructors Constructor Description LoginTest() -
Method Summary
Modifier and Type Method Description voidgetResponseBody()voidInternetPoorConnection()voidInternetPoorConnectionForMessages()voidinvalidEmailAndInvalidPassword()voidinvalidEmailAndValidPassword()voidinvalidMobileAndInvalidPassword()voidinvalidMobileFirstDoubleZeroAndPassword()voidinvalidMobileFirstZeroAndPassword()voidinvalidMobileFourDigitAndPassword()voidinvalidMobileFourSpecaialCharacterPassword()voidinvalidMobilePluseSpaceAndIPassword()voidinvalidMobilePluseSplasSpaceAndIPassword()voidinvalidMobileSemiColonAndPassword()voidinvalidMobileSpecialCharacterAndPassword()voidjsonCommonData()voidLogin()voidLoginCheck()voidtearDown()voidvalidEmailAndInvalidPassword()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.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
InternetPoorConnection
public void InternetPoorConnection() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidEmailAndValidPassword
public void invalidEmailAndValidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
validEmailAndInvalidPassword
public void validEmailAndInvalidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidEmailAndInvalidPassword
public void invalidEmailAndInvalidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobileAndInvalidPassword
public void invalidMobileAndInvalidPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobileFourDigitAndPassword
public void invalidMobileFourDigitAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobileSpecialCharacterAndPassword
public void invalidMobileSpecialCharacterAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobileSemiColonAndPassword
public void invalidMobileSemiColonAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobileFirstZeroAndPassword
public void invalidMobileFirstZeroAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobileFirstDoubleZeroAndPassword
public void invalidMobileFirstDoubleZeroAndPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobileFourSpecaialCharacterPassword
public void invalidMobileFourSpecaialCharacterPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobilePluseSpaceAndIPassword
public void invalidMobilePluseSpaceAndIPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
invalidMobilePluseSplasSpaceAndIPassword
public void invalidMobilePluseSplasSpaceAndIPassword() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
Login
public void Login() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
getResponseBody
public void getResponseBody() -
tearDown
@AfterSuite public void tearDown() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-