Test scripts are written in YAML format, making them easy to read and modify manually if you need to.Documentation Index
Fetch the complete documentation index at: https://docs.testdriver.ai/llms.txt
Use this file to discover all available pages before exploring further.
Commands Reference
Explore the available commands and their parameters.
Locate the Test File
TestDriver test files are typically stored in thetestdriver/ directory of your project. The default file is testdriver/testdriver.yaml.
Open the Test File
Use your preferred text editor or IDE (for example, Visual Studio Code) to open the YAML file.YAML Structure
Each test file consists of:- Version: Specifies the TestDriver version that was used to generate the test file. This is used to lock the version of TestDriver that is used to run the test.
- Session: A unique identifier for the test session.
- Steps: A list of prompts and commands to execute.
test-file.yaml
Modify the test steps
You can add, edit, or remove steps as needed. Each step contains:- Prompt: A description of the action.
- Commands: The specific actions to perform. It is an optional field, meaning, if there are no
commandsthe AI considers thepromptand generates and executes the yaml on-the-go using the exploratory mode
Example edits:
-
Add a Wait Command:
-
Change the URL:
Update the
textfield in thetypecommand:
Validate the YAML syntax
Ensure the YAML file is properly formatted:- Use consistent indentation (2 spaces recommended).
- Avoid trailing spaces or tabs.
- TestDriver will validate the yaml syntax and provide suggestions to fix any errors when you run the test.

