Skip to main content

setVariables

The setVariables action sets environment variables from a .env file. This action is useful for accessing sensitive information, such as API keys or other credentials, without hardcoding them into your tests.

For comprehensive options, see the setVariables reference.

Example

{
"tests": [
{
"steps": [
{
"description": "Set environment variables from a .env file.",
"action": "setVariables",
"path": "./secrets.env"
}
]
}
]
}