my dog learned polymorphism*
The moose likes Testing and the fly likes Does GenRocket make fuzz testing easier? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Does GenRocket make fuzz testing easier? " Watch "Does GenRocket make fuzz testing easier? " New topic
Author

Does GenRocket make fuzz testing easier?

atul khot
Ranch Hand

Joined: Jul 24, 2008
Posts: 37
Hi Gregg,
Greetings of the day!
In the past I used to write a Perl script to fuzz test...
http://en.wikipedia.org/wiki/Fuzz_testing

I remember testing a complex tree manipulation algorithm
(coded in TCL) - and we needed lots of trees ;-)
I wrote a perl script that generated the trees - using directories ;-) - the idea is to exploit
the randomness of a folder
(cd somedir; find .) | perl treeConverter.pl
However, though the test data comes cheap - and effective (I found obscure bugs lurking in regexes)...

Thinking back - the perl code kind of took some good time to develop (gave me an excuse to write some perl ;-)...

Jokes apart, would something like this be possible with GenRocket? This is complex - as the data is very specific to the code under test.
Assuming it is somehow possible, is there some scripting needed with GenRocket to achieve this?

Intriguing tool ;-) Thanks again for your time...

--- warm regards,
atul


--cheerio atul
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

atul,

Thanks for the question and the link on Fuzz Testing. Truth be told, this is the first I've heard of Fuzz Testing but after reading your link, I realized that it is what we would call Negative Testing. So the short answer to your question is absolutely!

GenRocket can produce any kind of data you need. However, it doesn't know the difference between bad data and good data. For example, if you had a system that accepted email addresses and you wanted to make sure your system rejected invalid email addresses, you would create a Scenario in GenRocket that generated invalid email addresses. Or you could have it generate valid and invalid email addresses. That way you could assert that your system is doing the right thing with the data it is receiving.

More specifically about your file structure example, we don't currently have any Receivers that create a file system. But it wouldn't be difficult to write one. In fact, don't be surprised if one shows up in the next couple of weeks. A lot of our Receivers do generate random data and we even provide a seed parameter in those cases.


GenRocket - Experts at Building Test Data
 
jQuery in Action, 2nd edition
 
subject: Does GenRocket make fuzz testing easier?
 
Similar Threads
GenRocket: Data Generation Platform Version 2 Released
how to create a tree structure in jsp
JTDS
GenRocket Launches its Test Data Generation Platform
Demand on PERL