SMS Test Data

Learn how to use the browser to test sending text messages.

Overview

Use Rainforest’s pool of SMS numbers to test your app’s ability to send text messages. Combine it with our SMS inbox placeholder to verify receipt of the text message. You can do all of this from the web browser; no mobile device is required.

SMS test data works the same way as our other built-in test data. The data acts as a placeholder in your instructions and generates a valid number when the test executes. Similar to {{random.inbox}}, {{sms.inbox}} is a virtual inbox where text messages are sent and can be viewed by our testers.

Adding SMS Test Data to a Test Step

To test sending text messages to a device, insert an SMS placeholder from the test data list.

  1. Click Insert Test Data to add an SMS placeholder.
  2. From the Built-In Data list, expand SMS and select {{sms.number}}.
336

Inserting SMS test data into a test step.

  1. Include a step that instructs the user to review the sent text. See Test Instructions Example.
  2. Select “SMS > {{sms.inbox}}” to receive a text message.

The {{sms.inbox}} value appears as a URL to the tester.

1928

An SMS inbox example.

Generated Test Data Example

Like other test data, the SMS number and inbox placeholders are persistent throughout the test.

  • {{sms.number}}

    +12566071079

  • {{sms.inbox}}

    https://sms.rainforestqa.com/number/+12566071079?valid_from=1648518722&valid_until=1648529522&max_uses=1&sig=908b1151d5a5bee91965a9747d09a163881b00251359b979c5ff92465a4e560b

Test Instructions Example

Action:
Key in {{sms.number}} in the cell phone field. Remove the “+1” if the 10-digit number doesn’t fit in the field. Click the Send Confirmation button.

Question:
Do you see a confirmation banner?

Action:
Open a new tab in the browser and go to “{{sms.inbox}}”. Click on the most recent message.

Question:
Do you see the confirmation link?

Note: You can only use 1 {{sms.number}} in a single test. If you require more, contact our Support team to purchase your own pool of private numbers.


If you have any questions, reach out to us at [email protected].