Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
35
UltraCombo Editor and Coded UI Tests not working
posted

Hi,

I have create a very simple application to recreate a production issue that is occuring when we try to create a VS 2010 Coded UI Test against it.  Basically, when we try to record the actions of an UltraComboEditor, it can't access the items in the list.  I tried it with a checkbox list and regular list.  Has anyone tried to get this working or have any ideas?  We have inspected the controls, the hierarchy of the controls, and generated code.  Nothing seems to make it work. 

Error Message

Test method TestProject2.CodedUITest1.CodedUITestMethod1 threw exception:
Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Another control is blocking the control. Please make the blocked control visible and retry the action. Additional Details:
TechnologyName:  'MSAA'
Name:  '100'
ControlType:  'ListItem'
 ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003

Code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Infragistics.Win.

 

 

ValueListItem valueListItem1 = new Infragistics.Win.ValueListItem

();

 

 

 

this.ultraComboEditor1 = new Infragistics.Win.UltraWinEditors.UltraComboEditor

();

((System.ComponentModel.

 

 

ISupportInitialize)(this

.ultraComboEditor1)).BeginInit();

 

 

 

this

.SuspendLayout();

 

 

 

//

 

 

 

// ultraComboEditor1

 

 

 

//

 

 

 

this.ultraComboEditor1.AccessibleDescription = "Office Selector"

;

 

 

 

this.ultraComboEditor1.AccessibleName = "OfficeSelector"

;

 

 

 

this.ultraComboEditor1.AccessibleRole = System.Windows.Forms.AccessibleRole

.ComboBox;

 

 

 

this.ultraComboEditor1.CheckedListSettings.ItemCheckArea = Infragistics.Win.ItemCheckArea

.Item;

valueListItem1.DataValue =

 

 

"ValueListItem0"

;

valueListItem1.DisplayText =

 

 

"100"

;

 

 

 

this.ultraComboEditor1.Items.AddRange(new Infragistics.Win.ValueListItem

[] {

valueListItem1});

 

 

 

this.ultraComboEditor1.Location = new System.Drawing.Point

(57, 84);

 

 

 

this.ultraComboEditor1.Name = "ultraComboEditor1"

;

 

 

 

this.ultraComboEditor1.Size = new System.Drawing.Size

(178, 21);

 

 

 

this

.ultraComboEditor1.TabIndex = 0;

 

 

 

//

 

 

 

// Form1

 

 

 

//

 

 

 

this.AutoScaleDimensions = new System.Drawing.SizeF

(6F, 13F);

 

 

 

this.AutoScaleMode = System.Windows.Forms.AutoScaleMode

.Font;

 

 

 

this.ClientSize = new System.Drawing.Size

(292, 266);

 

 

 

this.Controls.Add(this

.ultraComboEditor1);

 

 

 

this.Name = "Form1"

;

 

 

 

this.Text = "Form1"

;

((System.ComponentModel.

 

 

ISupportInitialize)(this

.ultraComboEditor1)).EndInit();

 

 

 

this.ResumeLayout(false

);

 

 

 

this

.PerformLayout();

Thanks,

Mike