Skip to main content

Base Class for interacting with a GUI based in tkinter

Project description

website: https://arrizza.com/python-gui-api-tkinter

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

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gui_api_tkinter-0.0.24.tar.gz (53.8 kB view details)

Uploaded Source

File details

Details for the file gui_api_tkinter-0.0.24.tar.gz.

File metadata

  • Download URL: gui_api_tkinter-0.0.24.tar.gz
  • Upload date:
  • Size: 53.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for gui_api_tkinter-0.0.24.tar.gz
Algorithm Hash digest
SHA256 20eab4443386350c230f73f0a693a47837ef6e879453fa33d240a46fd314326a
MD5 9e8fec13386e66a4016988fd5224980b
BLAKE2b-256 b9966c4f9a610ada959c3d0bf3ca1580924a988f9e028ad59f3539dde1bd0754

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page