UI automation vs. Input classes (Keyboard, Mouse) AND How control patterns work?  
Author Message
Mark Asztalos





PostPosted: Microsoft UI Automation, UI automation vs. Input classes (Keyboard, Mouse) AND How control patterns work? Top

Hi!

As I read the windows sdk documentation, I saw the Input classes such as Keyboard, or Mouse classes which let the programmers to handle, trace the input events. I would like to write a simple UI tester application and as I read, I should use UI Automation. My question is: can I find somewhere a brief comparison of using the UIA and the Input classes for this purpose It is important, becouse probably handling all input messages (that the tested program gets from the OS - user) is more common than handling just specific events which are the features of the programming language. Or the UIA does the same, but hides it from the programmer

My other question would be:
I use UIA for UI testing, and I record the messages by handling the AutomationEvents. I would like to replay what had happened. I do the next: for example if it was an InvokeEvent (it is identified by the id of the AutomationEvent), then to replay it: on the current AutomationElement, I get the InvokePattern and call its Invoke method. Is it enough How can I know what happens in detail, when I call this function

Thanks for the answers in advance!
Mark Asztalos


Software Development for Windows Vista17