Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test a Twilio application?

What's the best way of testing a Twilio application and simulate calls?

Things I'd like to test:

  • Incoming Call
  • Recording
  • Transcription
  • Voicemail

I'm mostly interested in learning how to do it in Node.js and Ruby.

like image 329
donald Avatar asked Dec 15 '11 02:12

donald


1 Answers

(Twilio employee here)

I don't think you have to simulate this one at all. Write a script to actually place calls from your account into the number you want to test. You can even use the Sandbox since your destination number would be a Twilio number and therefore already Verified.

You could have the script call the number (Incoming Call), Say a message to test Recording & Transcription. Since you know the number that it is calling from and to you could use the API to retrieve the specific Call Sids and make sure the Recordings and Transcriptions exist. If you really wanted to get creative, you could make sure the Recording is a certain duration and the Transcription has content.

I wouldn't suggest trying to check specific Transcription content as the engine has been updated a number of times and something breaking because it got better is counter productive.

like image 117
CaseySoftware Avatar answered Sep 28 '22 04:09

CaseySoftware