Introduction
Hey there! Hope you’re doing well.
This blog will address how to search and call test cases in Katalon. Doing manual work is very time-consuming and inconvenient for developers. A task like searching through numerous test artefacts would be a problem.
To smoothen out this process, Katalon Studio provides search functions to search for test artefacts based on specific filters.
Search Test Cases
Search functions in Katalon are used to search for test suites, test files and folders using criteria. We can use the Query Builder function, the advanced search option or directly set search criteria in the search bar provided. Using a search function requires the ID and tags of the test artefact.
The ID of a test artefact can be obtained by navigating to the Test Explorer, right-clicking the desired test artefact and selecting Copy ID. The properties of a test artefact and its tag is displayed in the Properties view.
Search Bar
The search bar is placed at the top of the Test Explorer. To type in the test artefact’s ID, follow this syntax:
id=(Your_Test_Case_ID)
Advanced Search
The Advanced Search option is available right next to the search bar, its icon depicting a search icon with a plus sign. We can also access this function by going to Actions and selecting Advanced Search. In the dialogue box that appears, we can input our search criteria and click on Search. The Advanced Search function will query all test cases in Katalon that satisfy the given criteria.
Query Builder
Like Advanced Search, Query Builder, can filter out test cases based on specific criteria. The option to use this function is available while working in test suites. The option is present right next to the Query box. In the Query Builder dialogue box, we can search for test cases by ID, name, description, comment or tag. Enter the search criteria and click on Search. Note that searching by tag, description or comment allows only one keyword at a time.