Re: [TFUI] Testing WinForms

"Stefan Lieser" <[email protected]> Fri, 6 Jan 2006 16:16:41 +0100
Newsgroups gmane.comp.programming.test-first-user-interfaces
Message-ID <066701c612d4$3321fcf0$0cc8a8c0@slieser>
Hello Dan,

>> How do you make sure that the data entered into a form is propagated to
>> your business domain?
>
>
> If I test like a user I need to see if the data is propagated into the
> layers below as a user could. Entering some text into a field, should
> probably have some inpact in another screen and I could checkk there if
> that happened.

Fully agreed. You make an end to end test. But often it is necessary to test 
at a finer granularity. Anyway. My main problem was testing the UI by 
simulating keyboard and mouse.

> I think NUnitForms already supports this trough KeysController
> (http://cvs.sourceforge.net/viewcvs.py/nunitforms/NUnitForms/source/NUnitForms/KeyboardController.cs?rev=1.8&view=auto)
> but I have never investigated.

It does not work in all circumstances. Furthermore if you use NUnitForms for 
example on a TextBox and write

myBoxTester.Enter("bla");

I would expect that NUnitForms "types" the text into the TextBox control so 
that all events are fired. Instead NUnitForms sets the TextBox.Text 
property.

> In my belief it is much simpler to verify
> the two scenario's by hand then writing a test.

Yes, if you have to test it only once :-))


Sincerely,
Stefan Lieser



To unsubscribe, email:
TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/TestFirstUserInterfaces/

<*> To unsubscribe from this group, send an email to:
    TestFirstUserInterfaces-unsubscribe-hHKSG33TihhbjbujkaE4pw@public.gmane.org

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/