maybe writing a script that sets all the available properties of the btn, in various combinations, and then gets the property values and writes then to a log file or at least checks them for the expected result could be a start.
Also, the test script could even take snapshots of the btn after different visual properties have been set and save them for a quick visua lreview ...
Just some thoughts.
Ian
--__--__--
Message: 1 Date: Thu, 02 Oct 2003 23:26:55 +1000 From: Adrian Sutton <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: [FC-general] Unit Testing Reply-To: [EMAIL PROTECTED]
Not much interesting to report, just been improving the unit testing of FreeCard.
Here's a problem I'm facing:
How do you test a button?
There are certainly some aspects that are simple to test like checking that
when clicked it sends a mouseUp event and so on, but how do you test it's
reaction to all the different properties that can be set like font size and
font style. I'd really like to avoid doing a screen scrape of the button as
the look of the button is allowed to change it just has to represent the
styled text somehow.
Anyway, maybe someone out there has more experience with unit testing than I
do and can help me out.
Regards,
Adrian Sutton. ---------------------------------------------- Intencha "tomorrow's technology today" Ph: 38478913 0422236329 Suite 8/29 Oatland Crescent Holland Park West 4121 Australia QLD www.intencha.com
--__--__--
Message: 2 Date: Thu, 2 Oct 2003 15:33:05 -0700 (PDT) From: Alain Farmer <[EMAIL PROTECTED]> Subject: Re: [FC-general] Unit Testing To: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED]
Hello Adrian,
... unit testing of FreeCard. Here's a problem I'm facing: How do you test a button? There are certainly some aspects that are simple to test ... but how do you test it's reaction to all the different properties that can be set ...
I don't know. I do know that the GUI is not something that can be tested as readily as GUI-less code. I will ask the developers of the Montreal XP group about it, tonight, which is where I'm headed now. Stay tuned. :)
Alain
__________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com
--__--__--
_______________________________________________ Freecard-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freecard-general
End of Freecard-general Digest
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freecard-general mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freecard-general