TestDriver can be used to test AI chatbots, or any two way assertions like:

  • Approval workflows
  • Chatbots
  • Email or SMS notifications
  • And more!

This scenario is an example of how to set up and run tests for an AI chatbot using TestDriver.

Prerequisites

Before running the tests, ensure you have performed the following steps:

  1. If you haven’t already, signup for a Free Trial on the TestDriver website
  2. Install the TestDriver CLI globally using npm or just follow the VS Code Extension Setup Walkthrough:
npm install -g @testdriverai@beta
  1. Run the init command to set up the TestDriver configuration using the API key you got when you signed up for the trial:
testdriverai init
Now you are ready to run the tests!

Scenario overview

  1. Load a website with an AI chatbot.
  2. Type a chat message or ask a question.
  3. Wait for the chatbot to respond.
  4. Verify that the chatbot’s response is correct and meets the expected criteria.