Skip to main content

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>
PropertyDescriptionTypeRequired
<before-all-id>Identifier for the beforeAll phasestringtrue
tasksList of tasks to run in the beforeAll phase. Refer to value section.objecttrue

Example

beforeAll.yml
beforeAll:
createUser:
tasks:
- action: actions.createUserHttpRequest
validate: scripts.validateResponse