aws-samples / amazon-lex-bot-test

Script to test an Amazon Lex bot using the Amazon Lex Runtime API.
MIT No Attribution
12 stars 14 forks source link

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.