共用方式為


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

來自 Bot 之訊息的預期文字。

description
String

如果實際回應未如預期般傳送的訊息。

timeout
UInt32

回應預期在毫秒內的時間量。

path
String

路徑。

line
Int32

行號。

傳回

將這個交換附加至模型化交換的新 TestScript 物件。

例外狀況

Bot 未如預期般回應。

備註

這個方法不會修改原始 TestScript 物件。

適用於