|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Testing Commands > Testing Commands |
MiniRobotLanguage (MRL)
TST.Get Random Road Name
Generate a random road name along with a house number
Intention
The TST.Get Random Road Name command is designed to generate a random road name along with a house number, providing a realistic yet fictional address component for use in testing and simulation environments.
This command draws from a large pool of names to ensure variety and plausibility in the generated addresses. The house number is random and may have an additional letter or not.
•Extensive Name Pool: Leverages a vast repository of road names to ensure diverse and authentic outputs, enhancing the realism of test scenarios.
•Comprehensive Address Generation: Produces both the road name and house number, offering a complete address component that can be directly utilized in various applications.
•Ease of Integration: The straightforward command syntax allows for seamless incorporation into automated testing scripts or data generation workflows.
Utilizing the TST.Get Random Road Name command facilitates the creation of robust and realistic datasets for applications requiring geographical inputs, such as logistics platforms, real estate databases, and navigation tools.
This command simplifies the process of obtaining varied and plausible road names and numbers, aiding developers and testers in enhancing the accuracy and thoroughness of their testing procedures.
While the generated road names and numbers aim for realism, they are entirely fictional and not tied to actual geographic locations, making them suitable solely for testing or demonstration purposes.
The diversity and authenticity of the generated addresses are limited to the size and variety of the name pool, which may not fully capture all regional naming conventions or address formats.
Syntax
TST.Get Random Road Name|P1|P2
Parameter Explanation
P1 - (optional) The variable designated to store the generated road name. If omitted TOS is used.
P2 - (optional) The variable where the corresponding house number will be stored. If omitted TOS is used.
Example
'***********************************
' TST.-Sample
'***********************************
' Generate a random road name and its corresponding house number
TST.Get Random Road Name|$$N01|$$N02
DBP.A random Road Name is $$N01 $$N02.
ENR.
Result:
A random Road Name is Am Gladiolenweg 57a.
Remarks
-
Limitations:
-
See also:
•