Cross-platform tool for functional GUI testing of Qt applications based on Canonical Autopilot project.
sudo apt-get install python3 python3-pyqt5 -y
sudo apt-get install libxpathselect-dev -y
sudo apt-get install libdbus-1-dev libdbus-glib-1-dev -y
virtualenv --system-site-packages -p python3 .venv
source .venv/bin/activate
pip install -e .
WARNING: Do NOT install Qt from brew, use the official Qt version instead (https://www.qt.io/download-open-source).
brew install python3 pkgconfig dbus dbus-glib
brew services start dbus
python3 -m venv --system-site-packages ~/.venv
source ~/.venv/bin/activate
pip install -e .
Helpful link about dbus installation and troubleshooting on macOS https://github.com/zbentley/dbus-osx-examples/blob/master/installation/README.md
Ensure that LD_LIBRARY_PATH
contains path to libdbus, for example /opt/homebrew/Cellar/dbus/1.12.20/lib
- Install Python 3.9 amd64, Qt5 (https://www.qt.io/download-open-source)
- Install Msys2 to C:\msys64 & update core packages
- Install dbus:
pacman -S mingw64/mingw-w64-x86_64-dbus
- Update C:\msys64\mingw64\share\dbus-1\session.conf :
<listen>tcp:host=localhost,port=54321,family=ipv4</listen>
- Add
C:\msys64\mingw64\bin
to PATH - Add
DBUS_SESSION_BUS_ADDRESS
env variable with valuetcp:host=localhost,port=54321,family=ipv4
- Run
dbus-daemon.exe --session
- Download & unpack pre-compiled dbus-python package to Python 3.9 amd64 installation directory
- Verify that
dbus-python
package is installed correctly:
C:\Python39-x64>python
>>> import os
>>> os.add_dll_directory("C:/msys64/mingw64/bin")
>>> import dbus.mainloop.glib
>>> # No errors should appear here
- Build rocketpilot-driver https://github.com/uglide/rocketpilot-driver/blob/master/README.md
- Install PyQt5
- Run vis tool
rocketpilot-vis APPNAME