Jun 17, 2025
Comments
After our last article on using Squish via the Model Context Protocol (MCP), see here, many customers requested more guidance on generating test scripts. This post focuses on one possible setup for using AI assistants to create Squish test scripts.
While this post is especially relevant for QA developers and engineers seeking for test automation tools, the conclusions explain why we believe the described approach makes sense in the rapidly evolving field of generative AI. This should be of interests for generalists looking to understand the developments in test script authoring with foundation models.
Note that we use Cursor in the article but a similar setup can be achieved with all the major AI code assistants including Windsurf, Claude Code, GitHub Copilot and others. Naturally, this setup works on all platforms supported by Squish.
New to Squish? Squish is a professional GUI testing framework for test automation for apps on Android (including Android Automotive), macOS, iOS, Linux, and Windows. It also supports native and cross-platform toolkits for embedded targets. See our product page or product documentation for more information or visit this page for Qt developers.
The setup we are using for generating test scripts for Squish with AI assistants is the following:

The components in the image:
The above setup aims to give the model context to improve its accuracy and consistency to work around the probabilistic nature of models.
All files mentioned above are available in the accompanying repository.
In the following video we use the setup outlined to create a test script which opens the Addressbook application, deposit new contacts, delete some of them, and verify that the contacts were deleted. The application is included in the Squish for Windows package. As mentioned if you are using some other target platform this process and setup will work just as well.
The generated test script is available in the repository. Depending how you’d like to control the creation of the test scripts you could let the AI assistant to automatically run and verify the created scripts.
We have outlined our setup for generating Squish test scripts with the help of AI assistants and presented one possible approach for leveraging foundation models in test script generation. We believe that owning your test scripts and using a similar setup for authoring test scripts makes sense due to following:
In our setup we used Cursor, but as mentioned Claude Code and other AI assistants support similar workflows. Start here for Claude Code and learn how to author Squish test scripts with it.
We invite you to try out the setup described here for generating test scripts for your applications. We are committed to developing generative AI and AI enablers for all our testing tools and we look forward to working with our customers to improve their testing workflows.
Need more information?
Please contact the author Otso Virtanen at @qt.io - Otso is the product lead for the Generative AI/AI initiatives for Qt Group's Quality Assurance tools. For Squish, see our product page or product documentation for more information.
Acknowledgments: Marius Schmidt for the setup and test runs and Slobodan Vrkacevic for review comments.
Download the latest release here: www.qt.io/download
Qt 6.10 is now available, with new features and improvements for application developers and device creators.
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
To make it easier to access the latest AI capabilities, we have updated..
Read Article
The latest Qt AI Assistant release adds custom coding instructions to..
Read Article
Qt Group is pleased to announce the latest Long Term Supported release of..
Read Article