2013-02-26

AngelaSmith - Creating Test Data

Yesterday I blogged about a rapid data prototyping tool called AngelaSmith which permits building realistic test data. Today I’m going to show you how to make some use of it. The first thing we need is a model on which to operate. Ever since I read the license agreement for Java 1.1 which explicitly prohibited the development of software related to airplanes I’ve liked example code which references airplanes. I even had a text book at one point in which all the examples were related to the flying of planes. I can’t remember which book it was but it might have been an old Deitelbook.

Anyway let’s start with this model:

This can be filled with AngelaSmith

But if we print out the data we can see that Angela wasn’t quite smart enough to look at substrings of the field names to perform matches. That’s a shame and probably going to be a pull request.

Not great test dataNot great test data

I did have a good laugh at the idea of a pitchfork with a range of 58km. That’s a long pitchfork!

So we’re going to have to set up some custom rules for the data generation

For the most part we can lean on Jen(oh such witty and confusing naming) to do the population for us, but you can see that I used my own custom generation method for flight numbers because they’re not really standard.

Better generationBetter generation

Well that was pretty easy! Thanks, Angela, you’re the best.


comment: