Skip to main content

Manage test data

Last updated: November 2026

Katalon Studio allows you to use data from multiple sources to run data-driven tests:

  • External data: Import Excel and CSV files, or connect to database servers.
  • Internal data: Enter data manually in Katalon Studio. You can choose the number of columns and rows and enter a value for each cell.

This document shows you how to create test data files with external and internal data in Katalon Studio.

Create an Excel data file​

To create an Excel test data file, follow these steps:

  1. Select File > New > Test Data from the main menu.

  2. In the New Test Data dialog, enter a name for your test data and select Excel File as the Data Type. Click OK.

    The new test data dialog appears in Katalon Studio
  3. Browse to the Excel file that you want to import into Katalon Studio.

    Browse file in Katalon Studio
  4. Data from the selected Excel file is loaded into the preview section below. You can choose the sheet you want to use.

    Data file editor in Katalon Studio
    note

    By default, Katalon Studio converts variables to strings to perform data binding. You can disable Bind to test case as string to configure variable binding to read test data values as their intended data types.

  5. Save the Test Data when you finish.

You have successfully created an Excel data file. This data file can be used in other configurations. For example, you can use it to input data for test execution when setting up test suites. See Manage data binding.

Create a CSV data file​

To create a CSV test data file, follow these steps:

  1. Select File > New > Test Data from the main menu.

  2. In the New Test Data dialog, enter a name for your test data and select CSV File as the Data Type. Click OK.

    The New Test Data dialog in Katalon Studio
  3. Browse to the CSV file that you want to import into Katalon Studio.

    Browse file in Katalon Studio
  4. Data from the selected CSV file is loaded into the preview section below.

    Data file editor in Katalon Studio
  5. Save the Test Data when you finish.

You have successfully created a CSV data file. This data file can be used in other configurations. For example, you can use it to input data for test execution when setting up test suites. See Manage data binding.

Create a Database data file​

To create a database data file, follow these steps:

  1. Select File > New > Test Data from the main menu.

  2. In the New Test Data dialog, enter a name for your test data and select Database Data as the Data Type. Click OK.

    The New Test Data dialog in Katalon Studio
  3. Click Edit Query to open the Database Connection and Query Settings dialog.

    Database query in Katalon Studio
  4. Enter the connection details and the data query. Click Test Connection to verify whether your database is connected successfully.

    Database Connection and Query Settings dialog in Katalon Studio

    In the JDBC Driver field, you can enter the ClassDriverName of the database with a library support connection (JDBC) to query data from additional database sources.

    note

    You can check Use global database connection settings to use the connection defined in project settings. See Database Settings.

  5. Click OK. The queried data is fetched and loaded into the preview section below.

    Data file editor in Katalon Studio
    note

    By default, Katalon Studio converts variables to strings to perform data binding. You can disable Bind to test case as string to configure variable binding to read test data values as their intended data types.

  6. Save the Test Data when you finish.

You have successfully created a Database data file. This data file can be used in other configurations. For example, you can use it to input data for test execution when setting up test suites. See Manage data binding.

Create an Internal data file​

To create an internal test data file, follow these steps:

  1. Select File > New > Test Data from the main menu.

  2. In the New Test Data dialog, enter a name for your test data and select Internal Data as the Data Type. Click OK.

    The New Test Data dialog in Katalon Studio
  3. In the Editor View, select the option to add a new column.

    Add a column in the data editor
  4. Select the option to add a new row.

    Add a row in the data editor
  5. Click each cell to input its value.

    Enter a value in a data editor cell
  6. Right-click to access the context menu to edit or delete columns or rows.

    Context menu for editing or deleting rows and columns
  7. Save the Test Data when you finish.

You have successfully created an internal data file. This data file can be used in other configurations. For example, you can use it to input data for test execution when setting up test suites. See Manage data binding.

Was this page helpful?