Class SearchTest

java.lang.Object
com.snapfix.tests.SearchTest

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

SearchTest Class Docs

This class contains 15 test cases for search task scenario.

In the task screen we are using search bar to add text to search task by name, description(notes), task number and text chat.

Search bar is located at top in the task screen by tapping search button it will be visible.

All tasks have title, description(notes), task number and messages for task understanding and status user can search by using this feature from thi details.

  • SearchByTaskName - Search by task title suppose user type "test" then all related tasks should be shown in the task screen.
  • SearchByMessage - Search by message suppose user type "hello" all task which contains message hello all related tasks should be shown in the task screen.
  • SearchByJobNumberHalf/SearchByJobNumberFull/SearchByJobNumberWrong - Search by task number each task contains unique task number suppose user types "123" or "123456" all related tasks should be shown in the task screen no matter if typed full or half.
  • SearchByChatMessage1/SearchByChatMessage2/SearchByChatMessage3 - As above method 'SearchByMessage' work with different search criteria to enhance more scenario to text accurately.
  • SearchByDescription1/SearchByDescription2 - Search by tasks description(notes) suppose user typed 'planned' all task with description planned will be shown in the task screen.
  • SearchByTitleDescriptionMessage - We are testing to check if all related task description and mesage or not to make sure we are using static jobs with related decription or message to test it properly.
  • SearchByBlankSpaces - We are just adding more scenarios to check if black space don't affect to tasl screen
  • In the end we are logout from testing account

*********************************************************************************************************************
  • Constructor Details

    • SearchTest

      public SearchTest()
  • Method Details

    • jsonCommonData

      public void jsonCommonData()
    • logOut

      public void logOut()
    • setObjectValues

      public void setObjectValues()
    • LoginTest

      public void LoginTest() throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException
    • SearchByTaskName

      public void SearchByTaskName() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByMessage

      public void SearchByMessage() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByJobNumberHalf

      public void SearchByJobNumberHalf() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByJobNumberFull

      public void SearchByJobNumberFull() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByJobNumberWrong

      public void SearchByJobNumberWrong() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByChatMessage1

      public void SearchByChatMessage1() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByChatMessage2

      public void SearchByChatMessage2() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByChatMessage3

      public void SearchByChatMessage3() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByDescription1

      public void SearchByDescription1() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByDescription2

      public void SearchByDescription2() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByTitleAndDescription1

      public void SearchByTitleAndDescription1() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByTitleAndDescription2

      public void SearchByTitleAndDescription2() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByTitleDescriptionMessage

      public void SearchByTitleDescriptionMessage() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByBlankSpaces

      public void SearchByBlankSpaces() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
      java.text.ParseException
    • SearchByFourTimeZero

      public void SearchByFourTimeZero() 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