AI value or vanity? How SaaS companies are approaching innovation
Download the report
Request a DemoLog in

Using Qase API and ChatGPT to generate test cases

Adil Aslam Test Lead
Publish date: 15th March 2023

What is Qase API?

Qase API is an API that provides access to test cases, test suites, test runs, and other QA-related data. With Qase API, you can create, read, update, and delete test cases programmatically. Qase API supports various programming languages, including Python.

What is ChatGPT?

ChatGPT is an API provided by OpenAI that generates human-like text based on the given input prompt. It uses the latest natural language processing techniques to generate text that sounds like it was written by a human.

How we combined Qase API and ChatGPT

We created a Python script that utilizes both Qase API and ChatGPT's OpenAI API to retrieve test case steps from Qase and feed them through to ChatGPT. We then asked ChatGPT to read the test case and suggest and write more test cases for that scenario. ChatGPT then sends a response with the suggestion or test case.

To make it more user-friendly, we wrapped the Python script in a Flask application. This way, users can enter the Qase API URL and token and get a response from the integrated Qase ChatGPT API script we created.

Here's an example of how it works:

We enter the Qase API URL and our Qase API token into the Flask application.

Test case suggestion tool

The response we get from the integrated Qase ChatGPT:

As seen from the screenshot above, the response is from OpenAI's API displaying a suggested test case based on licensing.

Why and where we're planning on taking this in the future

We created this project to help us think of more scenarios that we may have missed when writing down test cases. We believe that the powerful AI tool we used can help us save time and effort while still ensuring that our software is thoroughly tested.

Currently, we're at very early stages, but we're really pleased with the output we've received from this project. Our plan is to expand the functionality of this project to read multiple test cases, write and suggest more test cases, and help refine our current test cases. By doing so, we hope to make our testing process more efficient and effective.

With this project, we're also hoping to encourage more businesses to explore the potential of AI in software testing. By automating the process of generating test cases, businesses can save time, reduce errors, and improve the quality of their software.


We've shown you how to combine Qase API and ChatGPT's OpenAI API to generate test cases automatically. With this approach, you can save time and effort while still ensuring that your software is thoroughly tested. If you're interested in learning more, we encourage you to check out the Qase and ChatGPT documentation. Happy testing!

67% of SaaS companies already have AI capabilities
What's in your AI toolkit? Download our research report for insights into SaaS AI progression and priorities.
Download the report
Topics in this post: 
Adil Aslam, Test Lead View all posts by Adil Aslam
Share this post
Related posts: 
Artificial Intelligence

Causal AI: The Evolution of Augmented Intelligence

Casual AI will be the future of embedded analytics for SaaS applications, as users demand more insightful information drawn from their data.
Artificial Intelligence

Advisor vs Autocrat: AI Friend or Foe? Part 2

AI already helps to give us choice, but are we comfortable with allowing it to make the final decision? We discuss the ethics of AI, ML and algorithms.
Artificial Intelligence

AI – An opportunity for change

AI presents us with unprecedented opportunities for change. We look into the history of AI and where it might take us in the future.

Houston... we've got mail.

Sign up with your email to receive news, updates and the latest blog articles to inspire you and your business.
  • This field is for validation purposes and should be left unchanged.
Privacy PolicyT&Cs
© Panintelligence