Turn your manual testers into automation experts! Request a DemoStart testRigor Free

How to set up the Twilio Integration?

testRigor supports SMS and making a phone call through an integration with Twilio. In Settings->Integrations, scroll down to the Twilio section.

You’ll need to provide your Account sid and Auth token. A phone number is optional if receiving SMS messages is the only purpose; however, to initiate calls or send SMS messages, it will be necessary.

For calls, use the following commands:
call "+15344297154" and validate it was picked up 
make call to "+15344297154" and check it was answered 
call to +15344297154 
call "+15344297154" and check it was completed 
call "+15344297154" from "+15551234567" and verify it is ringing 
check that phone call from "+15344297154" was answered
For SMS messages, use the following commands.
sms "+15344297154" with body "this is content" and validate it was sent 
send sms to "+15344297154" with content "this is content"
send message to "+15344297154" with text "this is content" and check it was delivered 
send message from +15551234567 to "+15344297154" with text "this is content" and check it was failed
message from +15551234567 to "+15344297154" with body "this is content" and check it was not delivered

You can also assign temporary numbers that will be deleted from your account after the test execution is completed.

For more information on SMS testing, see https://testrigor.com/sms-testing/ and https://testrigor.com/docs/language/#sms.

Related Articles

How to add waits using testRigor?

Smart test automation tools like testRigor make sure to account for waiting mechanisms so that test cases do not fail ...

How to use variables in testRigor?

Using variables while writing test cases is helpful for many reasons. It not only makes your test case more versatile, as you can ...

How to execute test cases in parallel in testRigor?

Parallel execution plays a significant role in End-to-End (E2E) testing for several reasons, mainly time constraints and thorough ...