Testing Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Testing Commands >

Testing Commands

TST.Get Random Town Zip

Previous Top Next


MiniRobotLanguage (MRL)

 

TST.Get Random Town Zip

Generates a random town name and its corresponding ZIP code

 

 

Intention

 

The TST.Get Random Town Zip command generates a random combination of a town name and its corresponding ZIP code from a predefined pool.

This feature is highly useful for testing applications that require valid geographic data, such as e-commerce platforms, delivery services, and location-based applications.

 

Accurate Pairing: Ensures that the town names and ZIP codes match accurately, reflecting realistic geographic data.

Diverse Data Pool: Utilizes a comprehensive pool of towns and ZIP codes, allowing for varied and authentic data generation.

Ease of Use: Simplifies the process of generating geographical data for testing, with straightforward command usage.

 

By leveraging the TST.Get Random Town Zip command, developers and testers can easily populate databases or forms with realistic and varied geographic data, enhancing testing accuracy and user experience testing.

This command aids in ensuring that applications correctly handle geographical information by providing a wide range of test cases.

 

While the generated town names and ZIP codes are based on real data, they are intended for testing purposes and may not encompass all possible variations or the most current information.

The focus is on providing a diverse set of data rather than exhaustive coverage of every geographic location, which might require additional data sources for comprehensive testing.

 

 

Syntax

 

 

TST.Get Random Town Zip|$$N01|$$N02

 

 

 

Parameter Explanation

 

P1 - (optional) The variable where the generated town name will be stored. If omitted TOS is used.

P2 - (optional) The  variable where the corresponding ZIP-Code will be stored.  If omitted TOS is used.

 

 

 

 

Example

 

'***********************************

' TST.-Sample

'***********************************
' Generate a random town name and its ZIP code

TST.Get Random Town Zip|$$N01|$$N02

DBP.A random Town and ZIP is $$N01 $$N02.

'

TST.Get Random Town Zip|$$N01|$$N02

DBP.A random Town and ZIP is $$N01 $$N02.

ENR.

 

Results:
A random Town and ZIP is 01097 Dresden.

A random Town and ZIP is 90489 Nürnberg.

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: