VOOZH about

URL: https://thenewstack.io/using-chatgpt-to-create-software-tests/

⇱ Using ChatGPT to Create Software Tests - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2023-06-28 09:15:17
Using ChatGPT to Create Software Tests
sponsor-kubeshop,sponsored-post-contributed,
AI / Large Language Models / Software Testing

Using ChatGPT to Create Software Tests

Let's walk through creating a simple unit test and a load test, and how you can run them in Kubernetes using Testkube.
Jun 28th, 2023 9:15am by Bruno Lopes
👁 Featued image for: Using ChatGPT to Create Software Tests
Kubeshop sponsored this post. Insight Partners is an investor in Kubeshop and TNS.

It’s an exciting time for software testers as advancements in AI tools for testing are paving the way for more efficient QA processes. Developers, testers and site reliability engineers are leveraging AI-powered software testing tools like never before, integrating them into their agile development workflow.

At KubeCon EU in Amsterdam a few months back, I realized that AI is mentioned in a lot of cloud native projects. In most cases companies use AI gimmicks for marketing and don’t achieve anything meaningful with AI. However, there have been a few particular cases where it has drastically changed the way developers achieve certain tasks.

Role of AI in Software Testing

It was only when ChatGPT went viral this year that suddenly we saw something that we could call the “gold rush” of AI, where companies that didn’t have any talent in AI suddenly were releasing features with the AI brand. As with any tech trend, such as the dot-com bubble and crypto hype, many predict an influx of AI-branded features in the next few years, but as we know from history, only a select few will deliver long-lasting value.

For me, the intersection of AI and software testing presents an intriguing challenge. Using AI to create software is one thing, but employing it to test existing software is another ballgame altogether.

In my exploration of AI in software testing, I’ve discovered fascinating patterns among my colleagues at Testkube who regularly employ AI tools for testing. Often, they instruct the AI model to test specific elements by either describing the desired test or providing pieces of source code for analysis.

We are a team of experienced technologists creating development and testing tools, which help teams build cloud native applications easier, better, faster. Backed by the most successful investors in the software industry who see Kubernetes as the foundation for building the software of tomorrow. Insight Partners is an investor in Kubeshop and TNS.
Learn More
The latest from Kubeshop

Using ChatGPT and Testkube

So how can you use ChatGPT to create a test and run it? Whether you’re looking into unit testing, integration testing, end-to-end testing, API testing or load testing, ChatGPT has you covered. Let’s walk through creating a simple unit test and a load test, and how you can run them in Kubernetes using Testkube.

Let’s look at how easy it is to create a unit test by giving ChatGPT our code as input.

Just like that, a unit test is created with ChatGPT.

Now, let’s create a load test from scratch, without giving any code to ChatGPT.

We’ll ask ChatGPT to: “Create a test using K6 load testing tool that checks if the website demo.testkube.io is responding in less than 200 milliseconds. Simulate 20 virtual users; the duration should be 10 seconds.”

Conclusion

Consider the time you’d have saved using AI for software testing, not to mention the speed of test automation using AI tools like ChatGPT and Testkube. While great tools can’t replace good software testers, those who use these tools are definitely at an advantage.

Give it a Try

Interested in AI in software testing? Here’s how you can access ChatGPT’s website. Once you’ve created your tests, use Testkube to execute and automate your tests quickly with Kubernetes.

We are a team of experienced technologists creating development and testing tools, which help teams build cloud native applications easier, better, faster. Backed by the most successful investors in the software industry who see Kubernetes as the foundation for building the software of tomorrow. Insight Partners is an investor in Kubeshop and TNS.
Learn More
The latest from Kubeshop
TRENDING STORIES
Bruno Lopes is a product manager who has been working on the cloud ecosystem as a grant researcher, full-stack developer and, for the past several years, as product manager for Kubeshop.
Read more from Bruno Lopes
Kubeshop sponsored this post. Insight Partners is an investor in Kubeshop and TNS.
SHARE THIS STORY
TRENDING STORIES
TNS owner Insight Partners is an investor in: Pragma, Unit, Kubeshop.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.