Creating test data in Mendix applications can become a very time-consuming activity, especially for large enterprise applications.
For simple entities, creating a few records manually is easy. However, when entities have multiple associations and dependencies, developers and testers need to manually create records in the correct sequence.
For example:
Customer → Orders → Order Lines → Products
To test an Order Management application, we may need to first create Customers, then Products, then Orders, and finally Order Lines while maintaining all the required associations.
For performance testing, the problem becomes even bigger when we need thousands or millions of realistic records.
Provide a built-in Test Data Generator in Mendix Studio Pro.
The developer could select one or more entities and specify the amount of data required.
For example:
Generate 10,000 Customers
Generate 50,000 Orders
Generate 200,000 Order Lines
Mendix could analyze the domain model and automatically understand the associations and dependencies between the entities.
It could then generate consistent and valid related data.
If the domain model is:
Customer | | 1 - * ↓ Order | | 1 - * ↓ OrderLine | | * - 1 ↓ Product
The generator could automatically create:
Instead of creating completely random independent records.
The generator could provide options such as:
This could significantly reduce the manual effort required for:
It would also make it much easier for developers to reproduce scenarios that require a large amount of interconnected data.
Instead of spending hours manually preparing data for a performance test, a developer could simply configure:
Customers: 10,000 Orders: 50,000 Order Lines: 200,000 Products: 5,000
and let Mendix generate the complete dataset while respecting the domain model relationships.
The main benefit would be reducing repetitive test-data preparation and allowing developers/testers to spend more time on actual testing rather than manually creating data.
A domain-model-aware generator would also be more useful than simply generating random records because it would understand the relationships and dependencies within the Mendix application.
Would be great to see something like this built directly into Mendix Studio Pro.