Options, setting up a test.

interface ITestSettings {
    after?: Nilable<AfterEachTestFunc>;
    before?: Nilable<BeforeEachTestFunc>;
    body?: any;
    expectations?: Nilable<ITestSettingExpectations>;
    headers?: Nilable<TestSettingValueOrGetter<Record<string, any>>>;
    parameters?: Nilable<TestSettingValueOrGetter<Record<string, string>>>;
    query?: Nilable<TestSettingValueOrGetter<Record<string, string>>>;
    ref?: any;
    sortOrder?: any;
    tag?: any;
    timeout?: Nilable<TestSettingValueOrGetter<number>>;
    validator?: Nilable<TestResponseValidator>;
}

Properties

after?: Nilable<AfterEachTestFunc>

An additional function, which is executed AFTER the underlying test.

before?: Nilable<BeforeEachTestFunc>

An additional function, which is executed before the underlying test.

body?: any

Request body.

expectations?: Nilable<ITestSettingExpectations>

Sets up the expectations.

headers?: Nilable<TestSettingValueOrGetter<Record<string, any>>>

Request headers.

parameters?: Nilable<TestSettingValueOrGetter<Record<string, string>>>

URL parameters.

query?: Nilable<TestSettingValueOrGetter<Record<string, string>>>

Query parameters.

ref?: any

This is an explicit reference to the underlying test, declared by things like @It() decorator.

sortOrder?: any

A custom sort order, inside the group.

tag?: any

Something optional, that should submitted to a test event / operation.

timeout?: Nilable<TestSettingValueOrGetter<number>>

Custom timeout value in ms.

validator?: Nilable<TestResponseValidator>

A custom validator function.

Generated using TypeDoc