Learn how to generate random data for standard fields such as name, address, and email.
Overview
Use built-in data anywhere in your test steps to automatically generate discrete values for testers to enter. For example, in a signup test, you could provide first names, last names, and email addresses.
Adding Built-In Test Data to a Test Step
In the step editor, click Insert Test Data to display the test data menu.
Adding built-in test data to a test step.
In the pop-up, click any of the built-in data groups to reveal the placeholders.
Placeholders for the built-in data group.
Select the placeholder you want to use. Then, click the Save button.
Built-In Data Types
Rainforest breaks out the built-in data types into three groups:
Date Time - populates the date and time when the test starts.
Rainforest - populates Rainforest environmental information when the test executes.
Random - populates randomly generated contact and location information when the test executes.
Date Time
Data Type
Description
date_time.now
Populates date and time of the start of the run in “yyyy-mm-ddThh:mm:ss+Timezone change” such as “2022-03-29T15:11:30+00:00” for March 29, 2022 at 3:11pm and 30 seconds in UTC.
date_time.mm_dd_yyyy
Populates date at the start of the run in “mm/dd/yyy” format such as “03/29/2022”
date_time.yyyymmdd
Populates date of the start of the run in “yyyymmdd” format such as “20220329”
date_time.hhmm
Populates time at the start of the run in “hhmm” format such as “1511” for 3:11pm. Note: Uses 24 hour clock and based on UTC.
date_time.hhmmss
Populates time at the start of the run in “hhmmss” format such as “151130” for 3:11pm and 30 seconds. Note: Uses 24 hour clock and based on UTC.
date_time.week_ago_yyyymmdd
Populates date of one week ago in “yyymmdd” format such as “20220322” if today is March 29, 2022.
date_time.tomorrow_yyyymmdd
Populates tomorrow’s date in “yyymmdd” format such as “20220330” if today is March 29, 2022.
date_time.a_week_today_yyyymmdd
Populates date of one week in the future in “yyymmdd” format such as “20220405” if today is March 29, 2022.
date_time.a_month_today_yyyymmdd
Populates date of one month in the future in “yyymmdd” format such as “20220429” if today is March 29, 2022.
Rainforest Date Time data types.
Rainforest
Data Type
Description
rainforest.url_base
Populates with the base start URL of the test.
rainforest.environment_id
Populates with the Rainforest enviornment id.
rainforest.test_id
Populates with the Rainforest test id.
Rainforest Data Types.
Random
Data Type
Description
random.email
A unique character string ending in the domain @e.rainforestqa.com.