Set environment variables
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
setVariablesreference.
Example
{ "tests": [ { "steps": [ { "description": "Set environment variables from a .env file.", "action": "setVariables", "path": "./secrets.env" } ] } ]}