Discover how to modularize your test workflows using reusable YAML snippets in TestDriver for improved maintainability and scalability.
run
command, enabling you to reuse common actions across multiple tests.
Create a Snippet
snippets/login.yaml
file for logging into an application:Reference the Snippet in a Test
run
command to include the snippet in your main test file. For example:Parameterize Inputs
.env
file or CI/CD pipeline:.gitignore
file to your repository including a .env
line so you never accidentally commit you TestDriver API key.
This is important for security and to prevent exposing sensitive information. For more info see GitHub Docs.snippets/
directory for better organization.login.yaml
, setup.yaml
) to indicate their purpose.