The Magazine for Professional Testerswww.testingexperience.com
version you can only create a maximum of 200 records at a time,whereas with the locally installed version you may reach 5000 re-cords at a time.To install it locally on your machine only a few simple steps needto be performed. By clicking on the download tab at the website you can see what the system requirements are:• MySQL 4+• PHP 4+• Any modern, JS-enabled browserTo fulll these requirements we installed
(www.wampserver.com), another free, open-source project, which al-lows us to run Data Generator and all its features. After installingWampServer just a couple more steps need to be performed. Tostart running Data Generator locally on your machine, a simpleve- step installation procedure is available via the download tabof the application‘s website. For
version 2.1, whichis the version we used in our projects, the required steps are:1. Download the zip-le at the top and unzip the contents lo-cally on your computer.2. In the zip-le, you‘ll nd a le in the /install folder nameddb_install.sql. This contains all the SQL to create the MySQLtables and raw data used by the Data Generator (names, ci-ties, provinces, states, countries, etc). You will need to execu-te these statements on your database through any databaseaccess tool, such as phpMyAdmin.3. Edit the global/library.php le. At the top, you‘ll see a sec-tion where you need to enter your MySQL database settings.Note: if you choose to change the database prex, make sure you rename the tables after running the SQL in #2!4. Upload all les to your web server.5. Upload it to your web browser and get to work.After this small procedure, you can start using
.As we will describe in the next section, it comes with a pre-loadeddatabase that might help you in several test scenarios.
Explaining its main features
First, I will describe how we can use the pre-loaded user databa-se to generate data. Almost all applications have a user manage-ment feature that uses data like name, phone, e-mail, address,etc. It is also common that at some point during the project lifecycle we need to use a larger amount of user data, in order to as-sess how the system behaves in dierent test scenarios that mayfocus on features like response time, data integrity, general userinterface, and many others.On the Data Generator main screen you will be able to dene oneach row a data type for each column of the table that you wantto populate. For each row, the user can dene a column title andits data type along with its specic settings. Dierent types of pre-loaded data types will be available like: name, phone/fax, e-mail, city, and others. These data types allow us to solve dierentissues, by attending various test scenarios.
Image 2 - Available data typesImage 3 - Dates / pre-dened formats