Skip to content
Testsigma DOCS

Test Data

Default Test Data Generators


Testsigma offers a variety of predefined data types, including text, number, date, email, phone number, and others. You can use these data types to create test data for various field types. For more information on test data generator usage in test steps, refer to the documentation on test data generator usage in test steps to learn how to use the default test data generators in your test steps.

The following list categorises the available default test data generators.


Category(Class)Function(Method)UsageInputs
EmailFunctionsusernameGenerate a usernameLength
e.g. Length - 6
EmailFunctionsrandomAlphanumaricEmailGenerates a random email with both numbers and lettersLength
e.g. Length - 5
EmailFunctionsrandomAlphaNumericEmailWithDomainGenerate a random email string with both alphabet and numbers
  • Length
  • Domain
  • e.g. Length - 8, Domain - google.com
    EmailFunctionsrandomEmailGenerates a random email with a given domain.
  • Length
  • Domain
  • e.g. Length - 7, Domain - testsigma.com
    EmailFunctionsrandomEmailGenerates a random emailLength
    e.g. Length - 7

    Category(Class)Function(Method)UsageInputs
    MailBoxFunctionsgetEmailOTPFetch OTP from the email
  • Regex
  • Mailbox
  • Timeout in seconds
  • e.g. Regex - \d{6}, Mailbox - Select Linked Mailbox, Timeout - 45
    MailBoxFunctionsgetLinkFromContentFetch link from a piece of content
  • Regex
  • Mailbox
  • Timeout in seconds
  • e.g. Regex - Regex - \bhttps?://\S+, Mailbox - Select Linked Mailbox, Timeout - 60
    MailBoxFunctionssubjectVerificationVerify subject of email
  • Regex
  • Mailbox
  • Timeout in seconds
  • e.g. Regex - Regex - ^[a-zA-Z0-9._%+-]+.[a-zA-Z]{2,}$, Mailbox - Select Linked Mailbox, Timeout - 90
    MailBoxFunctionscontentVerificationVerify content of email
  • Regex
  • Mailbox
  • Compare String
  • Timeout in seconds
  • e.g. Regex - ^[a-zA-Z0-9._%+-]+.[a-zA-Z]{2,}$, Mailbox - Select Linked Mailbox, CompareString - , Timeout - 45
    MailBoxFunctionsgetEmailContentStore the entire email content in a variable
  • Runtime Variable
  • Timeout in seconds
  • e.g. Runtime Variable - content, Timeout - 30
    MailBoxFunctionsgetEmailSubjectStore the subject of the email into a variable by fetching it
  • Runtime Variable
  • Timeout in seconds
  • e.g. Runtime Variable - content, Timeout - 45
    MailBoxFunctionsurlWithTextFetches the URL of the Element containing the provided text
  • Text
  • Runtime Variable
  • Timeout in seconds
  • e.g. Text - randomtext, Runtime Variable - url, Timeout - 30
    MailBoxFunctionsurlWhichContainsFetch the URL that contains some required parameters.
  • Substring
  • Runtime Variable
  • Timeout in seconds
  • e.g. Substring - example, Runtime Variable - random_text, Timeout - 15
    MailBoxFunctionsurlMatchingRegexRetrieve the URL that matches the required regular expression
  • Regex
  • Runtime Variable
  • Timeout in seconds
  • e.g. Regex - r’https://\w+.com/\w+’, Runtime Variable - path, Timeout - 30
    EmailmailboxInput’s not required

    Category(Class)Function(Method)UsageInputs
    MailBoxAliasFunctionsgenerateMailBoxAliasGenerate a unique mailbox every time it is executed during test executionMailbox - Select Linked Mailbox
    MailBoxAliasFunctionsgetEmailContentFetch the entire email content into a variable
  • Runtime Variable
  • Timeout in seconds
  • e.g. Runtime Variable - content, Timeout - 30
    MailBoxAliasFunctionsgetEmailSubjectFetch the subject of the email in to a variable
  • Runtime Variable
  • Timeout in seconds
  • e.g. Runtime Variable - content, Timeout - 45
    MailBoxAliasFunctionsgetOTPFetch OTP from the email
  • Regex
  • Runtime Variable
  • Timeout in seconds
  • e.g. Regex - \d{4,6}, Runtime Variable - otp, Timeout - 60
    MailBoxAliasFunctionsurlWithTextFetch the URL that contains some required text
  • Text
  • Runtime Variable
  • Timeout in seconds
  • e.g. Text - randomtext, Runtime Variable - url, Timeout - 30
    MailBoxAliasFunctionsurlWhichContainsFetch the URL that contains some required parameters
  • Substring
  • Runtime Variable
  • Timeout in seconds
  • e.g. Substring - example, Runtime Variable - random_text, Timeout - 15
    MailBoxAliasFunctionsurlMatchingRegexFetch the URL that contains a URL matching the required regular expression
  • Regex
  • Runtime Variable
  • Timeout in seconds
  • e.g. Regex - r’https://\w+.com/\w+’, Runtime Variable - path, Timeout - 30

    Category(Class)Function(Method)UsageInputs
    TestDataFromProfilegetTestDataBySetNameFetch the test data by set name from test data profiles
  • Test Data Profile
  • Data Set Name
  • Parameter
  • e.g. Test Data Profile - , Data Set Name - , Parameter -
    TestDataFromProfilegetTestDataByRowNumberFetch the test data by row number from test data profiles
  • Test Data Profile
  • Row Number
  • Parameter
  • e.g. Test Data Profile - , Row Number - , Parameter -

    Category(Class)Function(Method)UsageInputs
    NumberFunctionsCustom CalculationPerforms multiple mathematic calculationsUsing any Test Data
  • Plain Text
  • Parameter
  • Runtime
  • Environment
  • e.g. Test Data - [(25*25+50/45)+456]
    Numberrandom numberGenerates a random number between a given range
  • min - minimum value of range of numbers
  • max - maximum value of range of numbers
  • e.g. min - 2, max - 9
    NumberrandomDigitGenerates random digits between 0-9Input’s not required
    NumberrandomDigitNotZeroGenerates random digits between 1-9Input’s not required
    Numbernumber of digitsGenerates n number of digits
  • Number of digits
  • Boolean - True/ False
  • e.g. No of Digits - 6, Boolean - True
    NumberrandomNumberGenerates a Random Number Between Min and Max ValuesInput’s not required
    NumberrandomDoubleGenerates a Random Number Generator with Min, Max and Number of Decimals
  • Max No of Decimals
  • Min - Minimum value
  • Max - Maximum value
  • e.g. Max No of Decimanls - , Min - , Max-
    NumberrandomDoubleGenerates a Random Number Generator with Min, Max and Number of Decimals
  • Max No of Decimanls
  • Min - Minimum value
  • Max - Maximum value
  • e.g. Max No of Decimanls - , Min - , Max-
    NumberdigitsGenerates a randomn numberCount - Number of digits
    e.g. Count -
    NumberdigitGenerates a randomn number with the length mentionedInput’s not required

    Category(Class)Function(Method)UsageInputs
    NameFunctionsuniqueUsernameGenerates a unique usernameInput’s not required
    NamenameGenerates a randomn nameInput’s not required
    NamenameWithMiddleGenerates a name with Middle NameInput’s not required
    NamefullNameGenerates a Full NameInput’s not required
    NamefirstNameGenerates a random name that can be used as First NameInput’s not required
    NamelastNameGenerates a random name that can be used as Last NameInput’s not required
    NameprefixGenerates a random PrefixInput’s not required
    NamesuffixGenerates a random SuffixInput’s not required
    NametitleGenerates random TitleInput’s not required
    NameusernameGenerates a random UsernameInput’s not required

    Category(Class)Function(Method)UsageInputs
    PhoneNumberFunctionsgetOTPFetch OTP from an SMS
  • Regex
  • Phone number
  • Timeout in seconds
  • e.g. Regex - \d{6}, Phone number - Select Linked Phone Number, Timeout - 30
    PhoneNumbercellPhoneGenerates a random Mobile NumberInput’s not required
    PhoneNumberphoneNumberGenerates a random Phone NumberInput’s not required

    Category(Class)Function(Method)UsageInputs
    InternetdomainNameGenerates random domain nameInput’s not required
    InternetdomainWordGenerates random domainInput’s not required
    InternetdomainSuffixGenerates random domain suffixInput’s not required
    InternetemailAddressGenerates random email addressInput’s not required
    InternetemailAddressGenerates random email address with given locapartLocalpart
    e.g. Localpart -
    InternetsafeEmailAddressGenerates random emailInput’s not required
    InternetsafeEmailAddressGenerates random email address with givenLocalpart
    e.g. Localpart -
    InterneturlGenerates random URLInput’s not required
    InternetimageGenerates random image file URLInput’s not required
    InternetpasswordGenerates random passwordInput’s not required
    InternetuuidGenerates random unique user idInput’s not required

    Category(Class)Function(Method)UsageInputs
    FilemimeTypeGenerates random two part file typeInput’s not required
    FilefileNameGenerates random file nameInput’s not required
    FilefileNameGenerates file name using given data
  • Argument 0
  • Argument 1
  • Argument 2
  • Argument 3
  • e.g. Argument 0 - , Argument 1 - , Argument 2 - , Argument 3 -

    Category(Class)Function(Method)UsageInputs
    FriendscharacterGives random nameInput’s not required
    FriendslocationGives random locationInput’s not required

    Category(Class)Function(Method)UsageInputs
    IdNumbervalidGeneates random idInput’s not required
    IdNumberinvalidGeneates random idInput’s not required
    IdNumberssnValidInput’s not required
    IdNumbervalidSvSeSsnInput’s not required
    IdNumberinvalidSvSeSsnInput’s not required

    Category(Class)Function(Method)UsageInputs
    AddressstreetNameGenerates random street nameInput’s not required
    AddressstreetAddressNumberGenerates random street addressInput’s not required
    AddressstreetAddressGenerates random street addressInput’s not required
    AddressstreetAddressGenerates street address with given dataArgument 0
    e.g. Argument 0 -
    AddresssecondaryAddressGenerates random addressInput’s not required
    AddresszipCodeGenerates random zipcodeInput’s not required
    AddresszipCodeByStateArgument 0
    e.g. Argument 0 -
    AddressstreetSuffixGenerates random street SuffixInput’s not required
    AddressstreetPrefixGenerates random street PrefixInput’s not required
    AddresscitySuffixGenerates random Street City SuffixInput’s not required
    AddresscityPrefixGenerates random Street City PrefixInput’s not required
    AddresscityGenerates random cityInput’s not required
    AddresscityNameInput’s not required
    AddressstateInput’s not required
    AddressstateAbbrInput’s not required
    AddressfirstNameInput’s not required
    AddresslastNameInput’s not required
    AddresslatitudeInput’s not required
    AddresslongitudeInput’s not required
    AddresstimeZoneInput’s not required
    AddresscountryInput’s not required
    AddresscountryCodeInput’s not required
    AddressbuildingNumberInput’s not required
    AddressfullAddressGenerates random full addressInput’s not required

    Category(Class)Function(Method)UsageInputs
    CompanynameInput’s not required
    CompanysuffixInput’s not required
    CompanyindustryInput’s not required
    CompanybuzzwordInput’s not required
    CompanycatchphraseInput’s not required
    CompanybsInput’s not required
    CompanylogoInput’s not required
    CompanyjoinSampleOfEachList
  • Argument 0
  • Argument 1
  • e.g. Argument 0 - , Argument 1 -

    Category(Class)Function(Method)UsageInputs
    DateFunctionsfutureGenerates future date within atmost ‘x’ time units
  • atmost - at the maximum ‘x’ units in integer Format
  • Unit - Unit of time like day,hours,minutes,seconds etc;
  • Reference dates - any date
  • Format - Format of date
  • e.g. atmost - , Unit - , ReferenceDate - 21/11/2021, Format - DD/MM/YYYY
    DateFunctionsfutureGenerates future date within atmost ‘x’ time units
  • atmost - at the maximum ‘x’ units in integer Format
  • Unit - Unit of time like day,hours,minutes,seconds etc;
  • Format - Format of date
  • e.g. atmost- , Unit - , Format - MM/DD/YYYY
    DateFunctionscurrentGenerates current date within atmost ‘x’ units of timeFormat
    e.g. Format - dd/mm/yyyy
    DateFunctionsbetweenGenerates dates in between two dates
  • From - Starting date
  • To - Ending date
  • Format - Format of date
  • e.g. From - 16/03/2016, To - 15/07/2016, Format - DD/MM/YYYY
    DateFunctionspastGenerates past date within atmost ‘x’ units of time
  • atmost - at the maximum ‘x’ units in integer Format
  • Unit - Unit of time like day,hours,minutes,seconds etc;
  • Reference dates - any date
  • Format - Format of date
  • e.g. atmost - , Unit - , ReferenceDate - 14/02/1994, Format - DD/MM/YYYY
    DateFunctionspastGenerates past date within atmost ‘x’ units of time
  • atmost - at the maximum ‘x’ units in integer Format
  • Unit - Unit of time like day,hours,minutes,seconds etc;
  • Format - Format of date
  • e.g. atmost- , Unit - , Format - MM/DD/YYYY
    DateFunctionsbirthdayGenerates a random birthdayFormat
    e.g. Format - dd/mm/yyyy
    DateFunctionsdateBeforeTodayGenerates a date which is before today’s date
  • noOfDays - number of days after the present date in integer Format
  • Format - Date Format
  • e.g. NoOfDays - 4, Format - DD/MM/YYYY
    DateFunctionsdateAfterTodayGenerates a date which is after today’s date
  • noOfDays - number of days after the present date in integer Format
  • Format - Date Format
  • e.g. NoOfDays - 3, Format - DD/MM/YYYY
    DateFunctionsdaysBeforeGivenDateSelects the previous date as input based on the provided “current date and the number of days to be counted.”
  • Date
  • noOfDays - number of days after the present date in integer Format
  • Format - Date Format
  • e.g. Date - 27/02/2015, NoOfDays - 7, Format - DD/MM/YYYY
    DateFunctionsdaysAfterGivenDateSelects the days after the current date based on the input of the “current date and number of days to be counted.”
  • Date
  • noOfDays - number of days after the present date in integer Format
  • Format - Date Format
  • e.g. Date - 25/08/1999, NoOfDays - 5, Format - DD/MM/YYYY

    Category(Class)Function(Method)UsageInputs
    DomainFunctionemailWithDomainGenerates an email with a domainPreferred Domain name
    e.g. Domain - google.com/ testsigma.com
    RandomStringFunctionsrandomStringFromGivenCharactersWithLengthGenerates a random string from the given set of characters
  • Stringlength - length of the string to be generated in integer Format.
  • List - list of characters
  • e.g. Stringlength - , NoOfDays - 5, List -
    Random TextphrasesGenerates random text phrases
  • Stringlength - length of the string to be generated in integer Format.
  • List - list of characters
  • e.g. Stringlength - , NoOfDays - 5, List -
    StringFunctionsConcatConcatenates two or more stringsUsing any Test Data like Plain Text, Parameter, Runtime, or Environment in Test-Data0 and Test-Data1 fields
    e.g. Testdata0 : @|parameter|, Testdata1 : $|Runtime|