zhenshuo-botium-connector-botkit-websocket

0.1.7 • Public • Published

Botium Connector for Botkit over websockets

This is a Botium connector for testing your Botkit chatbot over websockets.

How it works ?

Botium uses the Botkit Anywhere to connect to your chatbot.

It can be used as any other Botium connector with all Botium Stack components:

Requirements

  • Node.js and NPM
  • a Botkit Anywhere Server
  • a project directory on your workstation to hold test cases and Botium configuration

Install Botium and Botkit Connector

When using Botium CLI:

> npm install -g botium-cli
> npm install -g botium-connector-botkit-websocket
> botium-cli init
> botium-cli run

When using Botium Bindings:

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

When using Botium Box:

TODO

Connecting your Botkit server to Botium

Open the file botium.json in your working directory and add the Botkit chatbot connection settings.

{
  "botium": {
    "Capabilities": {
      "PROJECTNAME": "<whatever>",
      "CONTAINERMODE": "botium-connector-botkit-websocket",
      "BOTKIT_SERVER_URL": "..."
    }
  }
}

Botium setup is ready, you can begin to write your BotiumScript files.

Supported Capabilities

Set the capability CONTAINERMODE to botium-connector-botkit-websocket to activate this connector.

BOTKIT_SERVER_URL

The Botkit server url (without any path, just http/https, servername, port)

Readme

Keywords

Package Sidebar

Install

npm i zhenshuo-botium-connector-botkit-websocket

Weekly Downloads

1

Version

0.1.7

License

MIT

Unpacked Size

7.8 kB

Total Files

7

Last publish

Collaborators

  • zhenshuofd