Class LoginTest

java.lang.Object
com.snapfix.tests.LoginTest

public class LoginTest
extends java.lang.Object
*********************************************************************************************************************

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

*********************************************************************************************************************

  • Field Details

  • 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