|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Testing Commands > Testing Commands |
MiniRobotLanguage (MRL)
TST.Generate Test Email
Generate a randomized email address
Intention
The TST.Generate Test Email command is crafted to generate a randomized email address, incorporating a country-specific name as part of the email identifier.
This command is invaluable for testing email-related functionalities in applications, ensuring they can accurately process and validate email addresses from various countries.
Cultural Specificity: Generates email addresses that are not only random but also culturally and linguistically appropriate to the specified country.
Versatility in Testing: Enhances testing processes by providing a variety of email formats, supporting applications intended for international use.
Ease of Integration: Simple command structure allows for straightforward incorporation into automated tests or scripts for generating test data.
Utilizing the TST.Generate Test Email command, developers and testers can enrich their test datasets with realistic email addresses, enhancing the robustness of email validation routines and UI/UX tests.
This command aids in simulating a more diverse user base, allowing for a broader evaluation of how applications handle email data across different locales.
While the email addresses generated are realistic, they are synthetic and should not be used for actual communication or as real user data.
The range of country codes and the associated naming conventions are limited to the specified list, which may not cover all potential locales where an application is intended to be used.
Syntax
TST.Generate Test Email|P1[|P2]
Parameter Explanation
P1 - The country code determining the nationality for the name included in the generated email address. This parameter influences the name's cultural and linguistic characteristics, aligning them with the specified country.
These Country Codes are supported:
•ENG - England
•GER - Germany
•ITA - Italy
•SPA - Spain
•SLO - Slovenia
•FRA - France
•IRL - Ireland
•POL - Poland
•RUS - Russia
•TUR - Turkey
P2 - The variable where the generated email address will be stored. If omitted TOS is used.
Example
'***********************************
' TST.-Sample
'***********************************
' Generate a test email with a German-specific name and store it in $$N01
TST.Generate Test Email|GER|$$N01
DBP.A random E-Mail is $$N01.
ENR.
Result:
A random E-Mail is Fabian.Schulz@freenet.de.
Remarks
-
Limitations:
-
See also:
•