TestScript Class
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.
A mock Test Script that can be used for unit testing of bot logic.
public class TestScript
type TestScript = class
Public Class TestScript
- Inheritance
-
TestScript
Remarks
You can use this class to mimic input from a a user or a channel to validate that the bot or adapter responds as expected.
Constructors
TestScript() |
Initializes a new instance of the TestScript class. |
Fields
Kind |
Sets the Kind for this class. |
TestScriptEnded |
Test script ended event. |
Properties
Configuration |
Gets or sets configuration to use for the test. |
Description |
Gets or sets the description property. |
Dialog |
Gets or sets the RootDialog. |
EnableTrace |
Gets or sets a value indicating whether trace activities should be passed to the test script. |
HttpRequestMocks |
Gets the mock data for Microsoft.HttpRequest. |
LanguagePolicy |
Gets or sets the language policy. |
Locale |
Gets or sets the locale. |
Script |
Gets the test script actions. |
SettingMocks |
Gets the mock data for setting. |
UserTokenMocks |
Gets the mock data for Microsoft.OAuthInput. |