Embed and execute another file within the current script.
run
command is used to embed and execute another file within the current script. This is useful for reusing common sequences of commands or modularizing your scripts for better organization and maintainability.
Argument | Type | Description |
---|---|---|
file | string | The path to the file to embed and run. Should be relative to the root of your git repository. |
run
command to centralize reusable logic, such as login flows or setup steps, into separate files.testdriver/homepage/chat-functionalities.yaml
and say the login snippet is present at the conventional testdriver/snippets/login.yaml
it should be referrenced as :run
command is ideal for creating modular and maintainable test scripts by reusing common workflows.run
command.