Appearance
Data Generation
Generating Data for Form Commands
AireAssert allows you to generate data when setting values for form controls.
Generation is available for the following commands:
gherkin
When we set 'control' to {Generate:name:findName}
When we set 'control' in iteration 2 of 'repeat-control' to {Generate:name:findName}You can also set the locale of the command:
{Generate:name:findName:en_GB}Cheatsheet
Names
| Syntax | Description | Example |
|---|---|---|
{Generate:name:findName} | Generates a full name | Kevin Sporer |
{Generate:name:firstName} | Returns a first name | Kevin |
{Generate:name:lastName} | Returns a last name | Sporer |
{Generate:name:gender} | Returns a gender | Male, Female |
{Generate:name:jobArea} | Generates a job area | Infrastructure |
{Generate:name:jobDescriptor} | Generates a job descriptor | Customer |
{Generate:name:jobTitle} | Generates a job title | Global Accounts Engineer |
{Generate:name:jobType} | Generates a job type | Designer |
{Generate:name:prefix} | Returns a name prefix | Mr., Mrs. |
Company
| Syntax | Description | Example |
|---|---|---|
{Generate:company:companyName} | Generates a company name | Zieme, Hauck and McClure |
{Generate:company:companySuffix} | Generates a company suffix | LLC, and Sons |
Lorem
| Syntax | Description | Example |
|---|---|---|
{Generate:lorem:sentences} | Generates sentences | Deserunt porro nulla id vero perspiciatis nulla. |
{Generate:lorem:slug} | Generates slugified text | unde-deserunt-porro |
{Generate:lorem:word} | Generates a word | temporibus |
Random
| Syntax | Description | Example |
|---|---|---|
{Generate:random:word} | Returns random word | Seamless |
Internet
| Syntax | Description | Example |
|---|---|---|
{Generate:internet:color} | Generates a random CSS hex color code | #464c5b |
{Generate:internet:domainName} | Generates a domain name | muddy-neuropathologist.net |
{Generate:internet:domainSuffix} | Generates a domain suffix | com |
{Generate:internet:domainWord} | Generates a domain word | close-reality |
{Generate:internet:email} | Generates a random email | Larry_Ratke85@yahoo.com |
{Generate:internet:httpMethod} | Generates an HTTP method | DELETE |
{Generate:internet:ip} | Generates a random IPv4 address | 140.151.183.216 |
{Generate:internet:password} | Generates a random password | UYdqZrTqIEJuENl |
{Generate:internet:url} | Generates a random URL | https://remarkable-hackwork.info |
{Generate:internet:userName} | Generates a random username | Katelynn_Medhurst60 |
Finance
| Syntax | Description | Example |
|---|---|---|
{Generate:finance:account} | Generates a random account number | 55786858 |
{Generate:finance:accountName} | Generates a random account name | Home Loan Account |
{Generate:finance:amount} | Generates a random amount | 548.81 |
{Generate:finance:bic} | Generates a random BIC | PSVOTDO1 |
{Generate:finance:creditCardCVV} | Generates a credit card CVV | 537 |
{Generate:finance:creditCardNumber} | Generates a credit card number | 5020868584663428091 |
{Generate:finance:currencyCode} | Generates a currency code | MUR |
{Generate:finance:currencyName} | Generates a currency name | US Dollar |
{Generate:finance:iban} | Generates a random IBAN | TR736918640040966092800056 |
Bad Content
| Syntax | Description | Example |
|---|---|---|
{Generate:badContent:xml} | Generates invalid XML | |
{Generate:badContent:json} | Generates invalid JSON | <to/>abcd</to> |