In the global telecommunications sector, the Integrated Circuit Card Identifier, or ICCID, serves as a unique serial number for SIM cards. When building or testing mobile applications, billing systems, or network management tools, developers often require high-quality test data that mimics real-world identifiers without compromising security or privacy. The mock-jutsu library provides a robust solution for this through its dedicated iccid function, enabling the programmatic generation of these critical identifiers for a wide variety of development environments and testing frameworks.
Every iccid generated by mock-jutsu adheres to international standards, typically consisting of up to 19 or 20 digits. The library ensures that the generated mock data follows the correct structural format, starting with the Major Industry Identifier (89 for telecommunications), followed by the country code, issuer identifier, and the individual account identification number. Crucially, the final digit is calculated using the Luhn algorithm, a checksum formula used to validate a variety of identification numbers. This meticulous attention to detail ensures that the generated strings pass through system validation logic just like genuine SIM card identifiers, preventing false negatives during the QA process.
Integrating this functionality into your workflow is straightforward, whether you are working in a local terminal or a complex automation suite. Developers can quickly produce values via the CLI using the command "mockjutsu generate iccid", or incorporate the logic directly into Python scripts with "jutsu.generate('iccid')". For performance testers, the library also supports JMeter integration via the "${__mockjutsu(iccid,)}" syntax. This versatility makes it an indispensable tool for populating databases, testing API endpoints, or simulating bulk SIM provisioning processes during the software development lifecycle.
Utilising mock-jutsu for iccid generation offers significant benefits, particularly when testing edge cases in telecommunications software. By using realistic test data, teams can identify potential issues in database indexing, UI field validation, and backend processing before they reach production. Furthermore, because the library generates non-sensitive but structurally accurate data, it helps organisations maintain compliance with data protection regulations while ensuring that their testing environments remain as close to reality as possible.
mockjutsu generate iccid --locale TRmockjutsu generate iccid --locale DEmockjutsu bulk iccid --count 10 --locale TRmockjutsu export iccid --count 10 --format json --locale TRmockjutsu export iccid --count 10 --format csv --locale TRmockjutsu export iccid --count 10 --format sql --locale TR# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate iccid --locale TR --maskmockjutsu bulk iccid --count 5 --locale TR --maskfrom mockjutsu import jutsujutsu.generate('iccid', locale='TR')jutsu.bulk('iccid', count=10, locale='TR')jutsu.template(['iccid'], count=5, locale='TR')# mask=True: regulation-compliant outputjutsu.generate('iccid', locale='TR', mask=True)jutsu.bulk('iccid', count=5, locale='TR', mask=True)${__mockjutsu_telecom(iccid,TR)}# JMeter Function: __mockjutsu_telecom# Parameter 1: iccid# Parameter 2: locale (TR/UK/US/DE/FR/RU)${__mockjutsu_telecom(iccid,DE)}# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_telecom(iccid,TR,mask)}GET /generate/iccid?locale=TR# → {"type":"iccid","result":"...","status":"ok"}GET /bulk/iccid?count=10&locale=TRPOST /template {"types":["iccid"],"count":1,"locale":"TR"}# mask=true: regulation-compliant outputGET /generate/iccid?locale=TR&mask=trueGET /bulk/iccid?count=5&locale=TR&mask=true| Parameter | Values | Description |
|---|---|---|
| --locale | TR|UK|US|DE|FR|RU | Region / locale for locale-aware output |
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |