Tuesday, 22 December 2015

Generate random test data for your requirements

Hi guys,

This post is about a tool that I have made which will help to make your life easier. I have made a web based tool to generate random data based on your provided specification. You can use this data in a variety of places: like for software testing purposes, development purposes or even just for some sample data for your spreadsheet.
The tool can be found here: http://apps.chatterjeebusinesses.com/

Let us say, we have a requirement, where you implement a method to validate whether a user name is unique or already exists for @ginger.com (hypothetical). So you need user names of the form
abcdef@ginger.com
qwe322@ginger.com,
etc. as an input

You basically need data where the first 6 digits are a combination of small English alphabets and digits and then it is followed by a constant value of @ginger.com.

We shall be specifying the above in the tool using the interactive UI.

1. You need to first specify these placeholder sequences (like small English alphabets and the digits). You need to specify your placeholder sequences, which will be part of the final sequences.
Here we specify two such sequences:

Digits which we define as 0123456789
and small-Alphabets which we define as abcdefghijklmnopqrstuvwxyz

Here is a screenshot that captures the same:


2. You would then require to define the sequence itself. As we can see our sequence will consist of two parts, a variable part consisting of 6 places of small letters or digits and then a constant value of @ginger.com.

We click the add button below the table to define our "sequence elements" and select both the small-alphabets and digits from the multi-select and specify 6 as the number of positions in the "Positions to replace" column. Next we define a constant sequence by checking the check box for "Is Constant Sequence" and then specifying the constant sequence as "@ginger.com"

Here is what it will look after putting the above values:

3. You are then presented with the option to specify whether you want random values for the placeholder sequences or you want sequential values. Finally you need to specify the number of sequences to be generated.

Here is a screenshot from the application with values filled in:


4. Finally, click the "generate" button to generate the data based on the above specifications, separated by comma, that you can copy to your input vector o a CSV file and start using.

Here is the snapshot:

The details that you enter will be tracked anonymously for quality improvement purposes. 
Hope you enjoy using the tool as much as I enjoyed building it. Please feel free to post your feedback on the tool or on my blog in the comments section here. I will be happy to be of any help!

Cheers!

No comments:

Post a Comment