All Projects → faaxm → Spix

faaxm / Spix

Licence: mit
UI test automation library for QtQuick/QML Apps

Projects that are alternatives of or similar to Spix

Scihubeva
A Cross Platform Sci-Hub GUI Application
Stars: ✭ 683 (+1322.92%)
Mutual labels:  qtquick, qt, qt5, qml
Qml Box2d
Box2D QML plugin
Stars: ✭ 223 (+364.58%)
Mutual labels:  qtquick, qt, qt5, qml
QDashBoard
Sample dashboard developed with QML. Login, plots and several screens.
Stars: ✭ 34 (-29.17%)
Mutual labels:  qt, qml, qt5, qtquick
Autoannotationtool
A label tool aim to reduce semantic segmentation label time, rectangle and polygon annotation is supported
Stars: ✭ 113 (+135.42%)
Mutual labels:  qtquick, qt, qt5, qml
Osgqtquick
Intergation OpenSceneGraph to Qt Quick
Stars: ✭ 53 (+10.42%)
Mutual labels:  qtquick, qt, qt5, qml
Awesome Qt Qml
A curated list of awesome Qt and QML libraries, resources, projects, and shiny things.
Stars: ✭ 1,118 (+2229.17%)
Mutual labels:  qtquick, qt, qt5, qml
Taoquick
a cool QtQuick/qml component library and demo(一套酷炫的QtQuick/Qml基础库和示例)
Stars: ✭ 481 (+902.08%)
Mutual labels:  qtquick, qt, qt5, qml
QtMobileApp
This repository contains basic template for Qt for mobile app development using QML and C++ as backend to access RESTful API's
Stars: ✭ 16 (-66.67%)
Mutual labels:  qml, qt5, qtquick
vatsinator-legacy
An open-source Vatsim monitor
Stars: ✭ 12 (-75%)
Mutual labels:  qml, qt5, qtquick
CatLearnQt
CatLearnQt,提供QWidget,Quick,网络,串口,基础库和示例。案例软件支持样式切换,与国际化。
Stars: ✭ 63 (+31.25%)
Mutual labels:  qml, qt5, qtquick
QtIosCMake
📱 Deploy Qt Application for iOS with a single macro when using CMake.
Stars: ✭ 35 (-27.08%)
Mutual labels:  qml, qt5, qtquick
qml-ar
Seamless Augmented Reality module for QML using UchiyaMarkers
Stars: ✭ 32 (-33.33%)
Mutual labels:  qml, qt5, qtquick
Qaterial
🧩 Collection of Material Components based on QtQuickControls2.
Stars: ✭ 110 (+129.17%)
Mutual labels:  qtquick, qt, qml
QtDemos
This is a demo about Qt5, including Qt Custom Widget, Qt Multithreaded Downloader, QML Video Player(using OpenGL, FFmpeg and SDL2)
Stars: ✭ 18 (-62.5%)
Mutual labels:  qml, qt5, qtquick
Slate
Pixel Art Editor
Stars: ✭ 723 (+1406.25%)
Mutual labels:  qtquick, qt, qt5
pardus-store
Pardus Application Store
Stars: ✭ 32 (-33.33%)
Mutual labels:  qml, qt5, qtquick
Workspace
🚀 Base applications and settings for Liri OS
Stars: ✭ 9 (-81.25%)
Mutual labels:  qt, qt5, qml
QuickStreams
An asynchronous programming library for the QML programming language (Proof of Concept)
Stars: ✭ 42 (-12.5%)
Mutual labels:  qml, qt5, qtquick
yacalendar
Yet another calendar component for Qt Quick Controls 2
Stars: ✭ 23 (-52.08%)
Mutual labels:  qt, qml, qtquick
Kaidan
[Replaced by https://invent.kde.org/network/kaidan] Kaidan, a simple and user-friendly Jabber/XMPP client for every device and platform.
Stars: ✭ 67 (+39.58%)
Mutual labels:  qtquick, qt5, qml

Build Status Build status Donate

Spix

Spix is a minimally invasive UI testing library that enables your Qt/QML app's UI to be controlled either via c++ code, or through an http RPC interface.

UI elements are referenced through names and paths which are robust against design changes. To click on a button you write

mouseClick("mainWindow/ok_button");

To provide an RPC test interface to your app, only add these three lines to your main(...) function:

spix::AnyRpcServer server;
auto bot = new spix::QtQmlBot();
bot->runTestServer(server);

And a test script in python could look like this:

import xmlrpc.client

s = xmlrpc.client.ServerProxy('http://localhost:9000')
s.mouseClick("mainWindow/Button_1")
s.wait(200)
s.mouseClick("mainWindow/Button_2")
resultText = s.getStringProperty("mainWindow/results", "text")
s.quit()

What are the applications of Spix?

The obvious use for Spix is to automatically test the GUI of your Qt/QML application and make sure that it behaves as you expect. However, you can also use Spix as an easy way to remote control existing Qt/QML applications or to automatically generate and update screenshots for your documentation.

Requirements

  • Qt
  • AnyRPC

Current Features

  • Send mouse events (click, move, drag/drop)
  • Drop mime data from external apps
  • Enter text
  • Check existence and visibility of items
  • Get property values of items (text, position, color, ...)
  • Take and save a screenshot
  • Quit the app
  • Remote control, also of embedded devices / iOS

Building Spix

Spix uses cmake and can be build with the standard cmake commands once cloned:

git clone https://github.com/faaxm/spix
cd spix
mkdir build && cd build
cmake ..
cmake --build .

You can also have a look at the build scripts in ci/, which are run on the build server to build and test Spix.

If you installed the dependencies (like AnyRPC) in a non-standard directory you can point cmake to it by setting CMAKE_PREFIX_PATH, so instead of cmake .. you run:

cmake -DCMAKE_PREFIX_PATH=/path/to/libs ..
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].