Skip to main content

Crate fission_test_driver

Crate fission_test_driver 

Source
Expand description

Automated UI testing client and protocol for Fission applications.

This crate provides the JSON protocol types (shared between the test client and the desktop shell server) and a LiveTestClient that drives a running Fission application over HTTP.

§Architecture

The application must be launched with FISSION_TEST_CONTROL_PORT=<port>. The LiveTestClient connects to http://127.0.0.1:<port> and sends TestCommand JSON payloads to /cmd, receiving TestResponse replies.

Structs§

LiveTestClient
An HTTP client that drives a running Fission application for automated UI testing.
SemanticNode
A node in the semantic accessibility tree, returned by TestCommand::GetTree. Bounding rectangles are expressed in logical test-space pixels.
TextItem
A visible text element with its bounding rectangle, in logical test-space pixels, returned by TestCommand::GetText.

Enums§

TestCommand
A command sent from the test client to the running application.
TestEvent
Events injected into the winit event loop via EventLoopProxy.
TestResponse
The response from the application to a TestCommand.