LogoLogo
  • Overview
    • Quickstart
    • FAQ
    • Overview
    • Pricing
    • Comparison
    • Discord
  • Pro Setup
    • Book a Demo
    • 30x30 Promotion
  • Guides
    • Generate a Test Suite
    • Local Agent Setup
    • Prompting
    • Getting an API Key
    • GitHub Actions
      • GitHub Action Setup
      • Prerun Scripts
      • Environment Config
      • Parallel Testing
      • Storing Secrets
      • Optimizing Performance
      • Action Output
      • Examples
        • Test Generation
        • Parallel Testing
        • Importing Tests
        • Desktop Apps
        • Secure Log In
    • Debugging Test Runs
    • Monitoring Performance
  • Reference
    • Test Steps
      • assert
      • exec
      • focus-application
      • hover-image
      • match-image
      • hover-text
      • if
      • press-keys
      • remember
      • run
      • scroll
      • scroll-until-image
      • scroll-until-text
      • type
      • wait
      • wait-for-image
      • wait-for-text
    • Interactive Commands
      • /assert
      • /undo
      • /save
      • /run
      • /generate
    • CLI
      • testdriverai init
      • testdriverai [file]
      • testdriverai run [file]
  • Security & Privacy
    • Agent
    • Action
    • Dashboard
  • FAQ
    • Screen Recording Permissions (Mac Only)
    • Status Page
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Reference

Test Steps

All the valid commands and their properties.

TestDriver will worry about generating and maintaining tests for the most part. However, if you'd like to edit tests or gain a better understanding of what's going on you can find all of the commands in this secion.

As for YML format, here is an example of a valid yml file:

version: 4.0.0
steps:
  - prompt: enter fiber.google.com in url
    commands:
      - command: focus-application
        name: Google Chrome
      - command: hover-text
        text: Search Google or type a URL
        description: main google search
        action: click
      - command: type
        text: fiber.google.com
      - command: press-keys
        keys:
          - enter
  - prompt: enter a fake address and check availability
    commands:
      - command: focus-application
        name: Google Chrome
      - command: hover-text
        text: Enter your address
        description: address input field
        action: click
      - command: type
        text: 123 Fake Street
      - command: hover-text
        text: ZIP
        description: ZIP code input field
        action: click
      - command: type
        text: 12345
      - command: hover-text
        text: Check availability
        description: check availability button
        action: click
  - prompt: assert a familiy appears on screen
    commands:
      - command: focus-application
        name: Google Chrome
      - command: assert
        expect: a family appears on screen
PreviousMonitoring PerformanceNextassert

Last updated 4 months ago

Was this helpful?