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
  • Use Parallel Testing
  • Use ai matching method
  • Usse `async` Asserts

Was this helpful?

Export as PDF
  1. Guides
  2. GitHub Actions

Optimizing Performance

Optimize your tests to save serious time!

While TestDriver is incredibly smart, using AI matching methods all the time can be slow. Nobody wants to block developers from merging while waiting for tests to run!

Here are some tips for improving TestDriver performance.

Use Parallel Testing

Covered in the previous section, use runand Parallel Testing to split your actions into multiple files and run them.

Use ai matching method

The most common actions like hover-text, wait-for-text , and scroll-until-text use an optimized matching algorithm.

This algorithm uses text similarity to quickly compute the most similar text to what appears in your yml. This is about 40% faster than the ai method!

Usse `async` Asserts

The assert method has property async: true which allows you to create non blocking test assertions costing you almost no time!

PreviousStoring SecretsNextAction Output

Last updated 3 months ago

Was this helpful?