Testing Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Testing Commands >

Testing Commands

TST.Generate Random IBAN

Previous Top Next


MiniRobotLanguage (MRL)

 

TST.Generate Random IBAN

Generate random IBAN

 

 

Intention

 

The TST.Generate Random IBAN command is designed to create a randomized International Bank Account Number (IBAN) for a specified country.
This functionality is invaluable for testing financial applications, validating form inputs, or any scenario where accurate, country-specific IBAN formats are required.

 

Country-Specific Formats: Generates IBANs that adhere to the specific format and checksum requirements of the selected country, ensuring realistic and valid bank account numbers.

Flexibility in Country Selection: Allows for the generation of IBANs from a predetermined country or randomly selects a country when none is specified, enhancing the utility for global testing purposes.

Broad Coverage: With support for 54 country codes, this command covers a significant portion of the global banking system, making it a versatile tool for international application testing.

 

Utilizing the TST.Generate Random IBAN command, developers and testers can ensure their applications correctly handle various formats of IBANs, improving financial data processing and validation routines.

This command streamlines the creation of test data for financial systems, reducing the effort required to manually craft IBANs for different countries.

 
While the generated IBANs are structurally valid, they do not correspond to actual bank accounts and should not be used for real transactions.

The command focuses on format validity and does not account for specific banking rules that might apply within each country beyond the IBAN structure.

 

' Generate a random IBAN for Germany and store it in $$N01

TST.Generate Random IBAN|DE|$$N01

DBP.A random generated IBAN is $$N01.

ENR.

 

    Result:

A random generated IBAN is DE33613086258511454753.

 

 

Supported Country Codes
The command supports the generation of IBANs for the following countries, identified by their respective two-letter country codes:

 

  Here's a list of IBAN country codes along with their corresponding country names:

 

1. DE - Germany

2. NO - Norway

3. BE - Belgium

4. DK - Denmark

5. FI - Finland

6. NL - Netherlands

7. SI - Slovenia

8. AT - Austria

9. EE - Estonia

10. LT - Lithuania

11. LU - Luxembourg

12. CH - Switzerland

13. CR - Costa Rica

14. CV - Cape Verde

15. CY - Cyprus

16. LI - Liechtenstein

17. LV - Latvia

18. MC - Monaco

19. ME - Montenegro

20. SM - San Marino

21. ST - São Tomé and Príncipe

22. VA - Vatican City

23. AD - Andorra

24. AE - United Arab Emirates

25. AL - Albania

26. AZ - Azerbaijan

27. BA - Bosnia and Herzegovina

28. BH - Bahrain

29. DO - Dominican Republic

30. GB - United Kingdom

31. GE - Georgia

32. GI - Gibraltar

33. IL - Israel

34. IQ - Iraq

35. IS - Iceland

36. IT - Italy

37. JO - Jordan

38. KW - Kuwait

39. KZ - Kazakhstan

40. LB - Lebanon

41. MD - Moldova

42. MK - North Macedonia

43. MR - Mauritania

44. MT - Malta

45. MU - Mauritius

46. PK - Pakistan

47. PS - Palestine

48. QA - Qatar

49. RS - Serbia

50. SA - Saudi Arabia

51. SC - Seychelles

52. SE - Sweden

53. TR - Turkey

54. VG - British Virgin Islands

 

 

Syntax

 

 

TST.Generate Random IBAN|[P1]|P2

 

 

Parameter Explanation

 

P1 - An optional country code indicating the country for which to generate the IBAN. If this parameter is left empty, the command randomly selects a country from the supported list.

P2 - The variable in which the generated IBAN is stored.

 

 

 

 

Example

 

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

' TST.-Sample

'***********************************
' Generate a random IBAN for Germany and store it in $$N01

TST.Generate Random IBAN|DE|$$N01

DBP.A random generated IBAN is $$N01.

 

' Generate a random IBAN for a randomly selected country and store it in $$N01

TST.Generate Random IBAN||$$N01

DBP.A random generated IBAN is $$N01.

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: