How to perform Database Testing using Katalon Studio

Katalon Studio allows users to create custom keywords to address specific needs. With custom keywords, you can connect to databases and perform database testing. This tutorial describes details on how to create custom keywords for database testing in Katalon Studio.

Below is a code sample demonstrating how to

  • establish a database connection
  • execute a query
  • close  the connection

Tips: Press “Ctrl + Shift + o“ to automatically import missing libraries in test scripts.

The Custom Keywords file will look like the following:

Katalon Custom Keywords

You can add the sample code above to your keyword file and modify the details as appropriated. Refer to these links for the formats of database connection strings:

Use Defined Keywords in Test Cases for DB Testing

1. Create new custom keywords for database connection (see above).

2. Copy the DB script provided above and paste it into the new keyword editor as illustrated below:Katalon Defined Keywords

81% people found this helpful
Related testing tools
Katalon Studio
Best automation solution for software testing team. Completely free!
Katalon Recorder
Ultimate Selenium IDE to record, play, and debug app. Fast and extensible!
Katalon Analytics
Bring you to the next level of test execution reports. Smart and seamless solution!
Scroll up