Introduction to Automated Testing for Qt Applications
summary
Converts a KeePassX-style Qt app into a static library plus a thin launcher so tests can link into app code, adds a QTestLib-based test program that exercises the autotype test end-to-end against a small username/password dialog, uses QVERIFY/QCOMPARE and data-driven rows (four example rows) and init/cleanup hooks, wires tests into the build with make check, and runs through Valgrind/strace producing JUnit-compatible XML; test suite catches a QByteArray-fromRawData memory corruption bug and the fixed build passes.
AI-written summary · about
chapters (11)
- 0:00Introduction to QT testing
- 1:38Application demonstration
- 4:53Refactoring for testability
- 8:09Analyzing source structure
- 10:56Build system modifications
- 13:52Using QTestLib
- 20:00Implementing a basic test
- 26:48Using test data sets
- 33:47Build system integration
- 37:23Advanced testing tools
- 41:02Conclusions and Q&A
related talks
49mQuickly and Effectively Testing Qt Desktop Applications
57mQuickly Testing Qt Desktop Applications with Approval Tests
27mTesting Your Patience With Qt
25mTest It!
29mAre you testing enough - Qt application Quality Assurance
25mHow to automate Qt GUI Tests
46mBehavior Driven GUI Testing of Embedded, Mobile and Desktop Qt HMIs
27mTest and profile Android applications with Qt
