|
I have yet to find a way to creat nice to use GUI unit tests. The closest I came to it is with HttpUnit for Junit. That module, parses the html page in such a way that you can then programmatically (in Java) access the objects defined in it, make sure they have their proper default values, etc.
Would the use of GTK# help one build unit tests for the GUI interface? I’m not sure how easy/hard it is to access the gui components of GTK# from a library, heck I’m not even sure you can render GTK# to a virtual window (i.e. don’t display it).
I was thinking something that would enable me to start the GUI application, make sure some controls are there, enable me to input values into them and make sure that a new window is opened or that some controls have now a new value.
Anyway, this might be too cumbersome to be useful. Still, I’d like to have a fully automated build process that reports on the execution of the unit tests even if my project is GUI based or HTTP based.
Phil |
