Do you think IIT Guwahati certified course can help you in your career?
No
Introduction
Hey Ninjas!! Welcome to another article on Katalon. Today we will learn how to run a Test Case with an External Data Source in Katalon Studio. The Katalon platform offers testing solutions. It benefits teams of various sizes and testing maturity levels. The toolkit assists small teams in the early stages of automation. It helps to grow into large international corporations in AI/ML. It also supports sharing of API documents to collaborate with external teams.
The blog explains the details of Run a Test Case with an External Data Source in Katalon Studio.
Let's start by Creating test data files.
Creating or importing test data files
Follow the steps to create or import data file:
Select File > New > Test Data.
Use external or internal data sources for test automation.
You can also preview the imported test data as follows:
Credit: Katalon Studio
Creating a new Test Suite with Test Case Variables
Follow the steps to create a new Test Suite with Test Case Variable:
Click on Add option from the command toolbar.
Also, all the test cases in Katalon Studio are in the Test Case Browser dialog.
Credit: Katalon Studio
Now, let’s see how you will manage the data binding.
Managing Data Binding
Following are the steps to manage the data binding:
Click on Show Data Binding on the right side of the test suite editor to expand the Data Binding section.
Credit: Katalon Studio
Select Add in the Test Data table.
Select the data you want to use for execution.
The Selected data are added to the list accordingly.
Credit: Katalon Studio
All the variables of the selected test case are displayed In the Data Binding table.
Select all rows, then choose Set Type, and then select Data Column as their type.
Credit: Katalon Studio
Click on the Set Test Data to determine which test data from the list is used for the execution.
Credit: Katalon Studio
Click each cell in the Value column to define the data field in the selected data file. For example:
Credit: Katalon Studio
You can also use the Map All option if the variables and the data field share the same name in the selected data files to map all the variables with the data fields.
Credit: Katalon Studio
Save and run the test suite.
Credit: Katalon Studio
You have successfully run a Test Case with an External Data Source in Katalon Studio
Frequently Asked Questions
What is Katalon Studio used for?
Katalon is mainly designed to create and reuse automated test scripts for UI without coding. Katalon Studio allows running automated tests of UI elements, including pop-ups, iFrames, and waits time.
Is Katalon Studio free?
You can only get the 30-day free trial by registering at the Katalon Studio.
Is Katalon Studio easy?
Katalon Studio is a relatively simple, straightforward automation testing tool that does not require advanced programming skills to write automated tests while offering a scripting mode for more advanced users and test cases.
What language does Katalon use?
Katalon Studio uses Groovy, a language built on Java, and has to load many libraries for parsing test data, test objects, and logging.
Conclusion
In this article, we have extensively discussed the details of how to Run a Test Case with an External Data Source in Katalon Studio.