What's the best way of testing a Twilio application and simulate calls?
Things I'd like to test:
I'm mostly interested in learning how to do it in Node.js and Ruby.
(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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With