Doing stuff since the late 1970's
Generate lots of complex mock data for testing your projects - A tutorial for the Test Data Generator
When in need for test data, look no further.
The Test Data Generator can easily produce a large amount of test data for testing your projects.
What can it generate?
- Strings: Characters, words, sentences, paragraphs, email addresses, countries, social security numbers, Belgian ‘rijksregisternumbers’ and strings that will probably break web-forms
- Numbers: in all bases and ranges, gps coordinates, random bytes, time and dates, ip & MAC addresses, etc
- Smart Modifiers= trim, strip whitespace, ucfirst, add padding, etc
It's a lot, so let's get you started.
Test Case: I need mock data for a user database
Let's create mock data for a USER database containing user data in this format:
id(incremental), name, email address, country, registered, ip address
- Open 'Special’ in the menu on the left and click “increment ( $start )"
- Notice the increment function is displayed
- Double click the increment ( $start ) function in the tree menu to add it to the pattern bar.
- Notice the function is added to the pattern bar with a default starting value of 1000.
- Edit the starting value to match your needs.
- Test the pattern by clicking the Generate Data button.
- Notice 20 rows of data are generated in the output window starting at the value defined in the function.
- Now we need to add a random Username by double clicking the fname() function under People & Localisation. Click the Generate Data button.
- Notice data is generated in the output window but no ‘separator’ is present.
- Add a ; separator between the increment() and fname() functions. Click the Generate Data button.
- Let's add an e-mail address by adding a ; separator and double clicking the email() function. Click the Generate Data button.
- The pattern bar should look like this now: increment(1000);fname();email()
- Add the country() function, the datetime() function and the ip() function and remember to use ; separators
- The pattern bar now shows: increment(1000);fname();email();country();datetime();ip()
- Update the X input field from 20 to 20'000 and click that Generate Data button.
Congratulations, your computer just created 20'000 user accounts in milliseconds.