Updated on 2024-10-12 GMT+08:00

Managing Robot Test Cases

You can maintain commonly used sentences in test cases, and periodically execute the test cases to verify that a robot can respond properly.

Prerequisites

You have configured the dialog flow and robot by referring to Configuring an Appointment Chatbot (Task-oriented Robot).

What are the benefits of managing test cases?

You can test conversations in batches with automated texts to verify that the robot's responses meet expectations, and to reduce the workload of verifying that the corpus is correct.

Procedure

  1. Choose Configuration Center > Chatbot Management > Semantic Understanding.
  2. Choose Training Check > Knowledge Test. Click Create.
  3. Enter a test case group name, for example, Ticket Booking Chatbot, select a robot, and set the calling number.

  4. Click Save.
  5. Click the link in the Test Cases column corresponding to the new test case group. The Manage Test Case page is displayed.
  6. Click Create and enter the case name.
  7. Click Manage Case Details. The details page is displayed.
  8. Click Add and set the parameters.

    If a large number of questions need to be tested, click Download Template to obtain a batch template, enter test case information in the template, and click Import to add test cases in batches.

  9. Click Confirm. On the Add Test Case page, click Save.
  10. On the Manage Test Case page, select the desired test case and click Execute Test.

    The system then automatically executes the test case in the activated domain and generates the test result.

For a failed case, you can click Call Details to view the actual response text or click the flow link in the Flow Track column to view the session track.