Generate Random Data CFBuilder Extension

I just released (at RIAForge naturally: a new ColdFusion Builder Extension: Generate Random Data. The idea behind the extension is simple. Many times I have need of a ColdFusion query, but don't have the actual data itself. I may be building a service component, or perhaps writing a simple test for a blog entry. I typically do something like so:

<cfset q = queryNew("id,name")> <cfloop index="x" from="1" to="10"> <cfset queryAddRow(q)> <cfset querySetCell(q, "id", x)> <cfset querySetCell(q, "name", "Random X")> </cfloop>

And while this "works", I had a hunch ColdFusion Builder would allow me to do it even quicker. With that idea in mind, I quickly whipped up the following extension. Click the image below to watch a quick video:

The extension makes use of both jQuery and the jQuery Validation library. Right now it's pretty simple. You can generate queries with random names, random numbers, random values from a list, and random booleans. If folks have ideas on how to extend this, just file an enhancement request at the RIAForge project.

So.... useful?

Like This?

If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can also subscribe to the email feed to get notified of new posts.