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.

Re-exports§

pub use browser::detect_chrome;
pub use browser::run_browser_smoke;
pub use browser::BrowserSmokeMode;
pub use browser::BrowserSmokeReport;
pub use browser::BrowserTestOptions;

Modules§

browser

Structs§

Bounds
A logical rectangle in test-space pixels.
LiveTestClient
An HTTP client that drives a running Fission application for automated UI testing.
SelectorCandidate
A candidate considered while resolving a selector.
SelectorFailure
Detailed selector failure response.
SelectorQuery
A selector query with optional scoping and duplicate disambiguation.
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§

Selector
A high-level selector for resolving semantic nodes without manual coordinates.
SelectorFailureKind
Machine-readable selector failure category.
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.
VisibilityState
How much of a semantic node is visible after viewport and clipping are applied.

Type Aliases§

TestResponseSender
Per-command response channel used by the shell event loop.