Unable to run tests - Loading botium plugin failed for directline3
See original GitHub issueHi,
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)”
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (5 by maintainers)
it worked after installing npm package called npm install -g botium-connector-directline3
thanks for helping out