Testing Bots with Microsoft Bot Framework

This hands-on lab guides you through some of the basics of testing bots.

!Important Note!: These labs have not been updated since August 1, 2018. When they are updated, we’ll update this note.

Objectives

This workshop demonstrates how you can perform testing using the Microsoft Bot Framework. After completing these labs, you should be able to:

Note: for these labs, we will be using the v4 of the Microsoft Bot Framework SDK. If you would like to perform similar labs with the v3 SDK, refer here.

Prerequisites

Lab02.2-building_bots

This lab starts from the assumption that you have built and published the bot from lab02.2-building_bots. It is recommended that you do that lab in order to be successful in the ones that follow. If you have not, reading carefully through all the exercises and looking at some of the code or using it in your own applications may be sufficient, depending on your needs. We’ll also assume that you’ve completed lab02.5-logging_chat_conversations, but you should be able to complete the labs without completing the logging labs.

Have access to Azure

You will need to have access to portal and be able to create resources on Azure.

Introduction

Writing code using Microsoft Bot Framework is fun and exciting. But before rushing to code bots that can make tea and send spaceships to Mars, you need to think about testing your code. This workshop demonstrates how you can:

  1. Perform rapid development/testing using ngrok
  2. Perform functional testing (using Direct Line).
  3. Utilize other tools for bot development/testing

There are several directories in the resources folder:

You need Visual Studio to run these labs, but if you have already deployed a Windows Data Science Virtual Machine for one of the workshops, you could use Visual Studio within the DSVM.

Collecting the Keys

Over the course of this lab, we will collect various keys. It is recommended that you save all of them in a text file, so you can easily access them throughout the workshop.

Keys

This workshop has been broken down into five sections:

Continue to 1_Ngrok