Skip to content

Create a Test Suite

A Test Suite contains a collection of test cases grouped to simulate a specific conversation between the user and the bot and used anytime for test execution. You can know the execution status and determine and analyze the results in a test suite.

In Conversation testing, you can create the test suites in the following two different ways:

Record Conversation to Create a Test Suite

The option to record the test suite captures the metadata in the background which helps to test the flow sequence, transitions, and track the test coverage. The following step-by-step process explains how to record a conversation as a test suite, and validate and create the test cases.

Record Test Suite

  1. On the Conversation Testing page, click New Test Suite.
  2. Click the Record option to start recording the new test.
    Start recording New Test

  3. In the displayed pop-up, click Proceed to record the test with the On-Connect event or click the Skip On-Connect button.
    Recording Options

    Note

    "On-Connect" is the message you receive as soon as you open the chat window, even before you enter any message. The option is displayed for VAs with an On-Connect message. If you skip it, the On-connect message does not get added as a test case. If you click Proceed, then the On-connect message is created as a separate test case.

  4. The Chat window is displayed. The chat transcript is recorded and the recording status is displayed at the top. You can click Stop to stop the recording.
    Chat Recording Status

    Note

    If there is an error while recording due to any limitation set on the platform, it is displayed on the page.

Generated User Response Suggestions

If you have enabled LLM and Generative AI for your Virtual Assistant, you will see User Response suggestions while recording a Conversation Test Case.

This feature provides a regression tool that creates a conversation test suite for each intent (new and old) to evaluate the impact of a change on the conversation execution. It helps check if the task or intent is robust enough to handle random user utterances.

It also helps you predict and simulate the end user’s behavior and check if the VA can execute all the defined flows by generating user responses and presenting any digressions from the specified intent.

Click any suggestion to send it to your VA and test the response.
Suggestions

You can refresh the suggestions list or minimize the suggestions panel. You can also talk to your VA by typing in your responses.
Refresh suggestions

Validate Test Suite

The conversation is recorded and all the metadata at each test case is captured. Once the recording is completed, the Platform provides you an option to validate the test suite as follows:

  1. Upon successful completion of recording, click Validate Test Suite.
    Click Validate Test Suite

  2. The ongoing validation is displayed. You may click Cancel if you want to cancel the step or click Continue in Background to continue the validation as a background task.
    Validation in Progress

  3. If you click Continue in Background, you can see the status in the top right corner of the landing page by clicking the Draft icon.
    Continue in Background

    Note

    On-Connect is the message you receive as soon as you open the chat window, even before you enter any message. The option is displayed for VAs with an On-Connect message. If you skip it, the On-connect message does not get added as a test case. If you click Proceed, then the On-connect message is created as a separate test case.

  4. The Chat window is displayed. The chat transcript is recorded and the recording status is displayed at the top. You can click Stop to stop the recording.
    Validate Test Suite

    Note

    If there is an error while recording due to any limitation set on the platform, it is displayed on the page.

Capture Test Suite Metadata

Using Conversation Testing, you can test the sequence of nodes executed by the VA for user input(s) and capture the following metadata at the time of test suite creation to verify if the VA is executing the conversation flows as expected:

  • Intent ID, Intent Name
  • Node ID, Node Name
  • Transition flow

The metadata are captured in both Record and Upload scenarios for all the VA responses of all the test suites. The details to be captured vary based on the intent type of the VA response. For more information on the details captured here, see Test Editor.

Create Test Suite

  1. Upon approval, a Create Test Suite pop-up is displayed in which you can enter the following details:

    • Test Suite Name
    • Description
    • Tags
      Create Test Suite
  2. You can either click Create to create the test suite or discard this step.

  3. On clicking Create, the new test suite is created. You can click the Run Test Suite button to execute the test suite.
    Create Test Suite-Select test case

  4. The dialog Before you execute the test Suite is displayed. Select the version of your VA to be executed. If any authorization profiles are available, they are displayed here.
    Before you execute the test Suite

  5. Click Continue to continue the execution. The test cases execution progress is displayed on the top right corner of the page.
    Continue executing test suite

If the test cases are passed, the Result is displayed as Passed, as shown in the screenshot below.
Execution Results

Upload File to Create a Test Suite

Using this option, you can create test suites by uploading chat transcripts in a pre-defined JSON file. This alternative way of creating test suites is quick and scalable, as compared to recording the flow every time. The following step-by-step process explains how to upload a JSON file, validate and create the test suites.

Upload a JSON File

  1. Click New Test Suite.
  2. Click the Upload option to upload a chat transcript in JSON format.
    Upload TS JSON File

  3. You can drag and drop a predefined JSON file in the Upload pop-up or select the file in the local directory using the browse option.
    Browse for the JSON file

Note

Only JSON files can be uploaded. The maximum file size allowed for upload is 2MB. You can also download a sample JSON file by clicking the Download JSON Sample button.

If there is an error during upload due to any limitation set on the platform, an error is displayed as follows. JSON file upload error

If an uploaded JSON file exceeds the configured size limit of 2 MB, an error is displayed as shown below. JSON file size error

Validate Test Suite

The platform processes the uploaded file to simulate the conversation flow and capture all the metadata at each test case. When validating the test suite, there is an option to go back to Conversation testing while the test suite is being validated in the background.

The steps to validate test suites are the same as in Record Test suite Flow. See Validate Test Suite for more information. To understand more about testing the sequence of nodes and capturing metadata, see Capture Test Suite Metadata under Validate Test Suite.

Create Test Suite

The steps to create a test suite are the same as in Record Test suite Flow. See Record Test Suite to know more.