Package com.snapfix.tests
Class SearchTest
java.lang.Object
com.snapfix.tests.SearchTest
public class SearchTest
extends java.lang.Object
*********************************************************************************************************************
This class contains 15 test cases for search task scenario.
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
*********************************************************************************************************************
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
*********************************************************************************************************************
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 Summary
Constructors Constructor Description SearchTest() -
Method Summary
Modifier and Type Method Description voidgetResponseBody()voidjsonCommonData()voidLoginTest()voidlogOut()voidSearchByBlankSpaces()voidSearchByChatMessage1()voidSearchByChatMessage2()voidSearchByChatMessage3()voidSearchByDescription1()voidSearchByDescription2()voidSearchByFourTimeZero()voidSearchByJobNumberFull()voidSearchByJobNumberHalf()voidSearchByJobNumberWrong()voidSearchByMessage()voidSearchByTaskName()voidSearchByTitleAndDescription1()voidSearchByTitleAndDescription2()voidSearchByTitleDescriptionMessage()voidsetObjectValues()voidtearDown()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByMessage
public void SearchByMessage() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByJobNumberHalf
public void SearchByJobNumberHalf() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByJobNumberFull
public void SearchByJobNumberFull() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByJobNumberWrong
public void SearchByJobNumberWrong() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByChatMessage1
public void SearchByChatMessage1() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByChatMessage2
public void SearchByChatMessage2() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByChatMessage3
public void SearchByChatMessage3() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByDescription1
public void SearchByDescription1() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByDescription2
public void SearchByDescription2() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByTitleAndDescription1
public void SearchByTitleAndDescription1() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByTitleAndDescription2
public void SearchByTitleAndDescription2() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByTitleDescriptionMessage
public void SearchByTitleDescriptionMessage() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByBlankSpaces
public void SearchByBlankSpaces() throws java.lang.InterruptedException, java.io.IOException, java.text.ParseException- Throws:
java.lang.InterruptedExceptionjava.io.IOExceptionjava.text.ParseException
-
SearchByFourTimeZero
public void SearchByFourTimeZero() 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
-