Edytuj

Udostępnij za pośrednictwem


AssertReplyActivity class

Basic assertion TestAction, which validates assertions against a reply activity.

Extends

Properties

$kind
assertions

The expressions for assertions.

description

Description of what this assertion is.

timeout

The milliseconds to wait for a reply.

Methods

execute(TestAdapter, (context: TurnContext) => Promise<any>, Inspector)

Execute the test.

getConditionDescription()

Gets the text to assert for an activity.

validateReply(Activity)

Validates the reply of an activity.

Inherited Methods

configure(Record<string, unknown>)

Fluent method for configuring the object.

getConverter(string)

Property Details

$kind

static $kind: string

Property Value

string

assertions

The expressions for assertions.

assertions: string[]

Property Value

string[]

description

Description of what this assertion is.

description: string

Property Value

string

timeout

The milliseconds to wait for a reply.

timeout: number

Property Value

number

Method Details

execute(TestAdapter, (context: TurnContext) => Promise<any>, Inspector)

Execute the test.

function execute(testAdapter: TestAdapter, _callback: (context: TurnContext) => Promise<any>, _inspector?: Inspector): Promise<any>

Parameters

testAdapter

TestAdapter

Adapter to execute against.

_callback

(context: TurnContext) => Promise<any>

Logic for the bot to use.

_inspector
Inspector

Inspector for dialog context.

Returns

Promise<any>

A Promise that represents the work queued to execute.

getConditionDescription()

Gets the text to assert for an activity.

function getConditionDescription(): string

Returns

string

String.

validateReply(Activity)

Validates the reply of an activity.

function validateReply(activity: Activity)

Parameters

activity

Activity

The activity to verify.

Inherited Method Details

configure(Record<string, unknown>)

Fluent method for configuring the object.

function configure(config: Record<string, unknown>): this

Parameters

config

Record<string, unknown>

Configuration settings to apply.

Returns

this

The Configurable after the operation is complete.

Inherited From Configurable.configure

getConverter(string)

function getConverter(_property: string): Converter | ConverterFactory

Parameters

_property

string

The key of the conditional selector configuration.

Returns

Converter | ConverterFactory

The converter for the selector configuration.

Inherited From Configurable.getConverter