White = UI Testing Framework

I've stumbled upon a great helper for Acceptance testing. Guys from ThoughtWorks published a .NET based library that enables easy creation of Acceptance testing using any .NET programming language, IDE and tools for developing tests/automation programs.

White enables testing of all rich client applications no matter if it's written in Win32, WinForm, WPF or SWT (java). White provides consistent object oriented API for all kinds of applications. Also it hides all the complexity of Microsoft's UIAutomation library and windows messages (on which it is based).

Simple test

Application app = Application.Launch("ExeName.exe");
Window LoginWindow = app.GetWindow("Login", InitializeOption.NoCache);

LoginWindow.Get<TextBox>("txtUsername").SetValue("username");
LoginWindow.Get<Button>("butLogin").Click();       

Window mainAppWin = app.GetWindow("MainForm", InitializeOption.NoCache);

Assert.IsNotNull(mainAppWin);
.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

 

You can download latest releases here

Published Wednesday, October 15, 2008 1:42 PM by Paki

Comments

# re: White = UI Testing Framework

Saturday, October 18, 2008 8:07 PM by janko

Wow, this looks better than WhatIN

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Powered by Community Server (Commercial Edition), by Telligent Systems