File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes How to test the backend of GUI progams ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to test the backend of GUI progams ?" Watch "How to test the backend of GUI progams ?" New topic
Author

How to test the backend of GUI progams ?

Pamela Hendersen
Greenhorn

Joined: Mar 13, 2013
Posts: 13
The back-end of my GUI program is about 50% complete. It is already so "huge and complex" (already) that it cannot be tested using a console interface. That would involve programming too many complicated loops and such, which is a pain. I did test some small modules while coding, but I doubt if that will suffice. I guess that I will have to develop GUI along the way to test every feature after i create it. Is this the best way or is there a better way to test my code ?



Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19541
    
  16

To be honest, if you can't test the application without a GUI you have integrated too much of the application logic into the GUI code. It would have been better to have separate "engine" code that just gets triggered by the GUI.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to test the backend of GUI progams ?
 
Similar Threads
FBNS: Customer are searching db.db via what?
About booking GUI
Clearing JTextArea in EDT
How to Find EJB bound in WebSphere Server using Admin Console GUI
How do I kill a GUI thread without exiting JVM?