New data from 1,500+ QA pros: The 2025 State of Software Quality Report is live
DOWNLOAD YOUR COPY
All All News Products Insights AI DevOps and CI/CD Community
Blog / Products /
Generate API Tests With AI in Katalon Studio: A Detailed Guide

Generate API Tests With AI in Katalon Studio: A Detailed Guide

Contributors Updated on

 

Automation is the key to efficiency and accuracy in today's fast-paced development cycles. The API test case generator (beta) in Katalon Studio is an AI-powered feature that streamlines the creation of test cases from OpenAPI/Swagger specifications. By automating this process, the generator significantly reduces the time and effort required for manual test case creation, paving the way for faster and more efficient API testing. The generator supports status code verification, making it a valuable tool for developers and testers alike. This tutorial will equip you with the prerequisites and steps you need to follow for a quick start.

 

Prerequisites

Before you start, ensure you have the following:

  1. Katalon Studio Enterprise version 9.6.0 or later.
  2. AI Control enabled by the Account Admin.
     

Supported specifications:

  1. OpenAPI 2 (Swagger).
  2. OpenAPI 3.

 

Step-by-Step Guide

Follow these steps to use the API test case generator feature (beta) in Katalon Studio:

 

1. Create or Open an API/Web Service Project

Open Katalon Studio and create a new API/Web Service project or open an existing one.
 

 

2. Import API Specifications

  1. Via the toolbar:

Click the Import from OpenAPI/Swagger button in the toolbar.


image5.png
 

Via Object Repository:

  • Right-click on Object Repository.
  • Select Import > From OpenAPI.

image1.png
 

 

3. Provide API Specification Details

In the import dialog:

  • Provide the file location or URL of the API specification.
  • Tick the “Auto-generate test cases for endpoints with AI” checkbox.
  • Click “OK.”

image6.png
 

 

4. Store Imported Endpoints

The imported endpoints are automatically stored in the Object Repository.

image4.png
 

 

5. Generate Test Cases

  • Select the endpoints for which you want to generate test cases.
  • Click Generate tests.

image2.png
The test case generation process may take a few minutes depending on the number of selected endpoints. You can click “hide” to let the process run in the background while performing other tasks.


 

6. Review and Save Test Cases

Once the test cases are generated:

  • Select which test cases to save.
  • Click Add.
     

The generated API test cases are organized into a folder within Test Cases.

image3.png

 

Conclusion

By following the steps outlined above, you'll be able to harness the power of the AI-driven API test case generator in Katalon Studio to transform your API testing process. This feature is designed to save you time and effort, making your tests more comprehensive and reliable. As you generate and refine your test cases, you'll find that your testing becomes more accurate and efficient, freeing you up to focus on what truly matters. Dive in and experience the productivity boost firsthand—happy testing!

Automating API testing is easier than ever with Katalon

Ask ChatGPT
|

FAQs

What is the primary function of the AI-powered API test case generator in Katalon Studio?

+

The AI-powered API test case generator in Katalon Studio is designed to streamline API testing by automatically creating test cases from OpenAPI/Swagger specifications, significantly reducing manual effort and speeding up the testing process.

What are the key advantages of using AI for API test case generation in Katalon Studio?

+

Key advantages include automated test case creation, faster and more efficient API testing, and built-in support for status code verification, which helps ensure the reliability of your API tests.

Which versions of Katalon Studio and API specifications are compatible with this AI feature?

+

This AI feature requires Katalon Studio Enterprise version 9.6.0 or later. It supports both OpenAPI 2 (Swagger) and OpenAPI 3 specifications.

What prerequisites are necessary to use the AI API test case generator in Katalon Studio?

+

To use this feature, you need Katalon Studio Enterprise version 9.6.0 or later, and AI Control must be enabled by your Account Admin.

How do you generate API test cases using AI from an OpenAPI/Swagger file in Katalon Studio?

+

First, create or open an API/Web Service project. Then, import your API specifications via the toolbar or Object Repository, making sure to tick the "Auto-generate test cases for endpoints with AI" checkbox before clicking OK. Once imported, select the desired endpoints and click "Generate tests."

Katalon Team
Katalon Team
Contributors
The Katalon Team is composed of a diverse group of dedicated professionals, including subject matter experts with deep domain knowledge, experienced technical writers skilled, and QA specialists who bring a practical, real-world perspective. Together, they contribute to the Katalon Blog, delivering high-quality, insightful articles that empower users to make the most of Katalon’s tools and stay updated on the latest trends in test automation and software quality.
on this page
Click