mersisIdentity

Mock Jutsu HOW-TO | UK

The Turkish Central Registry System, commonly known as MERSIS, serves as the primary identification method for legal entities and commercial enterprises within Turkey. When building software that interacts with Turkish corporate records, developers must ensure their systems can handle these unique 16-digit identifiers accurately. The mock-jutsu library provides a specialised mersis function within its Identity category to facilitate the generation of realistic test data. By producing values that mirror the format of authentic registration numbers, mock-jutsu enables engineers to validate input logic and database integrity without relying on sensitive, real-world information.

Using the mersis generator ensures that your test data adheres to the expected structural standards required by Turkish regulatory frameworks. This is particularly beneficial for quality assurance teams who need to populate staging environments with high-fidelity mock data. Rather than manually creating arbitrary strings, developers can use mock-jutsu to generate 16-digit sequences that pass front-end validation rules and back-end schema constraints. This technical accuracy is vital for testing edge cases, such as digit length verification, character masking in user interfaces, and the correct indexing of corporate records in high-performance databases.

One of the primary advantages of mock-jutsu is its versatility across different development environments. Whether you are writing unit tests in Python, performing bulk data generation via the CLI, or conducting load testing with JMeter, the mersis function is easily accessible. For instance, a simple call to jutsu.generate('mersis') integrates seamlessly into Python-based automation scripts, while the JMeter syntax allows for the dynamic injection of identifiers during API stress tests. This flexibility ensures that developers can maintain a consistent data strategy across the entire software development lifecycle, from initial prototyping to final pre-production checks.

Ultimately, incorporating standardised mersis generation into your workflow enhances both productivity and data privacy. By leveraging mock-jutsu, organisations can avoid the legal and ethical risks associated with using genuine corporate data in non-production environments. The ability to generate vast quantities of unique, structured test data on demand allows for more robust testing of CRM systems, financial platforms, and e-government portals. This optimised approach not only accelerates the delivery of features but also ensures that applications are fully prepared to handle the complexities of the Turkish commercial registry system once they go live.

CLI Usage
mockjutsu generate mersismockjutsu bulk mersis --count 10mockjutsu export mersis --count 10 --format jsonmockjutsu export mersis --count 10 --format csvmockjutsu export mersis --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate mersis --maskmockjutsu bulk mersis --count 5 --mask
Python API
from mockjutsu import jutsujutsu.generate('mersis')jutsu.bulk('mersis', count=10)jutsu.template(['mersis'], count=5)# mask=True: regulation-compliant outputjutsu.generate('mersis', mask=True)jutsu.bulk('mersis', count=5, mask=True)
JMeter
${__mockjutsu_identity(mersis)}# JMeter Function: __mockjutsu_identity# Parameter 1: mersis# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_identity(mersis,mask)}
REST API
GET /generate/mersis# → {"type":"mersis","result":"...","status":"ok"}GET /bulk/mersis?count=10POST /template {"types":["mersis"],"count":1}# mask=true: regulation-compliant outputGET /generate/mersis?mask=trueGET /bulk/mersis?count=5&mask=true

Parameters

Parameter Values Description
--mask true | false Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…)

Other Languages