Re: [SWTBot-users] Automate creating test data
Brought to you by:
kpadegaonkar
|
From: Somesh S. <som...@gm...> - 2008-10-27 15:28:17
|
You could use the concept of theories in junit 4 to crate multiple datasets for 1 test. But you would still need to create the dataset. Jmock is another way of creating mock objects that you can pass around. HTH. Sent from my iPhone On Oct 27, 2008, at 3:36 AM, Hans Schwaebli <han...@ya...> wrote: > For performing tests (manual or automated) one needs test data. How > can creation of test data be automated? > > I think it is possible to automate this by analysing the model with > its validation rules. This would save a lot of time. > > A little example: A business object Article which contains an > attribute "name" and the rule that the name must not be longer than > 40 characters. The automation could then create a Article with a > name containing 39 characters, one which contains an empty String > and one where name is NULL. > > Does someone know any tool for this, ideally free and open source? > > --- > ---------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great prizes > Grand prize is a trip for two to an Open Source event anywhere in > the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > SWTBot-users mailing list > SWT...@li... > https://lists.sourceforge.net/lists/listinfo/swtbot-users > http://swtbot.org/ - a functional testing tool for SWT/Eclipse > |