Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 549 Bytes

environment-file.md

File metadata and controls

18 lines (12 loc) · 549 Bytes

Environment file

The environment file allows you to define variables that can be used anywhere in the test files using the Moustache-like syntax {{variable name}}.

It's a YAML file that defines a map of key-value pairs. Values must be strings.

The environment file is specified with the env property in the configuration file. It is optional.

Example

Here is an example of an environment file:

baseUrl: http://localhost:3000
apiUrl: http://localhost:3001/api
defaultUser: John.Doe
defaultPassword: secret