es_cccIntlIDs

Mock Jutsu HOW-TO | UK

The es_ccc function within the mock-jutsu library is a specialised tool designed for developers and QA engineers who require realistic Spanish bank account numbers for their software environments. Standing for Código Cuenta Cliente, the CCC is the traditional account identifier used in Spain. By using mock-jutsu to generate this specific type of mock data, teams can ensure their applications handle Spanish financial records with precision. Each generated value follows the strict 20-digit format, typically represented as a sequence of four digits for the bank code, four for the branch, two control digits, and a final ten-digit account number.

Accuracy is paramount when dealing with financial test data, which is why the es_ccc generator adheres strictly to the MOD-11 checksum algorithm. The two control digits in the middle of the sequence are not arbitrary; they are mathematically calculated based on the preceding bank and branch codes, as well as the succeeding account number. This mathematical validity is crucial for bypassing front-end validation scripts and back-end database constraints that verify account integrity. By integrating es_ccc into your workflow, you eliminate the risk of invalid data causing false negatives during automated testing cycles.

Flexibility is a core advantage of the mock-jutsu framework. Developers can invoke the es_ccc function through multiple interfaces, whether they are writing unit tests in Python using the jutsu.generate method, performing quick data seeding via the command-line interface, or conducting load testing in Apache JMeter with the library's dedicated plugin. This cross-platform compatibility ensures that consistent, valid test data is available at every stage of the software development lifecycle, from initial prototyping to rigorous performance evaluation.

Utilising the es_ccc function is particularly beneficial for testing edge cases in banking platforms, such as input masking, form validation, and data transformation logic. Beyond simple verification, it allows teams to simulate complex financial ecosystems without compromising sensitive real-world information or breaching privacy regulations. Ultimately, mock-jutsu empowers developers to build more robust, compliant, and reliable financial software by providing high-fidelity mock data that mirrors the complexity of the Spanish banking system.

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

Parameters

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

Other Languages