Testing an Alexa Ability by speaking to your system isn’t enjoyable. Some months in the past I revealed an article exhibiting a number of choices for automating testing of your Alexa Ability:
Now, there may be a further choice obtainable for actual quick and relieable Finish-To-Finish-Testing of your Alexa Ability: utilizing the Alexa Voice Service for simulation of an Alexa system (a digital system) and Textual content-To-Speech/Speech-To-Textual content for operating BotiumScript take a look at instances.
The remainder of this text describes the steps required to setup a mission for holding the take a look at instances and take a look at runners on your Alexa talent.
Earlier than you start, be sure to have a present model of Node.js put in in your workstation.
High four Most Well-liked Bot Design Articles:
Botium Set up and Initialization
Run these instructions to put in Botium and Mocha, to create a Botium mission skeleton and run the skeleton mission.
> npm set up botium-bindings
> npm set up botium-connector-alexa-avs
> ./node_modules/.bin/botium-bindings init mocha
> npm set up && npm run mocha
Comply with these steps to setup your Amazon and Google accounts as required by Botium. Afterwards, take away the file botium.json and run the Botium Connector Alexa AVS Initialization Software:
The file botium.json is full of all of the required configuration for Botium. Create a file climate.convo.txt within the spec/convo folder:
Ask Alexa for climate
Alexa, what's the climate in Vienna ?
This BotiumScript asks Alexa for the climate and makes certain that there’s a solution. When operating Botium in verbose mode, you will note the precise response within the terminal window:
> DEBUG=botium* npm run mocha
Operating Check Instances with Mocha
Operating the take a look at case is so simple as:
> npm run mocha
Both set off the exams manually, or setup your CI Pipeline to run them — it’s as much as you now.
Searching for contributors
Please participate within the Botium neighborhood to carry chatbots ahead! By contributing you assist in growing the standard of chatbots worldwide, resulting in growing end-user acceptance, which once more will carry your individual chatbot ahead! Begin right here: