Want to include notes or comments in your script about what you're recording?
While recording, the Control Bar contains an Insert Script Comment button
- Click the Insert Script Comment button
- The Comment Window appears
- Enter a comment and click OK
Once you complete your recording, by clicking Stop, the comment appears within your script. The following example's comment is: # Adding a new entry
[code type="python"]
def main():
startApplication("AddressBookSwing.jar")
activateItem(waitForObjectItem(":Address Book_JMenuBar", "File"))
activateItem(waitForObjectItem(":File_JMenu", "New..."))
activateItem(waitForObjectItem(":Address Book - Unnamed_JMenuBar", "Edit"))
activateItem(waitForObjectItem(":Edit_JMenu", "Add..."))
# Adding a new entry
type(waitForObject(":Address Book - Add.Forename:_JTextField"), "sam")
type(waitForObject(":Address Book - Add.Forename:_JTextField"), "<Tab>")
type(waitForObject(":Address Book - Add.Surname:_JTextField"), "smith")
type(waitForObject(":Address Book - Add.Surname:_JTextField"), "<Tab>")
type(waitForObject(":Address Book - Add.Email:_JTextField"), "sam@smith.com")
type(waitForObject(":Address Book - Add.Email:_JTextField"), "<Tab>")
type(waitForObject(":Address Book - Add.Phone:_JTextField"), "123.123.1234")
clickButton(waitForObject(":Address Book - Add.OK_JButton"))
[/code]
Development Framework & Tools
Qt Framework
Cross-platform software libraries and APIs
Qt Development Tools
Qt Creator IDE and productivity tools
Qt Design Studio
UI Design tool for UI composition
Qt Quality Assurance
for Qt projects
Qt Digital Ads
Digital advertising for UI apps
Qt Insight
Usage intelligence for embedded devices
Quality Assurance Tools
Squish
GUI test automation
Coco
Code coverage analysis
Test Center
Test results management and analysis
Axivion Static Code Analysis
Software static code analysis
Axivion Architecture Verification
Software architecture verification
More
Qt 6
The latest version of Qt.
Licensing
Make the most of Qt tools, with options for commercial licensing, subscriptions, or open-source.
Qt Features
Explore Qt features, the Framework essentials, modules, tools & add-ons.
Qt for Python
The project offers PySide6 - the official Python bindings that enhance Python applications.
Industry & Platform Solutions
Qt empowers productivity across the entire product development lifecycle, from UI design and software development to quality assurance and deployment. Find the solution that best suits your needs.
Industry
Automotive
Aviation & Aerospace
Industrial Vehicles
Micro-Mobility Interfaces
Consumer Electronics
Industrial Automation
Medical Devices
Platform
Desktop, Mobile & Web
Embedded Devices
MCU (Microcontrollers)
Cloud Solutions
More
Next-Gen UX
Insight into the evolution and importance of user-centric trends and strategies.
Limitless Scalability
Learn how to shorten development times, improve user experience, and deploy anywhere.
Productivity
Tips on efficient development, software architecture, and boosting team happiness.
Our Ultimate Collection of Resources
Get the latest resources, check out upcoming events, and see who’s innovating with Qt.
Development Framework & Tools
Qt Resources
Qt Blog
Qt Success Stories
Qt Demos
Qt Documentation
Quality Assurance Tools
QA Resources
QA Blog
QA Success Stories
QA Documentation
More
Live Events & Webinars
Stay informed about our live events and webinars, whether they're online, in person, or face-to-face.
Forum
Engage with the community, share insights, and get answers to all your questions about Qt tools and development.
We're Here for You—Support and Services
Whether you're a beginner or a seasoned Qt pro, we have all the help and support you need to succeed.
Helpful Links
Contact Us
Qt Partners
Qt Support
Qt Customer Portal
Qt Customer Success
Qt Professional Services
Qt User Research
Amanda Burma • Published Apr 1, 2015 • Updated Feb 13, 2023
Squish tip of the week: Insert comments while recording
Want to include notes or comments in your script about what you're recording?
While recording, the Control Bar contains an Insert Script Comment button
Once you complete your recording, by clicking Stop, the comment appears within your script. The following example's comment is: # Adding a new entry
[code type="python"]
def main():
startApplication("AddressBookSwing.jar")
activateItem(waitForObjectItem(":Address Book_JMenuBar", "File"))
activateItem(waitForObjectItem(":File_JMenu", "New..."))
activateItem(waitForObjectItem(":Address Book - Unnamed_JMenuBar", "Edit"))
activateItem(waitForObjectItem(":Edit_JMenu", "Add..."))
# Adding a new entry
type(waitForObject(":Address Book - Add.Forename:_JTextField"), "sam")
type(waitForObject(":Address Book - Add.Forename:_JTextField"), "<Tab>")
type(waitForObject(":Address Book - Add.Surname:_JTextField"), "smith")
type(waitForObject(":Address Book - Add.Surname:_JTextField"), "<Tab>")
type(waitForObject(":Address Book - Add.Email:_JTextField"), "sam@smith.com")
type(waitForObject(":Address Book - Add.Email:_JTextField"), "<Tab>")
type(waitForObject(":Address Book - Add.Phone:_JTextField"), "123.123.1234")
clickButton(waitForObject(":Address Book - Add.OK_JButton"))
[/code]
Comments
The Qt Company acquired froglogic GmbH in order to bring the functionality of their market-leading automated testing suite of tools to our comprehensive quality assurance offering.
Related Articles
How to verify a custom table widget?
Squish GUI Tester operates the Application Under Test (AUT) to run through..
Read Article
Test Center 2.0 Released with Full Manual Testing Support
The Test Center team is happy to deliver a major release of Test Center,..
Read Article
Squish Days Online 2021
Join the global Squish community online, from anywhere Get up to speed on..
Read Article
Qt Group includes The Qt Company Oy and its global subsidiaries and affiliates.