Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Test Amazon Lex bots easily by defining business requirements through conversations.

Project description

amazon_lex_bot_test Documentation Status

Test Amazon Lex bots easily by defining business requirements through conversations:

lex-bot-test --example BookTrip

lex-bot-test --test-file <your-test-file> --alias test --region us-west-2 --verbose

Sample Test Definitions:

This should give you an idea how to define your test cases. Essentially you can test the response attributes and use Python patterns in the test condition. Not an examples from the samples as they don’t have session attributes.

name: test-lex-bot
description: Regression tests for the Amazon Lex bot
botName: your-bot-name
botAlias: test
waitBetweenRequestsMillis: 0
- name: book a car with all defaults
  description: book a car with all defaults
  - utterance: "book a car with all my defaults"
      - "Ok, Pickup of economy class car tomorrow and drop off in 2 days in new york?"
  - utterance: "yes"
      dialogState: ReadyForFulfillment
        CarType: economy
        DriverAge: "38"
        PickUpCity: new york
        PickUpDate: ".*"
        ReturnDate: ".*"
      - name: cart
        pattern: ".*total: $33.35.*"


  • TODO


This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.


0.1.0 (2018-12-12)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for amazon-lex-bot-test, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size amazon_lex_bot_test-0.1.1-py2.py3-none-any.whl (8.8 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size amazon_lex_bot_test-0.1.1.tar.gz (13.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page