Skip to content
You're viewing the v2 docs. Looking for v1?Go to v1 docs
Docs
Testsigma
Popular questions
↑↓ to navigate↵ to selectesc to close
Book a demo

Data generator functions

Every built-in data generator, grouped by function type. Select the function type and the function in the Data Generators overlay, then supply the inputs listed here. Click the arrow before Show Examples in the overlay to see sample inputs and outputs for the function you selected.

Some functions appear twice, once per set of inputs they accept. randomEmail, randomDouble, emailAddress, safeEmailAddress, streetAddress, fileName, future, and past each have 2 forms.

FunctionClassGeneratesInputs
usernameEmailFunctionsA usernameLength
randomAlphanumaricEmailEmailFunctionsA random email with both numbers and lettersLength
randomAlphaNumericEmailWithDomainEmailFunctionsA random email string with both alphabet and numbersLength, Domain
randomEmailEmailFunctionsA random email with a given domainLength, Domain
randomEmailEmailFunctionsA random emailLength
FunctionClassGeneratesInputs
getEmailOTPMailBoxFunctionsFetches OTP from the emailRegex, Mailbox, Timeout in seconds
getLinkFromContentMailBoxFunctionsFetches link from a piece of contentRegex, Mailbox, Timeout in seconds
subjectVerificationMailBoxFunctionsVerifies the subject of emailRegex, Mailbox, Timeout in seconds
contentVerificationMailBoxFunctionsVerifies the content of emailRegex, Mailbox, Compare String, Timeout in seconds
getEmailContentMailBoxFunctionsStores the entire email content in a variableRuntime Variable, Timeout in seconds
getEmailSubjectMailBoxFunctionsStores the subject of the email into a variable by fetching itRuntime Variable, Timeout in seconds
urlWithTextMailBoxFunctionsFetches the URL of the Element containing the provided textText, Runtime Variable, Timeout in seconds
urlWhichContainsMailBoxFunctionsFetches the URL that contains some required parametersSubstring, Runtime Variable, Timeout in seconds
urlMatchingRegexMailBoxFunctionsRetrieve the URL that matches the required regular expressionRegex, Runtime Variable, Timeout in seconds
mailboxEmailNot described in the sourceNone
FunctionClassGeneratesInputs
generateMailBoxAliasMailBoxAliasFunctionsA unique mailbox every time it is executed during test executionMailbox - Select Linked Mailbox
getEmailContentMailBoxAliasFunctionsFetches the entire email content into a variableRuntime Variable, Timeout in seconds
getEmailSubjectMailBoxAliasFunctionsFetches the subject of the email in to a variableRuntime Variable, Timeout in seconds
getOTPMailBoxAliasFunctionsFetches OTP from the emailRegex, Runtime Variable, Timeout in seconds
urlWithTextMailBoxAliasFunctionsFetches the URL that contains some required textText, Runtime Variable, Timeout in seconds
urlWhichContainsMailBoxAliasFunctionsFetches the URL that contains some required parametersSubstring, Runtime Variable, Timeout in seconds
urlMatchingRegexMailBoxAliasFunctionsFetches the URL that contains a URL matching the required regular expressionRegex, Runtime Variable, Timeout in seconds
FunctionClassGeneratesInputs
getTestDataBySetNameTestDataFromProfileFetches the test data by set name from test data profilesTest Data Profile, Data Set Name, Parameter
getTestDataByRowNumberTestDataFromProfileFetches the test data by row number from test data profilesTest Data Profile, Row Number, Parameter
FunctionClassGeneratesInputs
Custom CalculationNumberFunctionsPerforms multiple mathematic calculationsAny test data type: plain text, parameter, runtime, or environment
random numberNumberA random number between a given rangeMin - minimum value of range of numbers, max - maximum value of range of numbers
randomDigitNumberRandom digits between 0-9None
randomDigitNotZeroNumberRandom digits between 1-9None
number of digitsNumberN number of digitsNumber of digits, Boolean - True/ False
randomNumberNumberA random number between a minimum and a maximumNone
randomDoubleNumberA random decimal number between a minimum and a maximumMax No of Decimals, Min - Minimum value, Max - Maximum value
randomDoubleNumberA random decimal number between a minimum and a maximumMax No of Decimals, Min - Minimum value, Max - Maximum value
digitsNumberA random numberCount - Number of digits
digitNumberA random single digitNone
FunctionClassGeneratesInputs
uniqueUsernameNameFunctionsA unique usernameNone
nameNameA random nameNone
nameWithMiddleNameA name with Middle NameNone
fullNameNameA Full NameNone
firstNameNameA random name that can be used as First NameNone
lastNameNameA random name that can be used as Last NameNone
prefixNameA random PrefixNone
suffixNameA random SuffixNone
titleNameRandom TitleNone
usernameNameA random UsernameNone
FunctionClassGeneratesInputs
getOTPPhoneNumberFunctionsFetches OTP from an SMSRegex, Phone number, Timeout in seconds
cellPhonePhoneNumberA random Mobile NumberNone
phoneNumberPhoneNumberA random Phone NumberNone
FunctionClassGeneratesInputs
domainNameInternetRandom domain nameNone
domainWordInternetRandom domainNone
domainSuffixInternetRandom domain suffixNone
emailAddressInternetRandom email addressNone
emailAddressInternetRandom email address with the local part you supplyLocalpart
safeEmailAddressInternetRandom emailNone
safeEmailAddressInternetRandom safe email address with the local part you supplyLocalpart
urlInternetRandom URLNone
imageInternetRandom image file URLNone
passwordInternetRandom passwordNone
uuidInternetA random UUIDNone
FunctionClassGeneratesInputs
mimeTypeFileA random two-part MIME typeNone
fileNameFileRandom file nameNone
fileNameFileFile name using given data4 arguments, not named in the source
FunctionClassGeneratesInputs
characterFriendsA random character nameNone
locationFriendsA random locationNone
FunctionClassGeneratesInputs
validIdNumberA random IDNone
invalidIdNumberA random IDNone
ssnValidIdNumberNot described in the sourceNone
validSvSeSsnIdNumberNot described in the sourceNone
invalidSvSeSsnIdNumberNot described in the sourceNone
FunctionClassGeneratesInputs
streetNameAddressRandom street nameNone
streetAddressNumberAddressRandom street addressNone
streetAddressAddressRandom street addressNone
streetAddressAddressStreet address with given data1 argument, not named in the source
secondaryAddressAddressRandom addressNone
zipCodeAddressRandom zipcodeNone
zipCodeByStateAddressNot described in the source1 argument, not named in the source
streetSuffixAddressRandom street SuffixNone
streetPrefixAddressRandom street PrefixNone
citySuffixAddressRandom Street City SuffixNone
cityPrefixAddressRandom Street City PrefixNone
cityAddressRandom cityNone
cityNameAddressNot described in the sourceNone
stateAddressNot described in the sourceNone
stateAbbrAddressNot described in the sourceNone
firstNameAddressNot described in the sourceNone
lastNameAddressNot described in the sourceNone
latitudeAddressNot described in the sourceNone
longitudeAddressNot described in the sourceNone
timeZoneAddressNot described in the sourceNone
countryAddressNot described in the sourceNone
countryCodeAddressNot described in the sourceNone
buildingNumberAddressNot described in the sourceNone
fullAddressAddressRandom full addressNone
FunctionClassGeneratesInputs
nameCompanyNot described in the sourceNone
suffixCompanyNot described in the sourceNone
industryCompanyNot described in the sourceNone
buzzwordCompanyNot described in the sourceNone
catchphraseCompanyNot described in the sourceNone
bsCompanyNot described in the sourceNone
logoCompanyNot described in the sourceNone
joinSampleOfEachListCompanyNot described in the source2 arguments, not named in the source
FunctionClassGeneratesInputs
futureDateFunctionsA future date, at most x units of time aheadAtmost - the maximum number of units, as an integer, Unit - day, hours, minutes, or seconds, Reference dates - any date, Format - the date format
futureDateFunctionsA future date, at most x units of time aheadAtmost - the maximum number of units, as an integer, Unit - day, hours, minutes, or seconds, Format - the date format
currentDateFunctionsThe current dateFormat
betweenDateFunctionsDates in between two datesFrom - Starting date, To - Ending date, Format - the date format
pastDateFunctionsA past date, at most x units of time backAtmost - the maximum number of units, as an integer, Unit - day, hours, minutes, or seconds, Reference dates - any date, Format - the date format
pastDateFunctionsA past date, at most x units of time backAtmost - the maximum number of units, as an integer, Unit - day, hours, minutes, or seconds, Format - the date format
birthdayDateFunctionsA random birthdayFormat
dateBeforeTodayDateFunctionsA date which is before today’s dateNoOfDays - number of days after the present date in integer Format, Format - Date Format
dateAfterTodayDateFunctionsA date which is after today’s dateNoOfDays - number of days after the present date in integer Format, Format - Date Format
daysBeforeGivenDateDateFunctionsA date the given number of days before the date you supplyDate, noOfDays - the number of days, as an integer, Format - Date Format
daysAfterGivenDateDateFunctionsA date the given number of days after the date you supplyDate, noOfDays - the number of days, as an integer, Format - Date Format
FunctionClassGeneratesInputs
emailWithDomainDomainFunctionAn email with a domainPreferred Domain name
randomStringFromGivenCharactersWithLengthRandomStringFunctionsA random string from the given set of charactersStringlength - the length to generate, as an integer, List - list of characters
phrasesRandom TextRandom text phrasesStringlength - the length to generate, as an integer, List - list of characters
ConcatStringFunctionsConcatenates two or more stringsAny test data type in the Test-Data0 and Test-Data1 fields: plain text, parameter, runtime, or environment

Was this page helpful?