Skip to main content
Resolves to { request, response } once a request matching the listener completes. Pair with saveAs to read the captured payload from env.

Parameters

ParameterTypeRequiredDescription
keystringYesListener key set on registerRequestListener.
timeoutnumberNoMaximum time in milliseconds to wait.
saveAsstringNoName of the variable to write this step’s return value to.
retriesnumberNoNumber of times to retry the step on failure before failing the test.
skippedbooleanNoSkip this step at execution time.

Shorthand

Listener key as a single string.
- awaitListener: response

Examples

- awaitListener:
    key: response
    saveAs: RESPONSE