TestScript.ExecuteAsync 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.
Starts the execution of the test sequence.
public System.Threading.Tasks.Task ExecuteAsync (Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer resourceExplorer, string testName = default, Microsoft.Bot.Builder.BotCallbackHandler callback = default, Microsoft.Bot.Builder.Adapters.TestAdapter adapter = default, System.Collections.Generic.IEnumerable<Microsoft.Bot.Builder.IMiddleware> middlweare = default);
member this.ExecuteAsync : Microsoft.Bot.Builder.Dialogs.Declarative.Resources.ResourceExplorer * string * Microsoft.Bot.Builder.BotCallbackHandler * Microsoft.Bot.Builder.Adapters.TestAdapter * seq<Microsoft.Bot.Builder.IMiddleware> -> System.Threading.Tasks.Task
Public Function ExecuteAsync (resourceExplorer As ResourceExplorer, Optional testName As String = Nothing, Optional callback As BotCallbackHandler = Nothing, Optional adapter As TestAdapter = Nothing, Optional middlweare As IEnumerable(Of IMiddleware) = Nothing) As Task
Parameters
- resourceExplorer
- ResourceExplorer
The resource explorer to use.
- testName
- String
Name of the test.
- callback
- BotCallbackHandler
The bot logic.
- adapter
- TestAdapter
optional test adapter.
- middlweare
- IEnumerable<IMiddleware>
Middleware to add to the adapter.
Returns
Runs the exchange between the user and the bot.
Remarks
This methods sends the activities from the user to the bot and checks the responses from the bot based on the TestActions.