TestScript.Test(String, String, String, UInt32, String, Int32) 方法

定义

public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript Test(string userSays, string expected, string description = default, uint timeout = 3000, string path = "", int line = 0);
member this.Test : string * string * string * uint32 * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function Test (userSays As String, expected As String, Optional description As String = Nothing, Optional timeout As UInteger = 3000, Optional path As String = "", Optional line As Integer = 0) As TestScript

参数

userSays
String

要发送的消息的文本。

expected
String

机器人发来的预期短信。

description
String

如果实际回复不如预期,需要发送一条消息。

timeout
UInt32

即期望响应的时间(毫秒)。

path
String

路径。

line
Int32

行号。

返回

一个新 TestScript 对象,将该交换附加到建模交换中。

例外

机器人没有如预期回应。

注解

该方法不修改原始 TestScript 对象。

适用于