botium-connector-ubitec v0.0.7
Botium Connector for Ubitec Bot Framework
This is a Botium connector for testing your Ubitec Bot Framework chatbot.
Did you read the Botium in a Nutshell articles? Be warned, without prior knowledge of Botium you won't be able to properly use this library!
How it works
Botium connects to the API of your Ubitec Bot Framework chatbot.
It can be used as any other Botium connector with all Botium Stack components:
Requirements
- Node.js and NPM
- a Ubitec bot
- a project directory on your workstation to hold test cases and Botium configuration
Install Botium and Ubitec Bot Framework Connector
When using Botium CLI:
> npm install -g botium-cli
> npm install -g botium-connector-ubitec
> botium-cli init
> botium-cli run
When using Botium Bindings:
> npm install -g botium-bindings
> npm install -g botium-connector-ubitec
> botium-bindings init mocha
> npm install && npm run mocha
When using Botium Box:
Already integrated into Botium Box, no setup required
Connecting Ubitec Bot Framework chatbot to Botium
Process is very simple, you have to know just the endpoint URL and Basic Authentication credentials for your chatbot.
Create a botium.json with this URL in your project directory:
{
"botium": {
"Capabilities": {
"PROJECTNAME": "<whatever>",
"CONTAINERMODE": "ubitec",
"UBITEC_URL": "..."
}
}
}
To check the configuration, run the emulator (Botium CLI required) to bring up a chat interface in your terminal window:
> botium-cli emulator
Botium setup is ready, you can begin to write your BotiumScript files.
How to start samples
There is a sample available in samples with Botium Bindings.
- Adapt botium.json in the sample directory if required (change URL)
- Install packages, run the test
> cd ./samples
> npm install && npm test
Supported Capabilities
Set the capability CONTAINERMODE to ubitec to activate this connector.
UBITEC_URL
Path of the Botium Consumer endpoint
UBITEC_USER
Username for Basic Authentication
UBITEC_PASSWORD
Password for Basic Authentication