Freitag, 15. Januar 2010

White:UI Automatical Test Tool

(http://white.codeplex.com/)

1.For third party controls, verify whether they are supported by UIA by using UIAutomationVerify or UISpy.

2.White uses UI Automation API (UIA), to find controls on a window. There is two ways to find a UIItems: finding directly and performing action, or finding based on
SearchCriteria.
The position of UIItem is saved in XML file.

3.UIItem Identification
Click

4.How to call the Controls
Click

5.Concept
WFP:Windows Presentation Foundation

6.White is better, because it try to avoid Thread.Sleep by using Wait handling

7.For third defined control
Custom UI Item

8.Example of Test Cases
Click
a.)Because the setup and teardown is same in this test and Customer Create Test and mostl like common to most of the other tests, it is extracted into the base class.

Tipps for installation:
add reference package(.dll) into visual studio.

Useful Blogs:
http://blogs.msdn.com/john_daddamio/archive/2008/04/04/testing-wpf-applications-with-the-white-ui-test-framework.aspx
http://igorbrejc.net/uncategorized/using-white-to-test-kosmos-gui
http://blog.benhall.me.uk/2008/02/project-white-automated-ui-testing.html

For automatical testing, the automatical test report can be produced. This makes a greate sense for customers.

Keine Kommentare: