How to use botium-core - 1 common examples

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

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

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 8 months ago

Package Health Score

61 / 100
Full package analysis

Popular botium-core functions

Similar packages