botbuilder-dialogs-adaptive-testing package
Classes
| AssertCondition |
Dialog action which allows you to add assertions into your dialog flow. |
| AdaptiveTestBotComponent |
Adaptive Testing of BotComponent. |
| DialogInspector |
Class for inspecting current dialog context. |
| HttpRequestMock |
Base class for all http request mocks. |
| HttpRequestMocksConverter |
The type converters for UserTokenMock. |
| HttpRequestSequenceMock |
Mock http request in sequence order. The last response will be repeated. |
| HttpResponseMockContent |
Convert and store the actual content of HttpResponseMock. |
| HttpResponseMockMessage |
Convert and store the actual data of HttpResponseMock. |
| SequenceResponseManager |
Manage sequence response for HttpRequestSequenceMock. |
| MockHttpRequestMiddleware |
Middleware to mock http requests with an adapter. |
| MockLuisLoader |
Custom json deserializer for mocking luis. |
| MockLuisRecognizer |
Test class for creating cached LUIS responses for testing. |
| MockSettingsMiddleware |
Middleware which mocks settings properties. |
| SetTestOptionsMiddleware |
Middleware that catch "SetTestOptions" event and save into "Conversation.TestOptions". |
| SettingMock |
Abstract class for mocking settings. |
| SettingMocksConverter |
The type converters for SettingMock. |
| SettingStringMock |
Mock one or more settings with string value. |
| TestAction |
Abstract base class for scripted actions. |
| AssertNoActivity |
Basic assertion TestAction, which validates assertions against a reply activity. |
| AssertReply |
Test Script action to assert that the bots' reply matches expectations. |
| AssertReplyActivity |
Basic assertion TestAction, which validates assertions against a reply activity. |
| AssertReplyOneOf |
Assertion that reply from the bot matches one of options. |
| AssertTelemetryContains |
Run assertions against telemetry events. |
| CustomEvent |
Action to script sending custom event to the bot. |
| MemoryAssertions |
Run assertions against memory. |
| SetProperties |
Mock one or more property values. |
| UserActivity |
Send an activity to the bot. |
| UserConversationUpdate |
Action to script sending a conversationUpdate activity to the bot. |
| UserDelay |
Script action to delay test script for specified timespan. |
| UserSays |
Action to script sending text to the bot. |
| UserTyping |
Action to script sending typing activity to the bot. |
| TestScript |
A mock Test Script that can be used for unit testing bot's logic. |
| TestTelemetryClient |
A test bot telemetry client that implements BotTelemetryClient. |
| TestUtils |
In charge of running Dialog Adaptive tests. |
| UserTokenBasicMock |
Mock UserToken with user id and token. |
| UserTokenMock |
Interface for mocking user token flows. |
| UserTokenMocksConverter |
The type converters for UserTokenMock. |
Interfaces
| AssertConditionConfiguration | |
| HttpRequestSequenceMockConfiguration |
Configuration for a HttpRequestSequenceMock. |
| HttpResponseMessage |
Http response message. |
| HttpResponseMock |
Http response mock used in HttpRequestSequenceMock. |
| SettingStringAssignment |
Setting string assignment. |
| SettingStringMockConfiguration | |
| AssertNoActivityConfiguration | |
| AssertReplyConfiguration | |
| AssertReplyActivityConfiguration | |
| AssertReplyOneOfConfiguration | |
| AssertTelemetryContainsConfiguration | |
| CustomEventConfiguration | |
| MemoryAssertionsConfiguration | |
| SetPropertiesConfiguration | |
| UserActivityConfiguration | |
| UserConversationUpdateConfiguration | |
| UserDelayConfiguration | |
| UserSaysConfiguration | |
| UserTypingConfiguration | |
| TestScriptConfiguration | |
| UserTokenBasicMockConfiguration | |
Type Aliases
| DialogContextInspector | |
| ResponseContent |
Http response content. |
| FallbackFunc |
Fallback function. |
| HttpRequestMessage |
Http request message. |
| Inspector |
Allow inspecting/modifying the current dialog context. |
| AssignmentInput | |
Enums
| BodyMatchType |
Type for how body matches against request's body. |
| ResponseContentType |
Types of response content. |
| ResponseStatusCode |
Response status codes. |
Functions
| use |
Setup configuration to utilize the settings file generated by lubuild. |
Function Details
useMockLuisSettings(string, string)
Setup configuration to utilize the settings file generated by lubuild.
function useMockLuisSettings(directory: string, endpoint?: string): Record<string, string>
Parameters
- directory
-
string
Directory with settings file in it.
- endpoint
-
string
Endpoint to use with a default of westus.
Returns
Record<string, string>
Modified configuration.