Here are some of the most popular Test Data Functions available in Testsigma:





And here's the complete list of the available Default Test Data Functions:

Sl.No.Class NameFunction NameArguments
1DomainFunctionsdomainNameArgument 1: String - preferred domain name without extension
2EmailFunctionsuserNameArgument 1: Integer - required length of username(actual names)
3EmailFunctionsrandomAlphanumaricEmailArgument 1: Integer - required length of email(random alphanumeric characters)
4EmailFunctionsrandomAlphanumaricEmailArgument 1:  Integer - length of username part before '@' symbol

Argument 2:  String - preferred domain name for the email
5EmailFunctionsrandomEmailArgument 1:  Integer - length of username part before '@' symbol(valid names)

Argument 2:  String - preferred domain name for the email
6EmailFunctionsrandomEmailArgument 1:  Integer - length of username part before '@' symbol(valid names)
7RandomStringFunctionsrandomStringFromGivenCharactersArgument 1:  Integer - "length of string to be generated

Argument 2:  List - List of characters with which string is to be generated
8NumbernumberBetweenArgument 1:  Integer - Minimum value

Argument 2:  Integer - Maximum value
9NumberrandomDigitno arguments
10NumberrandomDigitNotZerono arguments
11NumbernumberBetweenArgument 1:  Long - Minimum value

Argument 2:  Long - Maximum value
12NumberrandomNumberArgument 1:  Integer - no. of digits of generated random number

Argument 2:  Boolean - true/false*
13NumberrandomNumberno arguments
14NumberrandomDoubleArgument 1:  Integer - Maximum Number of Decimals

Argument 2: Integer - Minimum value

Argument 3: Integer - Maximum value
15NumberrandomDoubleArgument 1:  Integer - Maximum Number of Decimals

Argument 2: Long - Minimum value

Argument 3: Long - Maximum value
16NumberdigitsArgument 1:  Integer - Number of digits
17Namenameno arguments
18NamenameWithMiddleno arguments
19NamefullNameno arguments
20NamefirstNameno arguments
21NamelastNameno arguments
22Nameprefixno arguments
23Namesuffixno arguments
24Nametitleno arguments
25Nameusernameno arguments
26PhoneNumbercellPhoneno arguments
27PhoneNumberphoneNumberno arguments
28InternetdomainNameno arguments
29InternetdomainWordno arguments
30InternetdomainSuffixno arguments
31InternetemailAddressno arguments
32InternetemailAddressArgument 1:  String - local Part
33InternetsafeEmailAddressno arguments
34InternetsafeEmailAddressArgument 1:  String - local Part
35Interneturlno arguments
36Internetimageno arguments
37Internetpasswordno arguments
38Internetuuidno arguments
39Fileextensionno arguments
40FilemimeTypeno arguments
41FilefileNameno arguments
42FilefileName"Argument 1 ":  "Argument 1 "*
"Argument 1 ": "Argument 1 "
"argument2 ": "argument2 "
"argument3 ":  "argument3 "*
43Friendscharacterno arguments
44Friendslocationno arguments
45Friendsquoteno arguments
46IdNumbervalidno arguments
47IdNumberinvalidno arguments
48IdNumberssnValidno arguments
49IdNumbervalidSvSeSsnno arguments
50IdNumberinvalidSvSeSsnno arguments
51AddressstreetNameno arguments
52AddressstreetAddressNumberno arguments
53AddressstreetAddressno arguments
54AddressstreetAddressArgument 1:  Argument 1*
55AddresssecondaryAddressno arguments
56AddresszipCodeno arguments
57AddresszipCodeByStateArgument 1:  Argument 1*
58AddressstreetSuffixno arguments
59AddressstreetPrefixno arguments
60AddresscitySuffixno arguments
61AddresscityPrefixno arguments
62Addresscityno arguments
63AddresscityNameno arguments
64Addressstateno arguments
65AddressstateAbbrno arguments
66AddressfirstNameno arguments
67AddresslastNameno arguments
68Addresslatitudeno arguments
69Addresslongitudeno arguments
70AddresstimeZoneno arguments
71Addresscountryno arguments
72AddresscountryCodeno arguments
73AddressbuildingNumberno arguments
74AddressfullAddressno arguments
75Companynameno arguments
76Companysuffixno arguments
77Companyindustryno arguments
78Companyprofessionno arguments
79Companybuzzwordno arguments
80CompanycatchPhraseno arguments
81Companybsno arguments
82Companylogono arguments
84DefaultStepsnavigateToArgument 1:  String - Website URL to navigate to
85DefaultStepsclickArgument 1:  String - Element Locator
86DefaultStepsenterKeywordno arguments
87DefaultStepsenterValueUsingJAvaScriptArgument 1: String -  Element locator

Argument 2:  String - Value to be entered
 88DefaultStepsgetResponseArgument 1:  String - URL to get response from
Valid values for Unit of Time:
DAYS, HOURS, MINUTES, SECONDS, MILLISECONDS, MICROSECONDS, NANOSECONDS

Valid format for the date and time includes following characters:
d - Date, M - Month, y - Year, h - Hour, m - Minute, s - Second
MM - Month in numbers
MMM - Month in three characters such as Jan, Feb, Mar e.t.c


For example,
dd/mm/yyyy returns 28/10/1991
dd-MMM-yy returns 28-Oct-91
89DateFunctionsfutureArgument 1: Integer - Upper limit of value to be added(any random value between 0 and this value can be used)

Argument 2: TimeUnit - Unit of Time

Argument 3: String - Sample Reference Date

Argument 4: String - Format of Sample Reference Date
90DateFunctionsfutureArgument 1: Integer - Upper limit of value to be added(any random value between 0 and this value can be used)

Argument 2: TimeUnit - Unit of Time

Argument 3: String - Format of Date to be generated
91DateFunctionscurrentArgument 1: String - Format of Date to be generated
92DateFunctionsbetweenArgument 1: String - Date from which data is to be generated

Argument 2: String - Date up to which data is to be generated

Argument 3:  String - Format of Date to be generated
93DateFunctionspastArgument 1: Integer - Upper limit of value to be added(any random value between 0 and this value can be used)

Argument 2: TimeUnit - Unit of Time

Argument 3: String - Sample Reference Date

Argument 4:  String - Format of Date to be generated
94DateFunctionspastArgument 1: Integer - Upper limit of value to be added(any random value between 0 and this value can be used)

Argument 2: TimeUnit - Unit of Time

Argument 3:  String - Format of Date to be generated
95DateFunctionsbirthdayArgument 1: String - Format of Date to be generated



                                                                                                                                                                                                                                                                                                                                       

More functions to be added soon..