Skip to main content

Module robot

Module robot 

Source
Expand description

Robot testing framework for end-to-end app testing

This module provides a robot-style testing API that allows developers to:

  • Launch real apps in a testing environment
  • Perform interactions (clicks, moves, drags)
  • Find and validate UI elements
  • Test the full app lifecycle

§Example

use cranpose_testing::robot::create_headless_robot_test;

let mut robot = create_headless_robot_test(800, 600, || {
    // Your composable app here
});

// Find and click a button
robot.click_at(100.0, 100.0);

// Wait for updates
robot.wait_for_idle();

Structs§

ElementFinder
A finder for locating and interacting with UI elements.
RobotTestRule
Main robot testing rule that provides programmatic control over a real app.
TestHitTarget
A hit target used by TestScene.
TestRenderer
A simple test renderer for robot tests.
TestScene
The scene used by TestRenderer.

Functions§

create_headless_robot_test
Create a headless robot test rule for testing without a real renderer.