Environment Variables¶
Environment variable values can be accessed through the environment variables object and can be referenced actions, assertions and data providers.
A default can be provided if the environment variable does not exist: $env.APP_SECRET|"secret"
.
Examples¶
env.APP_SECRET |
Use the APP_SECRET environment variable value. |
---|---|
env.APP_SECRET|"secret" |
Use the APP_SECRET environment variable value with a default of “secret!” if not set. |