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.
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.
Conclusion
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!