[Java-gnome-developer] java-gnome and 'acceptance tests'
Brought to you by:
afcowie
From: Sean C. <exc...@gm...> - 2005-02-13 02:19:29
|
Hey there, I'm working on a project called JetGet, a download manager written in java-gnome. I recently added a link to it on the java-gnome screenshots page. My post now, is to let you know I've an AT (acceptance test) framework in place for java-gnome in JetGet. AT's are executable text documents that specify the funcionality of a program, and can be written by customers, designers, testers or indeed nearly anybody because they are written in almost plain english. My framework interprets the document and creates a junit test suite which either passes or fails depending on wheither the AT passes or fails. (so integration with eclipse/intellij etc.. is very nice) So, for example... take this application: http://www.thecentric.com/images/jetget4.png This AT successfully passes for this application: TestTableIsEmpty downloadTable true UserSelectsMenuItem mnuNewDownload UserInputsText txtUrl http://www.thecentric.com/ UserInputsText txtSaveAs /home/sean/thecentric.index.html UserClicksButton btnOkButton TestTableIsEmpty downloadTable false TestTableRowItem downloadTable 0 "/home/sean/thecentric.index.html" "http://www.thecentric.com/" "5 K" "0.0%" The AT syntax is generally VERB CONTROLNAME PARAMETERS... This has many advantages over simply 'unit testing'. In commercial applications it lets you potentially put the owness on the customer to specify required functionality through AT's. It also gives you a one button click platform testing and regression testing. Anyone think this may be useful to them? Cheers Sean |