How to use the botium-core.BotDriver function in botium-core

To help you get started, we’ve selected a few botium-core examples, based on popular ways it is used in public projects.

github codeforequity-at / botium-core / samples / extensions / asserterHooks / botiumFluent.js View on Github external
const fs = require('fs')
const path = require('path')
const BotDriver = require('botium-core').BotDriver

console.log('Please make sure that botium-connector-watson module is installed before running this sample')

const driver = new BotDriver()

const scriptBuffer = fs.readFileSync(path.join(__dirname, 'convos/txt/restaurant.convo.txt'))

driver.BuildFluent()
  .Compile(scriptBuffer, 'SCRIPTING_FORMAT_TXT')
  .RunScripts()
  .Exec()
  .then(() => {
    console.log('SUCCESS :)')
  })
  .catch((err) => {
    console.log('ERROR: ', err)
  })

botium-core

The Selenium for Chatbots

MIT
Latest version published 18 days ago

Package Health Score

81 / 100
Full package analysis

Popular botium-core functions

Similar packages