linuxdave / amazon-lex-bot-test

Script to test an Amazon Lex bot using the Amazon Lex Runtime API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

amazon-lex-bot-test

This is an example script to demonstrate how one can regression test an Amazon Lex bot. It relies on the AWS SDK and the Amazon Lex Runtime Service API.

The user must have IAM permissions to invoke the API functions (e.g., AmazonLexReadOnly).

To install

# git clone ...
# npm install

To use

$ node testlexbot.js <TestConfigFile>
# examples:
# node testlexbot.js test/CoffeeBot-main.json
# node testlexbot.js test/CoffeeBot-main.json 2>&1 > results.txt
# node testlexbot.js test/CoffeeBot-main.json 2>&1 > results.txt && ./bin/summarizeResults.sh results.txt

License

This sample code is made available under the MIT-0 license. See the LICENSE file.

About

Script to test an Amazon Lex bot using the Amazon Lex Runtime API.

License:MIT No Attribution


Languages

Language:JavaScript 64.3%Language:Shell 35.7%