Closed vivekbrahmadandi closed 5 years ago
Please have a look at the Readme for the Directline Connector - what I noticed immediately is that the botium.json file is missing the directline secret. Furthermore, when using botium-cli, you don't need to code any javascript.
Please use Stackoverflow for questions, the issue tracker is for bug reports and feature requests only.
I wantedly kept empty here , in my local it has
ok - what happens when you run "botium-cli emulator console" ? (you can try to add the "--verbose" switch to get more output
it worked after installing npm package called npm install -g botium-connector-directline3
Great. It is strange in a way that you already installed botium-cli in global npm cache, and this should mean that the botium-connector-directline3 module (as a dependency) should have been installed already. But good to hear that you found the solution!
thanks for looking into the isses
How can add the mochawesome to the botium-bindings
Please see this sample: https://github.com/codeforequity-at/botium-bindings/tree/master/samples/watson you have to add the dependency to package.json and add additional options to the mocha command.
thanks for helping out
Hi,
I am attempting to test against direclist
Running: ubuntu -16.04 Node -10.15.0 Npm 6.4.1 Step by step what I did:
I installed botium-cli: npm i botium-cli -g Where this is my package.json:
{ "name": "botium", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "emulator": "botium-cli emulator console --convos ./spec/convos --config ./botium.json", "emulatorBrowser": "botium-cli emulator browser --convos ./spec/convos --config ./botium.json" }, "author": "", "license": "ISC" }
And this is my botium.json:
{
"botium":{
"Capabilities":{
"PROJECTNAME":"", "CONTAINERMODE":"directline3", "DIRECTLINE3_SECRET":", "DIRECTLINE3_WEBSOCKET":true, "DIRECTLINE3_POLLINGINTERVAL":1000 }, "Sources": {}, "Envs": { "NODE_TLS_REJECT_UNAUTHORIZED": 0 }
} }
And i Wrote a file botiumFluent.json file
const BotDriver = require('botium-core').BotDriver const driver = new BotDriver() driver.BuildFluent() .Start() .UserSaysText('Hello') .WaitBotSaysText(console.log) .WaitBotSays((msg) => console.log(JSON.stringify(msg, null, 2))) .WaitBotSays((msg) => console.log(JSON.stringify(msg, null, 2))) .WaitBotSays((msg) => console.log(JSON.stringify(msg, null, 2))) .WaitBotSays((msg) => console.log(JSON.stringify(msg, null, 2))) .Stop() .Clean() .Exec() .then(() => { console.log('READY') }) .catch((err) => { console.log('ERROR: ', err) })
I used the command to run this file as "node botiumFluent.js" and it gives and error saying "ERROR: Error: Loading Botium plugin failed at Validate.Validate.then (/home/vivekb/tamara/tamara-example/node_modules/botium-core/src/containers/PluginConnectorContainer.js:56:15)"