QML Testing Overview

QML Testcase is a helpful module in QT that allows for developers to create Automated UI tests for QT Applications. Sadly the official QT documentation, and the internet as a whole are a bit lacking in concrete examples of the usage of some of the helpful features of QML Testcase through some simple and small examples. These are a work in progress and will likely see more articles added, and more refinement over time.


Setting Up QMLTestcase Project

Creating a Simple Test

Accessing Child Components

Simulating Mouse and Touch Events (and SignalSpy)

Upcoming Resources:

Capturing Visual Test State

Simulating Keyboard Input