ui-automation

GUI Automation testing - Window handle questions

Our company is currently writing a GUI automation testing tool for compact framework applications. We have initially searched many tools but none of them was right for us. By using the tool you can record test-cases and group them together to test-suites. For every test-suite there is generated an application, which launches the applic...

How do read/interact with an old ActiveX SSUltraGrid using UIAutomation

I am investigating automated testing of an old Win32 application that used ActiveX controls. I am spiking use White (from Thougthworks) that uses Microsoft UIAutomation. I can find the AutomationElement related to the control, but how do I interact with it? Spy++ sees the grid control as a single window, so I can't talk to rows, column...

How to programmatically select popup menu item in Windows?

I have an app that I'm writing a little wizard for. It automated a small part of the app by moving the mouse to appropriate buttons, menus and clicking them so the user can watch. So far it moves the mouse to a tree item and sends a right-click. That pops up a menu via TrackPopupMenu. Next I move the mouse to the appropriate item on ...

Experiences with UI Automation and WPF

We are developing a rather large WPF based application and would like to include some automated UI testing in our test suite (which already contains a number of unit tests). The UI Automation Framework from Microsoft partly sounds like a perfect fit for programatically launching and interacting with the application in a test setup. Ho...

UIAutomation with ToolStripStatusLabel

I have a WinForms app, and I can't seem to access the text of a ToolStripStatusLabel through UIAutomation. Microsoft implies that the support for StatusStrips (and presumably items within them) is limited, but this seems like a basic enough use case that it should work. The control shows up with ControlType.Edit in UISpy, and appears to...

Is there Anyone who Successfully Implement UI Test Automation Regime using Microsoft UI Automation?

I am looking for an Automated UI test framework/ software tool. In the past I have been using TestComplete, and although it's a good piece of software, but the concept of GUI test automation was deemed to be sufficiently difficult that I wrote a few posts to complain about it. One of the problems with third party test automation tool i...

AccExplorer doesn't find new controls / thinks old controls are still around

Our application has many controls that are created dynamically. For example, a navigation pane contains groups of links that change as the user navigates through the app. The first time I use AccExplorer to select these links, it finds them perfectly. However, after I navigate to another page, AccExplorer can't see the links in the up...

How can I get a control's DataContext from an external application using UI Automation (and/or White)

I'm using White to drive the UI of a WPF app, and it's worked well so far. I'm at the point however, where I need to poke into the internal state of the app under test to check some conditions. Specifically, I have a DataGrid (from the WPFToolkit), which is databound to a List<MyBusinessObject>. Each row therefore has a DataContext of ...

CruiseControl.NET and UI automation testing

Hi I am using White as my framework for my UI automation testing. Can I use CruiseControl.NET (that is running as a service), to run the tests written by White? I have been trying for a whole day without success. The White framework requires interactive desktop. The error message I am getting is : "Couldn't find main window created for ...

How to Invoke Shortcuts Keys in the UI Automation? / .NET

I'm writing program to automate win32 form. I'm using Microsoft UI Automation library. I don't know how I can get and invoke predifined shortcuts key on that form. Now I simply get AutomationElement of the MenuItem and invoke click on that elemnt. Any solutions? Does anybody do this? ...

UI automation tool for a windows based WPF application with Record and Playback feauture

I am in the process of recommending an UI automation tool for a windows based WPF application in a company Which targets wide range of customers . The Application lives on a layer of WCF services for getting The data. The company is already having a small VBScript framework written specifically for Test Complete and is really not robust...

Assigning AutomationId to a ReportViewer control (hosted in WPF)

Hi, I'm trying to do some UI testing using the White UI Automation framework, but I've run into a bit of a challenge when trying to get a handle to a WinForms ReportViewer control. The application is WPF-based and so we use a WinFormsHost control to host the ReportViewer control. But when I try to set a AutomationProperties.AutomationId...

How to create a deploy package for "CodedUI Test" recorded in Visual Studio 2010 beta

A few test scenarios have been recorded using CODEDUI Test template for my web application in Visual Studio 2010 beta. These run from within the Visual Studio successfully without any issues. I was looking for instructions to create a deployment package. If you can guide me with this, I would be grateful. [Note please create a tag for...

Tutorial/References for Microsoft's UI Automation

Hi all, I recently implemented a program using the Microsoft Accessibility API, but have since been told that the new UI Automation has replaced it. Seems like it would be a good investment for next time to learn the newer tool for the job. So, what are the best references, and hopefully actual tutorials, for programming UI Automation?...

Silverlight UI Automation of a TextBlock

I'm trying to set up UI automation for Silverlight 3. I have a little test project that has 2 elements, a Button and a TextBlock. When you click the button the text is supposed to change. I have been able to simulate a button click and the text does correctly change on the UI. However I am having problems retrieving the text from t...

WPF: writing smoke tests using ViewModels

I am considering to write smoke tests for our WPF application. The question that I am faced is: should we use UI automation( or some other technology that creates a UI script), or is it good enough to use ViewModels directly (after all the viewmodels were created to make unit testing easier in a first place). ...

UI automated testing within SharePoint

Hi All, I'm looking for automated Functional Testing tools that can manipulate SharePoint sites, libraries, and documents thought the web interface. It needs to be extensible enough to handle any custom pieces that are added later. This does not need to be specifically for sharepoint, but it is necessary that it is to work within a ...

Exposing 3rd-party controls to the UI Automation framework.

I am using 3rd-party controls in my project. There are quite a few controls, like grid, whose cells are not accessible using UI Automation. I was wondering how can I go about making them accessible? ...

Where do I get UI Spy?

Where can I download UI Spy? ...

How do I show ItemStatus in UI Spy?

How do I show the ItemStatus property of an AutomationElement in UI Spy? ...