2

Looking to add Twilio to one of the project. Managed to setup outgoing calls with But how can I automate the testing of these outgoing call scripts ? or testing the simple IVR that I have setup.

user1774599
  • 79
  • 1
  • 6
  • Using the test credentials lets you test your app without charging your account. More details here -> https://www.twilio.com/docs/api/rest/test-credentials – Colwin May 29 '17 at 12:34
  • using test credentials does not execute TwiML. I need to create tests that will initiate an outgoing call to my Twilio phone number, answer the call and enter some pin number and navigate the phone tree. – user1774599 May 29 '17 at 13:46

1 Answers1

3

Twilio developer evangelist here.

Twilio customer Simply Business wrote up an in depth series of blog posts describing how they implemented integration testing for their Twilio based code. I recommend you read through the posts for all the insights:

  1. Part 1: Why testing Twilio integration is hard in our scenario
  2. Automating tests in your local machine
  3. Improving tests to make them deployable to CI environment
philnash
  • 70,667
  • 10
  • 60
  • 88