This is a migrated thread and some comments may be shown as answers.

DockTabStrip support in codeUI testing Tool

6 Answers 71 Views
Dock
This is a migrated thread and some comments may be shown as answers.
Megamind
Top achievements
Rank 1
Megamind asked on 01 Mar 2018, 11:17 AM
Hi, I've been trying to record action of ToolWindow and Document Window in codeUI testing tool, and I am not able to get Id or Name for DockTabStrip and my tests are being failed. Also not able to select Close and AutoHide buttons on DockTabStrip  when I apply cross hair on them. Is there any way I can access these when windows are Docked in?

6 Answers, 1 is accepted

Sort by
0
Megamind
Top achievements
Rank 1
answered on 06 Mar 2018, 05:00 AM
Help ??
0
Hristo
Telerik team
answered on 06 Mar 2018, 07:47 AM
Hello,

Please make sure that you set the RadDock.EnableCodedUITests property to true. In case you are using Visual Studio 2015 please check if it has Update 1 installed. I am also attaching my test project performing a recording of closing and auto-hiding windows in the dock control.

In case your issue persists, please let me know with details about the test you are trying to record. Screenshots showing the error on your end would also help.

I hope this helps. Let me know if you have questions.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Megamind
Top achievements
Rank 1
answered on 06 Mar 2018, 09:55 AM

First of all Thankyou Hristo for your reply.

My problem is only when window is in Docked In state , in floating state,I'm able to access window's close button or autohide buttons. So when window is docked in state can I get close and autohide buttons?

0
Megamind
Top achievements
Rank 1
answered on 06 Mar 2018, 10:14 AM
In docked state we can't perform CodeUI cross-hair on close or autohide buttons.
0
Accepted
Hristo
Telerik team
answered on 08 Mar 2018, 01:18 PM
Hi,

When the window is floating you can use the spy tool and detect the buttons in the title bar of the window. In Docked state, however, the window does not have a title bar and these buttons are not accessible. If you make a recording, you will still be able to detect click and the returned element is the document tab strip. In this setup, the close and auto-hide buttons are not supported because they are not exposed as MSAA children.

I hope this information was useful. Let me know if you have other questions.

Regards,
Hristo
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Megamind
Top achievements
Rank 1
answered on 09 Mar 2018, 05:06 AM

I had this kind of idea but was not sure and its clear to me now. Thanks!

Tags
Dock
Asked by
Megamind
Top achievements
Rank 1
Answers by
Megamind
Top achievements
Rank 1
Hristo
Telerik team
Share this question
or