Decoding the Coded UI Test playback failure – "Search may have failed at ControlX as it may have virtualized children …"

While automating WPF controls in Coded UI Test, the playback would sometimes through an exception with the following error message: “Search may have failed at <ControlX> as it may have virtualized children. If the control being searched is descendant of <ControlX> then including it as the parent container may solve the problem.”   In this…

7

Adding new Control support in a Coded UI Test Plugin

  In this blog post, I will describe the various key points that need to be addressed while implementing a new control support in a Coded UI Test Plugin (a  WPF plugin in this case). A sample WPF Calendar control example gives an in-depth on the various implementation details.   I assume that the reader has…

0

Why does Coded UI Test playback fail to scroll the Silverlight control into view?

Bringing the control into view is an essential part of the UITestAction during Playback since Coded UI Test performs actual Mouse/Keyboard actions on the control instead of programmatic action on the control. In case of failure to bring the control into view, the playback will throw a FailedToPerformActionOnBlockedControl exception or a PlaybackFailure exception.   The…

2

Why is selection of an item getting recorded as a Mouse Click action?

Coded UI Test supports “Intent Aware Recording” i.e. the recording attempts to capture the intent of the user instead of the raw SendKeys or MouseClick actions. In order to achieve this, Coded UI Test has in-built Action Filters that process the raw actions based on a set of pre-defined rules and generate the set of…

0

Fetching Property of a Silverlight control

In Coded UI Test you can fetch the property of a control using two approaches –   1. Use the properties exposed in the Specialized Class.     E.g. SilverlightList.SelectedItems returns the selected items in the list box.   2. Use the UITestControl.GetProperty() API.     E.g. SilverlightList.GetProperty(SilverlightControl.PropertyNames.SelectedItems) as string[].     This API can be used to…

2

Understanding the Search logic for Silverlight controls in Coded UI Test

One of the primary objectives during recording in Coded UI Test is to generate a robust search condition for a UI control to be uniquely identifiable during playback. In this post I’ll mention some of the search logic specific to the Silverlight UI Automation support within Coded UI Test introduced in the VS 2010 Feature…

1