twilio-labs / dev-phone

A developer tool for testing SMS and Voice applications
MIT License
75 stars 20 forks source link

Automated conversations #142

Open ayyrickay opened 2 years ago

ayyrickay commented 2 years ago

Requirements

Considerations

bnb commented 2 years ago

From a "this is a potential testing tool for Twilio users" point of view: Have we considered exposing most of this via a module that can be integrated into existing testing tooling?

i.e. rather than having to build a bunch of UI, data storage, and the rest for this up front, exposing something like an uncomplicated module that can be the client that's sending/receiving messages, and just letting that be called as you would any other module in JavaScript? That might also allow us to figure out the needed interactions and then build the other UX for this on top of that as an additive step rather than doing 100% of it upfront.

The basic parts that I can think of that'd need to be built:

Maybe my understanding of the offering here is too shallow and this is all not possible, but in general I'd expect that we'd be able to capture responses and do deep assertion checks to make sure that they're what the user would expect back and then allow their test suite to pass/fail if that is/isn't true?