Testing Twilio app with multiple requests and different scenarios

Logan Bibby

I've created a Python Twilio app which interacts with a caller through many different URLs. It's made to be stateless and deployed on a load balanced system with a database backend to keep up with stateful call data.

My problem is testing. As I was developing, I was using the Firefox add-on HttpRequester to make requests as I went. That worked fine until I made a change in an earlier controller and had to run all the the requests again. It also made it nearly impossible to test scenarios (pressing 1 instead of 2).

I've played with UnitTest a bit, but no luck since there's no guarantee of the order the tests are ran and it's really against the point to have the tests rely on one another.

How do you normally test your Twilio apps?

Megan Speir

Logan, hi! Megan from Twilio here.

I'm not sure what framework you're working with but, Unit Testing Your Twilio App Using Python's Flask and Nose is detailed tutorial using the nose test runner to test against Twilio webhook endpoints.

Hope this helps.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Navigating to pages in rails app makes multiple requests to different pages

From Dev

Running all scenarios in a feature file, multiple times with different parameters?

From Dev

JMeter - Multiple requests at the same time but with different values

From Dev

Multiple different AJAX requests in one file

From Dev

Basic .NET Core app mixing multiple requests

From Java

Gatling load testing and running scenarios

From Dev

Testing IOS app on multiple machine without UDID

From Dev

Testing twilio api

From Dev

A unique Twilio testing predicament

From Dev

Twilio - Automated testing on VMWare

From Dev

Twilio sms session between multiple website user pairs using app's twilio number

From Dev

If statement for multiple scenarios

From Dev

SQL Order by with multiple scenarios

From Dev

order by in linq with multiple scenarios

From Dev

How to make multiple requests with different data in Grails Integration tests

From Dev

Is there a good way of testing different timezones for your iOS app?

From Dev

Trying to process different scenarios in Service

From Dev

Sort List of JSONObjects on different scenarios

From Dev

Scrapy Limit Requests For Testing

From Dev

Unit testing : 2 scenarios in one test?

From Dev

Difference between these 2 scenarios in load testing

From Dev

Why is my web app crashing after multiple GET requests?

From Dev

Different DispatchQueue for different requests

From Dev

Angular 2 for TypeScript app testing - specs appear multiple times in jasmine

From Dev

Preserve changes in multiple function when testing a Flask app

From Dev

Math? IF Statements. Multiple scenarios

From Dev

multiple if scenarios when submitting form

From Dev

How to profile MVC4 application, send multiple get requests to Web site for testing

From Dev

How to profile MVC4 application, send multiple get requests to Web site for testing

Related Related

  1. 1

    Navigating to pages in rails app makes multiple requests to different pages

  2. 2

    Running all scenarios in a feature file, multiple times with different parameters?

  3. 3

    JMeter - Multiple requests at the same time but with different values

  4. 4

    Multiple different AJAX requests in one file

  5. 5

    Basic .NET Core app mixing multiple requests

  6. 6

    Gatling load testing and running scenarios

  7. 7

    Testing IOS app on multiple machine without UDID

  8. 8

    Testing twilio api

  9. 9

    A unique Twilio testing predicament

  10. 10

    Twilio - Automated testing on VMWare

  11. 11

    Twilio sms session between multiple website user pairs using app's twilio number

  12. 12

    If statement for multiple scenarios

  13. 13

    SQL Order by with multiple scenarios

  14. 14

    order by in linq with multiple scenarios

  15. 15

    How to make multiple requests with different data in Grails Integration tests

  16. 16

    Is there a good way of testing different timezones for your iOS app?

  17. 17

    Trying to process different scenarios in Service

  18. 18

    Sort List of JSONObjects on different scenarios

  19. 19

    Scrapy Limit Requests For Testing

  20. 20

    Unit testing : 2 scenarios in one test?

  21. 21

    Difference between these 2 scenarios in load testing

  22. 22

    Why is my web app crashing after multiple GET requests?

  23. 23

    Different DispatchQueue for different requests

  24. 24

    Angular 2 for TypeScript app testing - specs appear multiple times in jasmine

  25. 25

    Preserve changes in multiple function when testing a Flask app

  26. 26

    Math? IF Statements. Multiple scenarios

  27. 27

    multiple if scenarios when submitting form

  28. 28

    How to profile MVC4 application, send multiple get requests to Web site for testing

  29. 29

    How to profile MVC4 application, send multiple get requests to Web site for testing

HotTag

Archive