Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Test tool for event driven windows application
Hi,

Got a big event driven windows application. Events are created by hardware
and by users. The GUI is the most critical part of the application
(enabled/disabled controls, etc.). What would be the best tool to automate
testing of such an application?

TIA,
Gerard



Report this thread to moderator Post Follow-up to this message
Old Post
Gerard
05-02-05 09:02 AM


Re: Test tool for event driven windows application
Gerard wrote:

> Got a big event driven windows application. Events are created by hardware
> and by users. The GUI is the most critical part of the application
> (enabled/disabled controls, etc.). What would be the best tool to automate
> testing of such an application?

A technique called variously Logical User Interface, Representation Layer,
Presentation Layer, or Humble Dialog Box.

http://www.objectmentor.com/resourc...leDialogBox.pdf

Write a module that does everything your GUI does, but uses no GUI controls
whatsoever. Anything a user can do to the GUI, a programmer can do to the
module. If a user can click Submit, you have a Submit() button. If they can
click on an element in a list box, you can pull a List of objects and pass
one into a responding function.

Anything the GUI can do to a user, this module does to programmers. If the
GUI would disable that list box, then the programmer can detect the
disability. If the GUI can refresh its display automatically when new data
appears, the module can send a message using the Observer Design Pattern.

Now write the actual GUI, and make certain every function is as short as
possible. It should do nothing but instantly delegate to the equivalent
functionality in this wrapper module.

Now write automated tests that beat the snot out of this wrapper module.

--
Phlip
[url]http://www.c2.com/cgi/wiki?ZLand[/url]



Report this thread to moderator Post Follow-up to this message
Old Post
Phlip
05-02-05 09:02 AM


Re: Test tool for event driven windows application
Hi,



Nice answer, but we did program already and did separate GUI from business
rules and classes. The GUI is (quite) complicated so we need to test it and
not the business rules (UnitTest etc. already done).

Writing new code to test will be a lot of effort and results in disputes
whether the test is right or the original is wrong.

Any experience with:

QaRun,

WinRunner

AutomatedQA

???



TIA,

Gerard



"Phlip" <phlip_cpp@yahoo.com> wrote in message
news:Wojde.947$Yg4.485@newssvr17.news.prodigy.com...
> Gerard wrote:
> 
>
> A technique called variously Logical User Interface, Representation Layer,
> Presentation Layer, or Humble Dialog Box.
>
> http://www.objectmentor.com/resourc...leDialogBox.pdf
>
> Write a module that does everything your GUI does, but uses no GUI
> controls
> whatsoever. Anything a user can do to the GUI, a programmer can do to the
> module. If a user can click Submit, you have a Submit() button. If they
> can
> click on an element in a list box, you can pull a List of objects and pass
> one into a responding function.
>
> Anything the GUI can do to a user, this module does to programmers. If the
> GUI would disable that list box, then the programmer can detect the
> disability. If the GUI can refresh its display automatically when new data
> appears, the module can send a message using the Observer Design Pattern.
>
> Now write the actual GUI, and make certain every function is as short as
> possible. It should do nothing but instantly delegate to the equivalent
> functionality in this wrapper module.
>
> Now write automated tests that beat the snot out of this wrapper module.
>
> --
>  Phlip
>  [url]http://www.c2.com/cgi/wiki?ZLand[/url]
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Gerard
05-02-05 02:00 PM


Re: Test tool for event driven windows application
Gerard wrote:

> Nice answer, but we did program already and did separate GUI from business
> rules and classes. The GUI is (quite) complicated so we need to test it
and
> not the business rules (UnitTest etc. already done).

We are discussing 3 layers here - the GUI Layer (should be thin), the
Representation Layer, and the Logic Layer. You are confessing the GUI and
Representation Layers are coupled. Decouple.

> Writing new code to test will be a lot of effort and results in disputes
> whether the test is right or the original is wrong.

Any retrofitted tests will. The disputes are called "progress". Whoever has
an opinion about test veracity should directly collaborate to write the
tests.

> Any experience with:
>
> QaRun,
> WinRunner
> AutomatedQA
> ???

Others will point out how to use them. You don't need them because your GUI
most likely uses the most common architecture for desktops. Between creating
and displaying a window you can send data to controls, and fire their
events. So, write test cases directly to the GUI Layer.

Those tools are to make bosses think people who can't program can test.

--
Phlip
[url]http://www.c2.com/cgi/wiki?ZLand[/url]




Report this thread to moderator Post Follow-up to this message
Old Post
Phlip
05-02-05 09:04 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Software Testing archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 09:52 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.