qa

command
v0.13.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: EPL-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

QA driver example

A greeter and a test that drives it like a user.

  • main.go: widgets named with gowt.ID, a qa.Handle("reset", ...) handler that returns the app to its start state, and a qa.HandleValue that reads the model.
  • qa_test.go: qatest.Main starts the app built with -tags gowtqa; qatest.App(t) resets it; Find(qa.ID(...)) with Type, Click, Node; Settle; Shot.
  • The Load button starts an app.Job; TestLoad clicks it and reads the result at once, because actions settle and settle waits for jobs (see events.md, "Background work").

Run (opens a window):

GOWT_GUI_TEST=1 go test ./examples/qa

Without -tags gowtqa the app has no server and qa.Handle does nothing. A failed test leaves a screenshot, the dump and the command log in $GOWT_QA_ARTIFACTS/<test> (a temp directory when unset).

Documentation

Overview

Command qa is a greeter written to be tested through the QA driver: see qa_test.go and README.md.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL