Class FilterTest

java.lang.Object
com.snapfix.tests.FilterTest

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

FilterTest Class Docs

This class contains 14 test for filter and search task with It will run priority wise from 1 to 14.

Filter is located in top right corner basically used to search task by tag, added user, created or modified date of task.

Used static group 'Test Business p' for testing purpose with default tag headers : Location, Asset, Tag.

Tagheader means heading of specific tag. right now we have 3 tag heading limit user can customise their name as per their requirement

  • LocationFilter - In this test we are selecting location(tagheader1) from filter menu and check if all related tasks appears in task screen or not.
  • AssetFilter - In this test we are selecting asset(tagheader2) from filter menu and check id all related tasks appears in task screen or not.
  • TagFilter - In this test we are selecting tag(tagheader3) from filter menu and check id all related tasks appears in task screen or not.
  • UserFilter - In this test we are selecting User from filter menu and check if all related tasks appears in task screen or not
  • locationAndAssetFilter - In this test we are selecting location(tagheader1) and asset(tagheader2) from filter menu and check if all related tasks appears in task screen or not.
  • locationAndTagFilter - In this test we are selecting location(tagheader1) and tag(tagheader3) from filter menu and check if all related tasks appears in task screen or not.
  • locationAndUserFilter - In this test we are selecting location(tagheader1) and user from filter menu and check if all related tasks appears in task screen or not.
  • assetAndTagFilter - In this test we are selecting asset(tagheader2)and tag(tagheader3) from filter menu and check if all related tasks appears in task screen or not.
  • assetAndUserFilter - In this test we are selecting asset(tagheader2)and user from filter menu and check if all related tasks appears in task screen or not.
  • tagAndUserFilter - In this test we are selecting tag(tagheader3)and user from filter menu and check if all related tasks appears in task screen or not.
  • locationAssetsAndTagFilter - In this test we are selecting location(tagheader1) asset(tagheader2)and tag(tagheader3) from filter menu and check if all related tasks appears in task screen or not.
  • locationAssetsAndUser - In this test we are selecting location(tagheader1), asset(tagheader2)and user from filter menu and check if all related tasks appears in task screen or not.
  • locationTagAndUser - In this test we are selecting location(tagheader1), tag(tagheader3)and user from filter menu and check if all related tasks appears in task screen or not.
  • assetsTagAndUser - In this test we are selecting asset(tagheader2), tag(tagheader3)and user from filter menu and check if all related tasks appears in task screen or not after that go to burger menu and logout.

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

    • FilterTest

      public FilterTest()
  • Method Details

    • jsonCommonData

      public void jsonCommonData()
    • setObjectValues

      public void setObjectValues()
    • LoginTest

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

      public void commonClearFilter() throws java.lang.InterruptedException
      Throws:
      java.lang.InterruptedException
    • commonLocation

      public void commonLocation() throws java.lang.InterruptedException, java.io.IOException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
    • commonAsset

      public void commonAsset() throws java.lang.InterruptedException, java.io.IOException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
    • commonTag

      public void commonTag() throws java.lang.InterruptedException, java.io.IOException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
    • commonUser

      public void commonUser() throws java.lang.InterruptedException, java.io.IOException
      Throws:
      java.lang.InterruptedException
      java.io.IOException
    • LocationFilter

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

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

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

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

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

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

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

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

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

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

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

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

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

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