plateContactLocale Aware

Mock Jutsu HOW-TO | UK

The plate function within the mock-jutsu library provides developers with a streamlined method for generating realistic vehicle registration identifiers. As a core component of the Contact category, this feature is essential for those building systems that require authentic-looking automotive data without the legal or privacy risks associated with using real-world information. Whether you are working on a logistics platform or a parking management system, having access to high-quality test data is crucial for ensuring your validation logic remains robust and reliable during the development lifecycle.

To ensure maximum realism, mock-jutsu employs specific regional standards and alphanumeric patterns when generating each plate. For instance, the library can produce formats like "34 ABC 123," which mirrors standard European or regional styles, ensuring that the generated mock data adheres to the expected length and character constraints of your database schema. This algorithmic approach prevents common integration errors that arise when using purely random strings, as the output consistently mimics the structure and syntax of genuine government-issued identifiers.

Testing scenarios for the plate function are diverse, ranging from stress-testing automated number plate recognition (ANPR) software to simulating high-concurrency database entries in insurance claim portals or car rental applications. Developers can leverage this tool across various environments to maintain consistency. The function is easily accessible via the CLI using "mockjutsu generate plate", integrated directly into Python scripts with "jutsu.generate('plate')", or even utilised within performance testing suites via the JMeter syntax "${__mockjutsu(plate,)}". This cross-platform compatibility ensures that your testing workflows remain synchronised from the initial prototyping phase through to final quality assurance.

Beyond technical accuracy, using mock-jutsu for vehicle data generation offers significant workflow benefits. It eliminates the manual effort of crafting large datasets, allowing engineering teams to focus on core feature development and complex edge-case handling. By incorporating these dynamic identifiers into your CI/CD pipelines, you can automate complex validation tests and improve the overall resilience of your software. Ultimately, the plate function empowers developers to build more reliable applications by providing a dependable source of structured test data that behaves exactly like its real-world counterpart.

CLI Usage
mockjutsu generate plate --locale TRmockjutsu generate plate --locale DEmockjutsu bulk plate --count 10 --locale TRmockjutsu export plate --count 10 --format json --locale TRmockjutsu export plate --count 10 --format csv --locale TRmockjutsu export plate --count 10 --format sql --locale TR# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate plate --locale TR --maskmockjutsu bulk plate --count 5 --locale TR --mask
Python API
from mockjutsu import jutsujutsu.generate('plate', locale='TR')jutsu.bulk('plate', count=10, locale='TR')jutsu.template(['plate'], count=5, locale='TR')# mask=True: regulation-compliant outputjutsu.generate('plate', locale='TR', mask=True)jutsu.bulk('plate', count=5, locale='TR', mask=True)
JMeter
${__mockjutsu_comm(plate,TR)}# JMeter Function: __mockjutsu_comm# Parameter 1: plate# Parameter 2: locale (TR/UK/US/DE/FR/RU)${__mockjutsu_comm(plate,DE)}# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_comm(plate,TR,mask)}
REST API
GET /generate/plate?locale=TR# → {"type":"plate","result":"...","status":"ok"}GET /bulk/plate?count=10&locale=TRPOST /template {"types":["plate"],"count":1,"locale":"TR"}# mask=true: regulation-compliant outputGET /generate/plate?locale=TR&mask=trueGET /bulk/plate?count=5&locale=TR&mask=true

Parameters

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…)

Other Languages