developertogo / chatbot-test

A chatbot automatic testing framework. As a demo, it tests the chatbot at this repo:

Home Page:https://github.com/developertogo/chatbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chatbot-test

Test a specific task reminder chatbot running on WebSocket - ws://localhost:5555 and http://localhost:7777

This repo uses the chatbot test framework, Botium

Installation

Please install node.js if you have not done so.

npm install -g botium-bindings
npm install -g botium-connector-websocket
botium-bindings init mocha
npm install && npm run mocha

Unit Tests

Simply run:

$ npm test

Below it shows a sample test run:

image

NOTE

spec/convo/give_me_a_picture.convo.txt

This file is installed by one of botium packages. I couldn't figure out how to avoid it.

About

A chatbot automatic testing framework. As a demo, it tests the chatbot at this repo:

https://github.com/developertogo/chatbot

License:MIT License


Languages

Language:JavaScript 100.0%