I am using vs2012 and infragistcs 13.1. I am trying to use coded UI tests for our win application GUIautomation.
But find that CodedUI can not capture the Menuitem of the PopupMenu. Is it supported?
Hello ,
I’ve tested this with Infragistics 13.1 and everything works properly, please see attached sample, I am able to record and replay test against UltraToolbarsManager with PopupMentu item.
Please let me know if I am missing something.
Thanks for your support. From your sample code I got "UltraUiaMenuItem uIButtonTool1MenuItem" Generated by CodedUI test builder.like blew:
public UltraUiaMenuItem UIButtonTool1MenuItem { get { if ((this.mUIButtonTool1MenuItem == null)) { this.mUIButtonTool1MenuItem = new UltraUiaMenuItem(this); #region Search Criteria this.mUIButtonTool1MenuItem.SearchProperties[UITestControl.PropertyNames.ControlType] = "MenuItem"; this.mUIButtonTool1MenuItem.SearchProperties["AutomationId"] = "[PopupMenuTool1 Items] Menu Item : - Index : 0 "; this.mUIButtonTool1MenuItem.WindowTitles.Add("PopupMenuTool1 - 0"); #endregion } return this.mUIButtonTool1MenuItem; } }
But in my test code, CodedUI can only find the WinMenu uIPopupControlMenu, So can you help me how to capture the PopupMenuItem with the Coded UI Test Builder hotkey(Ctrl+I)?
I'm using Infragistic for free trial model, does it matter with the problem?
Does this happen when you try to record test agents my sample ? Are you using CustomContrl with UltraToolbarsManager in it or derived from UltraToolBarsManager control. Can you provide me simple sample where I could test this. I’ve tried this to my sample and everything works as expected. Can you please give me the exact steps that I should perform in order to reproduce this on my side.
I am waiting for your feedback.
Yes, I have attached my code of test your sample by your steps, still can't find PopupMenuItem.
about the capture problem, I want to capture the items in the menu not the menu itself, like:
ButtonTool1,ButtonTool2,ButtonTool3 are what I want to capture, not the PopupMenuTool1.
Again, is this happened because of I have none Licenses and free trial.
now it works well. the reason is just because of the licenses.
I get an available license and it works as expect.
Thanks for you support, and I hope you can make the free trail version full functional.
Hello,
I was testing this on a clean virtual mashie when I saw your response here. I am glad to hear that you were able to solve your issue.
Thank you for using Infragistics components.