TestScript.Test(String, String, String, UInt32, String, Int32) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Raccourci pour appeler Send(String, String, Int32) suivi de AssertReply(String, String, UInt32, String[], 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
Paramètres
- userSays
- String
Texte du message à envoyer.
- expected
- String
Le texte attendu d’un message du bot.
- description
- String
Un message à envoyer si la réponse réelle n’est pas comme prévu.
- timeout
- UInt32
Le temps en millisecondes dans lequel une réponse est attendue.
- path
- String
Path.
- line
- Int32
numéro de ligne.
Retours
Un nouvel TestScript objet qui ajoute cet échange à l’échange modélisé.
Exceptions
Le bot ne répondit pas comme prévu.
Remarques
Cette méthode ne modifie pas l’objet original TestScript .