@naktibalda/botium-connector-botkit-websocket
v0.0.7
Published
Botium Connector for Botkit via websockets
Downloads
2
Readme
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 @Naktibalda/botium-connector-botkit-websocket
> botium-cli init
> botium-cli run
When using Botium Bindings:
> npm install -g botium-bindings
> npm install -g @Naktibalda/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": "@naktibalda/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 @naktibalda/botium-connector-botkit-websocket to activate this connector.
BOTKIT_SERVER_URL
The Botkit server url (without any path, just http/https, servername, port)