TestScript.AssertReply Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an assertion that the turn processing logic responds as expected.
public Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript AssertReply (string expected, string description = default, uint timeout = 3000, string[] assertions = default, string path = "", int line = 0);
member this.AssertReply : string * string * uint32 * string[] * string * int -> Microsoft.Bot.Builder.Dialogs.Adaptive.Testing.TestScript
Public Function AssertReply (expected As String, Optional description As String = Nothing, Optional timeout As UInteger = 3000, Optional assertions As String() = Nothing, Optional path As String = "", Optional line As Integer = 0) As TestScript
Parameters
- expected
- String
The expected text of a message from the bot.
- description
- String
A message to send if the actual response is not as expected.
- timeout
- UInt32
The amount of time in milliseconds within which a response is expected.
- assertions
- String[]
assertions.
- path
- String
path.
- line
- Int32
line number.
Returns
A new TestScript object that appends this assertion to the modeled exchange.
Exceptions
The bot did not respond as expected.
Remarks
This method does not modify the original TestScript object.