- website: Website
- installation: Common Setup
Summary
This module contains a set of simple base classes that can be used for test or verification purposes on GUIs based on Tkinter.
A test harness can connect to this class using a TCPIP socket and get the current screen content, press an x,y coordinate, and invoke a menu item.
The typical scenario is to create a Tkinter GUI app and add the gui-api-tkinter server into it. Then a test harness is built using gui_api_harness and that is used by pytest (or whatever other test driver you wish) to run tests against the GUI.
For a more detailed description of the available commands and responses see gui_api.md
Scripts
- See Quick Start for information on using scripts.
- See xplat-utils submodule for information on the submodule.
Sample code
See the sample directory for a sample client and server. Use doit script to run the sample server.
./doit
This runs the code in the sample directory. The gui subdirectory contains a sample Tkinter GUI app which has some buttons and labels on it. The test harness is then used to press buttons on the GUI and check that the GUI perform s the expected behavior. The file sample/test_gui.py runs those tests.
The pom/ subdirectory holds Page Object Model classes to simplify the interactions between the test_gui code and the GUI app.
For a more complex example, see ./ver directory. Invoke those tests using:
./do_ver
./do_ver -k tp001 # for the first test protocol
# etc.
Other scripts and files
- do_doc: generates doxygen
- do_install: installs python environment
- do_lint: runs static analysis tools
- do_publish: publish the python module
- do_ver: runs verification scripts
- doit: runs a sample GUI client and a sample test harness
- srs.json: holds a list of requirements for the gui api and the test harness must adhere to
- todo.md known issues to fix/address
Metadata
Release files for gui-api-tkinter 1.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gui_api_tkinter-1.3.1.tar.gz | 15.6 kB | Without provenance | Details for gui_api_tkinter-1.3.1.tar.gz |
Release files / gui_api_tkinter-1.3.1.tar.gz
| Download URL | gui_api_tkinter-1.3.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
202a230db353796662c28a92524e8a2caf9cce37f17a5f94e3f93343c57aa0e5
|
|
BLAKE2b-256 checksum How to use checksums |
d5cb3adff05ce3232b5546014a9d2c007a599355f8bd29f3a859ac2efba7c9a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for gui-api-tkinter 1.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.