Writing Data Config File
We have 31 types of value that can be generated.
customseq
Generates a custom sequence of integers.
- Parameters:
start (optional): Starting value of the sequence (default: 1).
step (optional): Step size between values (default: 1).
Example:
type: customseq
datatype: int
start: 1
step: 1
name: 'ID'
pos: 1
firstname
Generates random first names.
- Parameters:
None.
Example:
type: firstname
datatype: string
name: 'First Name'
pos: 2
lastname
Generates random last names.
- Parameters:
None.
Example:
type: lastname
datatype: string
name: 'Last Name'
pos: 3
gender
Generates random gender values.
- Parameters:
None.
Example:
type: gender
datatype: string
name: 'Gender'
pos: 4
country
Generates random country names.
- Parameters:
countries (optional): List of specific countries to choose from (default: [‘US’]).
Example:
type: country
datatype: string
countries: ['US','UK']
name: 'Country'
pos: 5
phonenumber
Generates random phone numbers.
- Parameters:
None.
Example:
type: phonenumber
datatype: string
name: 'Phone No.'
pos: 6
currency
Generates random currency codes.
- Parameters:
currency (optional): List of specific currency codes to choose from (default: [‘USD’]).
Example:
type: currency
datatype: string
currency: ['USD', 'GBP', 'AUD', 'CAD']
name: 'Currency'
pos: 7
customdate
Generates random dates within a specified range.
- Parameters:
start (optional): Start date in ‘DD/MM/YYYY’ format (default: ‘01/01/1900’).
end (optional): End date in ‘DD/MM/YYYY’ format (default: ‘31/12/2023’).
Example:
type: customdate
datatype: datetime
start: '01/01/1980'
end: '31/12/2006'
name: 'DOB'
pos: 8
customint
Generates random integers within a specified range.
- Parameters:
start (optional): Start value of the range (default: 0).
end (optional): End value of the range (default: 100).
round (optional): Number of decimal places to round to (default: 1).
Example:
type: customint
datatype: int
start: 10000
end: 20000
round: 1000
name: 'Salary'
pos: 9
customfloat
Generates random floating-point numbers within a specified range.
- Parameters:
start (optional): Start value of the range (default: 0.0).
end (optional): End value of the range (default: 100.0).
round (optional): Number of decimal places to round to (default: 2).
Example:
type: customfloat
datatype: float
start: 97.5
end: 101.5
round: 1
name: 'Body Temp.'
pos: 10
customlist
Generates a random value from a custom list.
- Parameters:
values (required): List of values to choose from.
Example:
type: customlist
datatype: string
values: ['A+', 'B+', 'AB+', 'O+', 'A-', 'B-', 'AB-', 'O-']
name: 'Blood Group'
pos: 11
customuuid
Generates random UUIDs.
- Parameters:
characterlimit (optional): Maximum number of characters in the UUID (default: 10).
numeric (optional): If True, generate a numeric UUID; otherwise, alphanumeric (default: False).
Example:
type: customuuid
datatype: string
characterlimit: 6
numeric: True
name: 'Employee ID'
pos: 12
customlorem
Generates random Lorem Ipsum text.
- Parameters:
characterlimit (optional): Maximum number of characters in the Lorem Ipsum text (default: 200).
Example:
type: customlorem
datatype: string
characterlimit: 20
name: 'Feedback'
pos: 13
email
Generates random email addresses.
- Parameters:
emailprovider (optional): List of email providers to choose from.
Example:
type: email
datatype: string
emailprovider: ['gmail.com','yahoo.com','hotmail.com']
name: 'Email'
pos: 14
website
Generates random website URLs.
- Parameters:
domain (optional): List of domain extensions to choose from (default: [‘.com’]).
Example:
type: website
datatype: string
domain: ['.com','.net','.org']
name: 'URL'
pos: 15
organization
Generates random organization names.
- Parameters:
None.
Example:
type: organization
datatype: string
name: 'Company'
pos: 16
department
Generates random department names.
- Parameters:
customdept (optional): List of custom department names to choose from.
Example:
type: department
datatype: string
customdept: ['Marketing', 'Engineering', 'HR']
name: 'Dept'
pos: 17
designation
Generates random job titles.
- Parameters:
customdes (optional): List of custom job titles to choose from.
Example:
type: designation
datatype: string
customdes: ["Executive","Manager","Director"]
name: 'Designation'
pos: 18
passport
Generates random passport numbers.
- Parameters:
country (optional): Country for which the passport number should be generated (default: ‘US’).
Example:
type: passport
datatype: string
country: 'US'
name: 'Passport'
pos: 19
ssn
Generates random Social Security Numbers (SSNs).
- Parameters:
country (optional): Country for which the SSN should be generated (default: ‘US’).
Example:
type: ssn
datatype: string
country: 'US'
name: 'SSN'
pos: 20
ccn
Generates random credit card numbers.
- Parameters:
None.
Example:
type: ccn
datatype: string
name: 'Credit Card'
pos: 21
password
Generates random passwords.
- Parameters:
None.
Example:
type: password
datatype: string
name: 'Password'
pos: 22
address
Generates random addresses.
- Parameters:
country (optional): Country for which the address should be generated (default: ‘US’).
Example:
type: address
datatype: string
country: 'US'
name: 'Address'
pos: 23
lat
Generates random latitude values.
- Parameters:
country (optional): Country for which the latitude should be generated (default: ‘US’).
Example:
type: lat
datatype: string
country: 'US'
name: 'Latitude'
pos: 24
long
Generates random longitude values.
- Parameters:
country (optional): Country for which the longitude should be generated (default: ‘US’).
Example:
type: long
datatype: string
country: 'US'
name: 'Longitude'
pos: 25
industry
Generates random industry names.
- Parameters:
customindustry (optional): List of custom industry names to choose from.
Example:
type: industry
datatype: string
customindustry: ['Fashion and Retail', 'Telecom', 'Technology', 'Automotive', 'Media and Entertainment']
name: 'Industry'
pos: 26
customtime
Generates random times within a specified range.
- Parameters:
start (optional): Start time (default: ‘08:00:00’).
end (optional): End time (default: ‘23:59:59’).
clock_type (optional): Clock type (12 or 24, default: 24).
Example:
type: customtime
datatype: datetime
start: '08:00:00'
end: '23:59:59'
clock_type: 24
name: 'Time of Arrival'
pos: 27
customyear
Generates random years within a specified range.
- Parameters:
start (optional): Start year (default: 1900).
end (optional): End year (default: 2023).
Example:
type: customyear
datatype: int
start: 1900
end: 2023
name: 'Year'
pos: 28
custommonth
Generates random month names or numbers.
- Parameters:
start (optional): Start month (default: 1).
end (optional): End month (default: 12).
Example:
type: custommonth
datatype: string
start: 1
end: 12
name: 'Month'
pos: 29
prodname
Generates random product names.
- Parameters:
None.
Example:
type: prodname
datatype: string
name: 'Product'
pos: 30
prodcat
Generates random product categories.
- Parameters:
customcats (optional): List of custom product categories to choose from.
Example:
type: prodcat
datatype: string
customcats: ["Electronics", "Clothing", "Home and Kitchen", "Books", "Toys"]
name: 'Category'
pos: 31