licenseDocument

Mock Jutsu HOW-TO | EN

In the modern landscape of software engineering, securing realistic identity documentation for testing purposes is a recurring challenge for developers and QA professionals alike. The mock-jutsu library addresses this hurdle through its specialized license function, a robust utility designed to generate synthetic driver's license numbers. Categorized under document-related utilities, this function provides a reliable stream of test data that mirrors the structure of official identification without the privacy risks or legal complications associated with using real personal information. By integrating this tool into your development pipeline, you can ensure that your application handles sensitive document fields with the necessary precision and compliance required for modern data privacy standards.

The license function in mock-jutsu utilizes a sophisticated randomization algorithm that adheres to generic document standards. While real-world driver's licenses vary significantly across different jurisdictions, this function produces a versatile six-digit format—such as 654321—that serves as a high-fidelity placeholder for various software environments. This standardized approach allows developers to simulate document issuance logic and validate input fields without needing to account for every regional variation during the early stages of development. Whether you are building a vehicle rental platform, a secure banking portal, or a government services application, having access to consistent mock data allows for rigorous stress testing of input masks and database constraints, ensuring your backend logic remains robust against a wide array of potential character combinations.

One of the primary benefits of using mock-jutsu is its cross-platform accessibility, which caters to diverse technical workflows. Developers can invoke the license generator directly through the command line using the mockjutsu generate license command for quick data needs, or integrate it into automated Python scripts via the jutsu.generate('license') method. For performance testers and DevOps engineers, the library even offers a dedicated JMeter function, ${__mockjutsu(license,)}, making it an essential component for end-to-end quality assurance. This versatility significantly reduces the time spent on manual data entry and allows engineering teams to focus on core feature development, effectively accelerating the overall software development lifecycle.

Beyond simple form filling, this mock data is invaluable for testing complex business logic, such as identity verification workflows or document indexing services. By populating your staging environment with diverse test data, you can uncover edge cases in search algorithms and data retrieval processes that might otherwise go unnoticed until a production release. Ultimately, mock-jutsu empowers teams to build more resilient systems by providing a high-fidelity simulation of user-provided documentation, ensuring that every license field in your database is prepared for real-world interaction and high-volume traffic.

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

Parameters

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

Other Languages