beforeAll
The beforeAll
phase is executed before any tests are run in a test run. It can be used to set up the state of the application and ensure that the tests are repeatable and reliable by starting with a known state.
Syntax
beforeAll:
<before-all-id>:
tasks:
- id: <taskId>
action: <actionReference>
validate: <validationScriptReference>
Property | Description | Type | Required |
---|---|---|---|
<before-all-id> | Identifier for the beforeAll phase | string | true |
tasks | List of tasks to run in the beforeAll phase. Refer to value section. | object | true |
Example
beforeAll.yml
beforeAll:
createUser:
tasks:
- action: actions.createUserHttpRequest
validate: scripts.validateResponse