|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Testing Commands > Testing Commands |
MiniRobotLanguage (MRL)
TST.Generate PhoneNumber
Randomly generate either a house (landline) or a mobile phone number
Intention
The TST.Generate Phone Number command is designed to generate a randomized phone number, which could either be a landline (house number) or a mobile number. This flexibility makes it ideal for a wide range of applications, including testing, simulations, and filling sample databases where diverse types of phone numbers are needed.
•Versatility in Number Type: Randomly selects between generating a mobile or a house phone number, offering a variety of testing scenarios.
•Realistic Formats: Ensures that the generated phone numbers adhere to realistic formatting, including area codes for landlines and prefix for mobile numbers, enhancing the authenticity of test data.
•Ease of Integration: With a straightforward command structure, integrating this function into scripts for automated testing or data generation is seamless.
The TST.Generate Phone Number command streamlines the process of obtaining phone numbers for testing or demonstration purposes, ensuring users have access to a broad spectrum of phone number types without manually creating them.
This command is invaluable for developers, testers, and data analysts who require a diverse set of phone numbers to validate forms, applications, or databases.
While the generated numbers mimic real-world formats, they are fabricated and not linked to actual phone services, making them suitable only for simulation or testing purposes.
The random nature of the command means it does not specifically target generating numbers based on geographical or carrier-specific criteria, which might be necessary for more specialized testing requirements.
Syntax
TST.Generate Phone Number[|P1]
Parameter Explanation
P1 - (optional) Is the "Ticket Number" of a running Parallel Robot or background Operation. It can be omitted then the last "Ticket Number" that was emitted is been taken.
IRS. can be nested to unlimited Depth, and they can also enclose Sub-Programm Calls or FEX. (Enumerations) to unlimited Depth.
Example
'***********************************
' TST.-Sample
'***********************************
' Generate a random phone number and store it in $$N01
TST.Generate Phone Number|$$N01
DBP.A random generated Phone Number is $$N01.
ENR.
Result:
A random generated Phone Number is (01043) 266 3386.
Remarks
-
Limitations:
-
See also:
•