Botium Connector for Wipro Holmes
npm install botium-connector-holmes


![license]()
This is a Botium connector for testing your Wipro Holmes 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!__
It can be used as any other Botium connector with all Botium Stack components:
* Botium CLI
* Botium Bindings
* Botium Box
When using __Botium CLI__:
```
> npm install -g botium-cli
> npm install -g botium-connector-holmes
> botium-cli init
> botium-cli run
When using __Botium Bindings__:
``
> npm install -g botium-bindings
> npm install -g botium-connector-holmes
> botium-bindings init mocha
> npm install && npm run mocha
When using __Botium Box__:
_Already integrated into Botium Box, no setup required_
Process is very simple, you have to know just the endpoint URL for your chatbot.
Create a botium.json with this URL in your project directory:
``
{
"botium": {
"Capabilities": {
"PROJECTNAME": "
"CONTAINERMODE": "holmes",
"HOLMES_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.
There is two small demos in samples with Botium Bindings. One uses a mocked Holmes API, other one uses real Holmes API.
* Install packages, run Mock API
``
> cd ./samples/mocked
> npm install && npm mock
* And start the test
``
> cd ./samples/mocked
> npm test
Adapt botium.json in the sample directory if required (change URL, delete other HOLMES_ entries)
* Install packages, run the test
``
> cd ./samples/real
> npm install && npm test
Set the capability __CONTAINERMODE__ to __holmes__ to activate this connector.
Optional. Default same as HOLMES_URL.
Optional. Default "user".
Optional. Default "user@wipro.com".
Example:
``
"{\"id\": \"2\",\"type\": \"web\",\"lang\": \"en\"}"
Optional. Default
```
{"id": "1","type": "web","lang": "en"}