|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Testing Commands > Testing Commands |
MiniRobotLanguage (MRL)
TST.Get PLZ Town Province
Retrieves a coherent set of postal code (PLZ), town name, and province
Intention
The TST.Get PLZ Town Province command retrieves a coherent set of postal code (PLZ), town name, and province from a predefined data pool of German cities.
This functionality is crucial for testing applications that require valid, region-specific geographical data, such as address verification systems, logistics and delivery services, and location-based services within Germany.
Geographic Accuracy for Germany: Generates postal codes, town names, and provinces that are accurately paired and reflect real locations within Germany.
Ease of Use for Data Generation: Simplifies the creation of realistic, multi-attribute geographical data specific to Germany with a single command.
Broad Application for Testing: Ideal for a wide variety of testing environments where accurate German geographic data is required.
By using the TST.Get PLZ Town Province command, developers and testers can easily incorporate accurate German geographical data into their testing environments, enhancing the authenticity and relevance of their scenarios.
This command is a valuable tool for ensuring that applications handle German addresses correctly, supporting thorough testing and validation processes.
Limitations:
The command's data pool is limited to German cities, and thus it does not provide geographical data for locations outside of Germany.
While providing realistic data, the command generates addresses for testing purposes and may not always represent the latest or most comprehensive information regarding German postal codes and administrative divisions.
Syntax
TST.Get PLZ Town Province|$$PLZ|$$TWN|$$PRO
Parameter Explanation
$$PLZ - The variable to store the generated postal code from a German city.
$$TWN - The variable to store the corresponding town name from Germany.
$$PRO - The variable to store the corresponding province in Germany.
Any of the Parameters can be omitted to have the result been placed on TOS.
Example
'***********************************
' TST.-Sample
'***********************************
' Generate and retrieve a matching set of postal code, town, and province from Germany
TST.Get PLZ Town Province|$$PLZ|$$TWN|$$PRO
DBP.A possible ZIP is: $$PLZ Town: $$TWN in $$PRO
ENR.
Result:
A possible ZIP is: 78462 Town: Konstanz in Baden-Württemberg
Remarks
-
Limitations:
-
See also:
•