Scott Hanselman

PDC - ATTENTION ALL BLOGGERS! MEETING AT UNIVERSAL STUDIOS TONIGHT!

October 29, '03 Comments [0] Posted in PDC
Sponsored By

Yo!  There's a meeting at the Hollywood Grill inside of Universal Studios tonight at 8PM!  Check out the map of Universal.  We'll be meeting at #19 on the map, close to the entrance.  Pass it on! 

Blog and Trackback this post!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

PDC - Day 3: I ride a Segway

October 29, '03 Comments [3] Posted in PDC | Speaking
Sponsored By

Segway is at the PDC.  They are at the back of the exhibit floor letting people ride them.  Wow.  If I didn't need a Tablet PC...

Here are two videos of me on a Segway...I'm sure watching me ride it will be as thrilling for you as it was for me.  Check out the second one also, I ride with no hands!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Avalon - CLI307: Automated UI Testing

October 29, '03 Comments [4] Posted in PDC | NUnit
Sponsored By

If you've ever written a complex Windows UI you may have thought about ways to automate testing of these frameworks.  It was easier in the old days, when every control had a Window Handle that you could get ahold of.  Then more and more controls were owner draw, painted or just magic.  Regardless, automated UI testing is a hassle.

In the last few years I've been all over NUnit.  Just as my dentist says “if you don't floss, don't bother brushing,“ I say, “if you don't Unit Test, don't bother coding.“  But the exception is usually UI.

I'm in a talk on Avalon's Automated UI Testing Framework.

The Avalon UI Testing Framework appears to expose the UI components as an Object Model, that they are calling “Control Patterns” that expose the behavior of the controls.

He's brought a Command Prompt up.  He brought up the Windows Device Manager and clicked on it.

The Command Prompt then displays:

[Tree View] [Has Children]
Patterns = I:Selection

then he types “children” and the Device Manager tree expands.

The Command Prompt says:

Patterns - I:Invoke, IHierarchyItem. I:ExpandCollapse. I:SelectionItem

he also checks out a Combo Box and it says

Patterns - I:ExpandCollapse.

This means that rather than exposing the controls directly to the UI Testing code, it exposes the BEHAVIOR.  So, in OOP terms, a ComboBox and a Tree Control both implement “ExpandCollapse.”  But it's not that simplistic.  It's really about behavior.

Think about this:  If you were using a 3rd party control, you'd have to use that library's proprietary APIs to manipulate it.  With the Windows UI Automation framework the publisher of that control will expose behaviors.  If it's a funky Outlook Bar, perhaps it exposes ExpandCollapse also. 

You can query these controls for their behavior, ala “Reflection.”  Makes me think of how cool it was 8 or so years ago when I saw Spy++.  Except rather than presenting a physical “tree” this framework presents a logical, practical tree.  (The guy in front of me works for Infragistics.  I can only guess what awesome UI Controls they are going to build.  They kick much tush.)

The namespaces (alpha) are MSAvalong.Windows.Automation.  This framework supports ALL LEGACY controls, including VB, WinForms, Win32, etc.  There is also a complete Security Model so your testing software can't be used by the powers of darkness like .VBS files.

Along with this Logical Tree, you get all Properties, Events, Control Patterns and all Input (Mouse, Pen, Keyboard, etc).  Plus, it supports filtering, so you don't get messages shouting at you.

Rather than using the Class Name (and there are thousands) to identify a control and switch on how to test it, you think about the essense of the control and it's behavior.  For example, if you're testing software doesn't know what a control is, it asks it and hears “Oh, you're clickable? And expandable?” and you write tests appropriately.

(Awesome, he was just going to start a demo, but the screen saver locked his machine.  He can't remember the password...right now we're looking at a Longhorn security screen as he tries to log in...ouch...I know what this feels like.  He's going to reboot. Oy.)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

PDC - Day 3: Hump Day Begins? Not quite, it's 2am

October 29, '03 Comments [1] Posted in PDC
Sponsored By

Looks like they are getting the .NET Developer's Journal Radio Interviews up here.  My interview is in there, but the link is broken and the topic they list isn't at all what we talked about. :) Other than those small issues, you can certainly listen and enjoy.

On another note, had a lovely evening, here's a pic of me and Scoble.  You can tell by our positioning in the photo that we are very close friends.

Here's Chris Anderson, who I don't IM enough.  He really kicked bootay in the Keynote.  Kudos.

And here's the boys themselves, Early & Adopter.  If you don't know these guys, get to know them now.  They are well known for their now-classic interview with the .NET Framework 1.0 and .NET Framework 1.1Also, check out a sample chapter of their Whidbey book at the MSPress Booth.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

PDC Day 2.5 - The Rotating Restaurant

October 29, '03 Comments [0] Posted in PDC
Sponsored By

Chillin' at the top of the Westin with Shawn Wildermuth (ADO Guy), Michele Bustamante, Christian Weyer, Clemens Vasters, and Cathie Gero.  Best pretzels in L.A. 
Scott Hanselman - Corillian Corp
scott@corillian.com
--------------------------
Sent from my BlackBerry Wireless Handheld

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.