How to use ChatGPT for Software Testing

Ivana Martina Vecchio
3 min readMar 15, 2023

--

What is ChatGPT?

In short, ChatGPT is an artificial intelligence chatbot capable of mimicking a human conversation, playing games, writing poetry, short stories, etc.

As it can create its own content through learning techniques, human feedback, and accessing large amounts of data, it’s also capable of helping and assisting us in our daily work.
This does not mean that it will replace what we do, but it can become a helpful and powerful tool to complement some of our daily tasks as QA Analysts.
Here are some examples:

1. It can help you set a scope of testing:

You can ask, as an example, for a list of things you need to take into consideration when setting the scope of validation.

In this example below, I’m asking ChatGPT to give me a list of things I need to take into consideration when validating a new SQL View:

Once again, this should be taken as a guide and discussed with a peer review or a lead. It also doesn’t replace what is in the documentation's scope of your project, which should have the main points to focus on.
Check if there is anything mentioned in the list that could add value to your testing, or any point indicated by ChatGPT that is missing from the ones you created.

2. Create test cases:

Using keywords for the functionality you want to test, like “Functional”, “web application”, and “login” helps the tool to take all of that into consideration and create more exact test cases. They can be a complement to double-check if you thought of them if you can add some and if they have all the level of detail it’s required to be able to execute it successfully.

In the example below, I’m asking ChatGPT to create 3 test cases for a simple “LOGIN” test:

3. Create Templates for your Test Plan, Test Strategy or any other documentation:

In the example below, I’m asking Chat GPT to provide me with a template of the sections and titles needed in order to create a Test Plan:

Bear in mind that ChatGPT has its limitations. A lot of information on this topic can be found on the web, i.e: The limitations of ChatGPT. It can have faulty memory, length limitations, and access limited data to name a few, and certainly won’t be able to execute a test case for us (For now), but it’s amazing the way in which it can provide information that can save us time and even help us organize that information to make us more efficient.
ChatGPT is only the beginning of this new AI era, and we will soon start to discover the reach of its implementation in our everyday jobs.

--

--