Table of contents
1.
Introduction
2.
Creating or importing test data files
3.
Creating a new Test Suite with Test Case Variables
4.
Managing Data Binding
5.
Frequently Asked Questions
5.1.
What is Katalon Studio used for?
5.2.
Is Katalon Studio free?
5.3.
Is Katalon Studio easy?
5.4.
What language does Katalon use?
6.
Conclusion
Last Updated: Mar 27, 2024

How to Run a Test Case with an External Data Source in Katalon Studio

Author Nagendra
0 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

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.

External Data Source in Katalon Studio Image

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:
Test Data Image

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.

Test Suite image

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.
Data Binding Image

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.

Test Suite image

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.
Data Column image

Credit: Katalon Studio

  • Click on the Set Test Data to determine which test data from the list is used for the execution.
variable binding

Credit: Katalon Studio

  • Click each cell in the Value column to define the data field in the selected data file. For example:
Variable Binding Image

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.

Test data Image

Credit: Katalon Studio
 

  • Save and run the test suite.
Log Viewer Image

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.

We hope that this blog has helped you enhance your knowledge regarding How to Run a Test Case with an External Data Source in Katalon Studio. If you would like to learn more, check out our articles on Katalon, you can refer to our guided paths on the Coding Ninjas Studio platform to learn more about DSADBMSCompetitive ProgrammingPythonJavaJavaScript, etc. To practice and improve yourself in the interview, you can also check out Top 100 SQL problemsInterview experienceCoding interview questions, and the Ultimate guide path for interviews. Do upvote our blog to help other ninjas grow. Happy Coding!!

Live masterclass