GETTING STARTED
Kore.ai XO Platform
Virtual Assistants Overview
Natural Language Processing (NLP)
Concepts and Terminology
Help & Learning Resources
Quick Start Guide
Accessing the Platform
Navigating the Kore.ai XO Platform
Building a Virtual Assistant
Using Workspaces
Release Notes
Current Version
Previous Versions
Deprecations
Request a Feature
CONCEPTS
Design
Storyboard
Overview
FAQs
Conversation Designer
Overview
Dialog Tasks
Mock Scenes
Dialog Tasks
Overview
Navigate Dialog Tasks
Build Dialog Tasks
Nodes & Connections
Overview
Node Types
Intent Node
Dialog Node
Entity Node
Entity Rules
Form Node
Confirmation Node
Message Nodes
Logic Node
Bot Action Node
Service Node
Webhook Node
Script Node
Process Node
Agent Transfer
Node Connections Setup
Sub-Intent Scoping
User Prompts
Voice Call Properties
Dialog Task Management
Supported Entity Types
Supported Company Names
Supported Colors
Knowledge Graph
Introduction
Knowledge Extraction
Build Knowledge Graph
Create Node Structure
Build the Graph
Add FAQs
Add FAQs from an Existing Source
Run a Task
Traits, Synonyms, and Stop Words
Manage Variable Namespaces
Update Knowledge Graph
Introduction
Move Question and Answers Between Nodes
Edit and Delete Terms
Edit Questions and Responses
Knowledge Graph Analysis
Knowledge Graph Import and Export
Prepare Data for Import
From a CSV File
From a JSON File
Importing Knowledge Graph
Exporting Knowledge Graph
Auto-Generate Knowledge Graph
Alert Tasks
Small Talk
Digital Skills
Overview
Digital Forms
Digital Views
Introduction
Widgets
Panels
Session and Context Variables
Context Object
Train
NLP Optimization
ML Engine
Overview
Model Validation
FM Engine
KG Engine
Traits Engine
Ranking and Resolver
Training Validations
NLP Configurations
NLP Guidelines
Intelligence
Introduction
Event Handlers
Default Standard Responses
Contextual Memory
Contextual Intents
Interruption Management
Multi-intent Detection
Amending Entities
Default Conversations
Conversation Driven Dialog Builder
Sentinment Management
Tone Analysis
Test & Debug
Overview
Talk to Bot
Utterance Testing
Batch Testing
Conversation Testing
Health and Monitoring
Deploy
Channels
Publishing
Versioning
Analyze
Introduction
Overview Dashboard
Conversations Dashboard
Users Dashboard
Performance Dashboard
Custom Dashboards
Introduction
Custom Meta Tags
Create Custom Dashboard
NLP Insights
Conversations History
Conversation Flows
Analytics Dashboard Filters
Usage Metrics
Containment Metrics
Smart Bots
Universal Bots
Introduction
Universal Bot Definition
Universal Bot Creation
Training a Universal Bot
Universal Bot Customizations
Enabling Languages
Store
Manage Assistant
Plan & Usage
Overview
Usage Plans
Support Plans
Invoices
Authorization
Multilingual Virtual Assistants
Get Started
Supported Components & Features
Manage Languages
Manage Translation Services
Multiingual Virtual Assistant Behavior
Masking PII Details
Variables
Collections
IVR Settings
General Settings
Assistant Management
Manage Namespace
Data as Service
Data Table
Table Views
App Definitions
Sharing Data Tables or Views
HOW TOs
Build a Travel Planning Assistant
Travel Assistant Overview
Create a Travel Virtual Assistant
Design Conversation Skills
Create an ‘Update Booking’ Task
Create a Change Flight Task
Build a Knowledge Graph
Schedule a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Train the Assistant
Use Traits
Use Patterns
Manage Context Switching
Deploy the Assistant
Configure Agent Transfer
Use Bot Functions
Use Content Variables
Use Global Variables
Use Web SDK
Build a Banking Assistant
Design Conversation Skills
Create a Sample Banking Assistant
Create a Transfer Funds Task
Create a Update Balance Task
Create a Knowledge Graph
Set Up a Smart Alert
Design Digital Skills
Configure Digital Forms
Configure Digital Views
Add Data to Data Tables
Update Data in Data Tables
Add Data from Digital Forms
Train the Assistant
Composite Entities
Use Traits
Use Patterns for Intents & Entities
Manage Context Switching
Deploy the Assistant
Configure an Agent Transfer
Use Assistant Functions
Use Content Variables
Use Global Variables
Intent Scoping using Group Node
Analyze the Assistant
Create a Custom Dashboard
Use Custom Meta Tags in Filters
APIs & SDKs
API Reference
API Introduction
API List
API Collection
koreUtil Libraries
SDK Reference
SDK Introduction
SDK Security
SDK Registration
Web Socket Connect and RTM
Using the BotKit SDK
BotKit SDK Tutorial - Blue Prism
Widget SDK Tutorial
Web SDK Tutorial
ADMINISTRATION
Introduction to Admin Console
Administration Dashboard
User Management
Add Users
Manage Groups
Manage Roles
Assistant Management
Enrollment
Invite Users
Send Bulk Invites
Import User Data
Synchronize Users from AD
Security & Control
Using Single-Sign On
Security Settings
Cloud Connector
Analytics
Billing
  1. Home
  2. Docs
  3. Virtual Assistants
  4. Test your Bot
  5. Conversation Testing

Conversation Testing

Conversation Testing enables you to simulate end-to-end conversational flows to evaluate the dialog task or perform regression. You can create Test Cases to capture various business scenarios and run them at a later point in time to validate the performance of the assistant. 

Test Cases Overview

Test Cases consist of a sequence of Test Steps that capture the conversational flow. Each Test Step is a combination of Step Number, Test Input, Expected Output, Actual Output, and Test Result.  Step# defines the sequence of execution.  Test Input represents the user message part of the conversation.  Expected Output represents the bot message that is anticipated from the assistant. Actual Output represents the response of the assistant during test execution. The platform will evaluate the Actual Output against the Expected Output to determine if a test step is passed or not.  Test Result indicates if the actual output is the same as the expected output. Test Result can be Pass, Failed, or Not Executed.

Test Case Creation 

New Test Cases can be created by recording the conversation while using ‘Talk to Bot’. Follow the following steps to create a new test case.  Step 1: Launch ‘Talk to Bot’ by clicking on the icon in the bottom right corner of your screen. ‘Talk to Bot’ can be launched from any module on the platform. 

Step 2: Click on ‘Record Conversation’ to start recording the messages that are going to be part of the test case.  

Step 3: Interact with the assistant by entering relevant user messages.  Step 4: To create a new test case, click on ‘Stop Recording’ and then click on ‘Create Test Case’. 

Step 5: In the next screen, add the necessary details such as ‘Test Case Name’, ‘Description’ and ‘Tags’ and click on ‘Add’.

Step 6: Navigate to the Conversation Testing module to execute the added test case or add another test case by following the same steps. 

Tags

Tags help in classifying and organizing test cases. You can choose to add a tag at the time of the creation of a test case or from under Test Case Properties > General Settings.

General Settings

 After a test case is created, you can access the ‘General Settings’ from the Test Case Options menu.

Within the General Settings, you have the option to edit the following properties.

  •       Test Case Name
  •       Test Case Description
  •       Test Case Tags

Additionally, the following properties can be viewed but not edited.

  •       Date & Time of Test Case Creation
  •       Name of the User who created the Test Case
  •       Date & Time of the last update
  •       Name of the user who last updated the test case

Test Case Execution

The following steps will guide you on how to execute a test case and obtain a detailed analytical report based on the execution. 

  • Step 1: Select the Test Cases that you would like to execute.
  • Step 2: Click on ‘Run Test Case’ to start the execution.

  • Step 3: Next, you are required to choose the Version of the assistant that you want to test. Based on the version selected, please ensure that you have valid authorization tokens for the assistant to make the service calls that would be part of the test case.

  • Step 4: You can monitor the progress of the execution from the last result column against the test case and the status docker.
  • Step 5: Once the test case execution is over, you can click on the test case to view the execution history.
  • Step 6: Click on any of the listed test runs to view the details of the test run.  Test Cases are executed asynchronously i.e. even when multiple test cases are selected, the execution happens sequentially. You have the option to cancel the test execution before the execution is completed.  Once the test case execution has started, the platform continues to execute the test case even when one or more test steps fail. However, if the test execution is stuck at a test step for more than 60s the platform will timeout and abort the execution. 

Interpreting Test Results

The following details are stored against every test execution. 

  • Date & Time of Execution completion.
  • Version Type to indicate if the test case was run against the In-development or the Published version of the assistant. 
  • Execution Result to indicate the result of the execution. A test case is treated as failed if at least one of the test steps is failed. 
  • Execution Time indicates the total time duration of the execution. 
  • Test Step Details represent the total steps that were passed, failed, or not executed. 
  • Execution Error Details are shown only when the platform is unable to complete the test execution either because of the user aborting the test case or the test step timing out due to an error. 

Limitations

The following modules cannot be tested with the current version of conversation testing. 

  • Digital Forms
  • Dynamically generated messages where content or context variables are used.

The Test Runner Tool

If you would like to set up your own test execution application, then you can download the libraries provided at the Kore.ai Github repository. You can record and download the test cases from the platform, and run these test cases on your application. Note that this tool is an open-source code that you can fork a branch and make changes as per your requirements.

Important Notes:

  • You can start and stop the recording anytime during your conversation with the assistant.
  • The entire conversation is saved as a Test Case.
  • In case you want to split the Test Cases and generate a Test Suite, you can achieve it using “discard all” command during the conversation. The conversation before “discard all” is saved as a test case and the conversation after is another test case. Both the test cases will be saved as a single file as Test Suite. You can split the conversation into as many test cases as per your requirement.
  • The entire conversation is stored in a JSON file which will be available for download once the recording ends.

 

The Testing Tool will converse with the assistantusing the user input from the JSON file and compare the bot response with the recorded bot responses. The results are recorded in a Test Results spreadsheet providing a comprehensive report of the test run, with the developer input, actual and expected results, and the status of the test run (passed or failed). You can use this spreadsheet to report, keep a track of, and re-test the failed test cases. For more details on the Test Runner refer to the Kore.ai Github.

Menu