VS Test Builder not mapping correctly
-
Monday, March 05, 2012 6:08 PM
Hi, trying to create a UI Map for a webpage that has one button (hyperlink). Here's what I'm doing:
1. Open Test Builder
2. Use crosshairs to select the button (hyperlink)
3. Add control to the map.
The test builder adds the button and three levels above it. However, in UISpy, I see five levels above it.
This is the Test Builder heirarchy (Class Name, Control Type):
IE Frame,Window (tlw) > HTMLBody, Document > HTMLTag.section,Custom > HTMLHyperlink, Hyperlink
This is the UISpy hierarchy (Class Name, Control Type):
IE Frame,Window > Frame Tab, Pane > Tab Window, Pane > Shell Doc Object View, Pane > Internet Explorer_Server, Pane > ' ', Hyperlink
So my question is, why doesn't Test Builder record the same heirarchy as seen in UI Spy? I have tried using the crosshairs and the up/down/right/left arrows in Test Builder to find these extra levels (the FrameTab,Pane and Tab Window,Pane) but Test Builder can't find any control with Control Type = Pane. It does add all the browser and Windows menu bars, and will then start adding duplicate controls of type "Client".
This has to be related to FP2 editor being unable to find the top level window immediately after recording it, with only four controls in the map.
I hope someone has an explanation for this and it is something I am doing wrong, because if not, seems something is wrong with the tool?.
Thanks
Joe
Joe Minnehan
- Edited by jminnehan Monday, March 05, 2012 8:55 PM clarity
All Replies
-
Wednesday, March 07, 2012 11:23 AMModerator
The UISpy tool is an individual tool do not relationship with Test Framework directly, Coded UI Test Framework has a special set of class would mapped with real controls you could find this in a test project, in other word, the same control maybe has two different display names in the hierarchy of Coded UI Test Builder and UISpy.
Also the coded UI Test Builder would not capture all the elements in the hierarchy of a UIObject, it all depends on if the control’s properties could make up a unique search condition for playback execution.
Here is a blog from Visual Studio Team Test which has explained for hierarchy (please notice ‘QueryID’ section):
http://blogs.msdn.com/b/vstsqualitytools/archive/2010/04/13/uitest-framework-ie-plugin-part-1.aspx
Tony Xiao [MSFT]
MSDN Community Support | Feedback to us
- Edited by Tony xiaoModerator Wednesday, March 07, 2012 11:26 AM
- Proposed As Answer by Issamo-san Wednesday, March 07, 2012 11:46 AM
- Marked As Answer by Tony xiaoModerator Monday, March 12, 2012 1:38 AM

