Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Hook into running XAML window for unit testing gui ?

 
 
Old 02-23-2006   #1 (permalink)
Peter Fitzgibbons


 
 

Hook into running XAML window for unit testing gui ?

Hello all,

I would like to know how to hook into a running XAML window to unit test the
gui/events?
Are there some examples on getting the running object, and also invoking
events and/or controlling the UI via remote windows calls (a-la NUnitForms) ?

Thank you all!
Xaml looks great so far! (Jan 06 CTP, about to install Feb06 CTP).



My System SpecsSystem Spec
Old 02-23-2006   #2 (permalink)
Drew Marsh


 
 

Re: Hook into running XAML window for unit testing gui ?

Peter Fitzgibbons wrote:

> I would like to know how to hook into a running XAML window to unit
> test the
> gui/events?
> Are there some examples on getting the running object, and also
> invoking
> events and/or controlling the UI via remote windows calls (a-la
> NUnitForms) ?


Have a look at the System.Windows.Automation namespace[1] and this article[2]
to get started.

HTH,
Drew

[1] http://windowssdk.msdn.microsoft.com...Automation.asp
[2] http://windowssdk.msdn.microsoft.com...d5d998770b.asp
___________________________________
Drew Marsh
Chief Software Architect
Mimeo.com, Inc. - http://www.mimeo.com
Microsoft C# / WPF MVP
Weblog - http://blog.hackedbrain.com/


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
MoveNext() method not covered by unit testing? .NET General
"appRoot" Error When Unit Testing in TFS 2008 .NET General
Unit Testing - The Merit of Writing Tests First is Questioned .NET General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46