dcsimg
How can I test GUI Application ?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dmitry_Zakharov
Posted On:   Tuesday, November 19, 2002 09:04 PM

As far as I know one of paradigm of XP is making test before making class. And how can I follow the rule if my projects is big GUI application ?


I think that creating automatic test for testing applet, AWT/Swing application is very difficult. Does anybody have experience in XP project which deals with graphics ?

Re: How can I test GUI Application ?

Posted By:   Anonymous  
Posted On:   Thursday, November 21, 2002 01:15 AM

The main strategy is to make the actual GUI code as thin and dumb as possible, using the Model View Controler or Model View Presenter pattern. So, the vast majority of your tests shouldn't need to know about the GUI at all.

If you still feel the need to test the GUI, you can than test it in isolation - it might still need some thinking, but should be possible.

See http://www.xp123.com/xplor/xp0001/index.shtml for an example.

Did that help?

About | Sitemap | Contact