Edit

Share via


UserSays class

Action to script sending text to the bot.

Extends

Properties

$kind
locale

The locale of user.

text

The text to send to the bot.

user

If user is set then the channalAccount.id and channelAccount.name will be from user.

Methods

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

Execute the test.

Inherited Methods

configure(Record<string, unknown>)

Fluent method for configuring the object.

getConverter(string)

Property Details

$kind

static $kind: string

Property Value

string

locale

The locale of user.

locale: string

Property Value

string

text

The text to send to the bot.

text: string

Property Value

string

user

If user is set then the channalAccount.id and channelAccount.name will be from user.

user: string

Property Value

string

Method Details

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

Execute the test.

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

Parameters

testAdapter

TestAdapter

Adapter to execute against.

callback

(context: TurnContext) => Promise<void>

Logic for the bot to use.

_inspector
Inspector

Inspector for dialog context.

Returns

Promise<void>

A Promise that represents the work queued to execute.

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