locked
Will Coded UI Tests recognize Tabbed Controls? RRS feed

  • Question

  • Hi

    In my web application, some of the pages, the data is displaying in Tabbed format .This grid is a 3'rd party tool from Telerik Rad View.   By using Coded UI Tests, I am verifying by clicking on all the tabs

     But I am getting below error, Do we have any issue with Coded UI Test recognizing the Tabs in Telerik grid?

     

    Here is the Error stack trace

     

    ---------------------------------

    W, 7720, 40, 2011/12/15, 10:24:39.931, 253675225761, QTAgent32.exe, SLPlugin : Server Socket Closed
    W, 7720, 36, 2011/12/15, 10:24:40.009, 253675465305, QTAgent32.exe, ExtensionFramework : A Technology Manager with name Web is already registered.
    E, 7720, 36, 2011/12/15, 10:24:40.165, 253675977180, QTAgent32.exe, LoadLibrary() : Unable to find the resource 37382 from assembly C:\Windows\system32\en-US\ieframe.dll.mui: Error1814
    E, 7720, 36, 2011/12/15, 10:24:40.165, 253675979159, QTAgent32.exe, LoadLibrary() : Unable to find the resource 41728 from assembly C:\Windows\system32\en-US\ieframe.dll.mui: Error1814
    E, 7720, 36, 2011/12/15, 10:24:40.165, 253675983400, QTAgent32.exe, LoadLibrary() : Unable to find the resource 803 from assembly C:\Windows\system32\en-US\user32.dll.mui: Error1814
    E, 7720, 36, 2011/12/15, 10:24:40.243, 253676204506, QTAgent32.exe, IEDOM : Could not get valid window handle of Internet Explorer_server
    W, 7720, 36, 2011/12/15, 10:24:40.243, 253676204701, QTAgent32.exe, IEDOM : Unable to get the document Window Handle
    E, 7720, 36, 2011/12/15, 10:25:10.934, 253770851652, QTAgent32.exe, Exception: System.NotSupportedException
     Message: The property __vsttApplicationId is not supported for this control.
     Stack Trace:    at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.BrowserHtmlNode.GetHtmlPropertyValue(String propertyName)
       at Microsoft.VisualStudio.TestTools.UITest.Extension.IE.BrowserHtmlNode.GetPropertyValue(String propertyName)
     BaseExceptionMessage: The property __vsttApplicationId is not supported for this control.

    W, 7720, 34, 2011/12/15, 10:25:11.012, 253771100501, QTAgent32.exe, SlPlugin.ProcessData. We shouldn't land here. The response we are waiting on is None but the response is ConnectionAcknowledge
    W, 7720, 34, 2011/12/15, 10:25:11.043, 253771187695, QTAgent32.exe, SlPlugin.ProcessData. We shouldn't land here. The response we are waiting on is None but the response is Handshake
    W, 7720, 36, 2011/12/15, 10:25:11.043, 253771210736, QTAgent32.exe, IEDOM : Internet Explorer_Server Border
    W, 7720, 36, 2011/12/15, 10:25:12.823, 253776769181, QTAgent32.exe, <a class=success>Playback - {1} [SUCCESS] SetValueAsEditBox "rnelson" - "[Silverlight]ControlType='Edit' && AutomationId='textBox'"  < Set via SendKeys >
    \0</a>
    W, 7720, 36, 2011/12/15, 10:25:13.640, 253779288614, QTAgent32.exe, <a class=success>Playback - {2} [SUCCESS] MouseButtonClick - "[Silverlight]ControlType='Edit' && AutomationId='passwordBox'"
    \0</a>
    W, 7720, 36, 2011/12/15, 10:25:14.183, 253780962060, QTAgent32.exe, <a class=success>Playback - {3} [SUCCESS] SendKeys "[*]" - "[Silverlight]ControlType='Edit' && AutomationId='passwordBox'"
    \0</a>
    W, 7720, 36, 2011/12/15, 10:25:14.729, 253782647560, QTAgent32.exe, <a class=success>Playback - {4} [SUCCESS] MouseButtonClick - "[Silverlight]ControlType='Button' && AutomationId='btnLogin'"
    \0</a>
    W, 7720, 36, 2011/12/15, 10:25:41.550, 253865381473, QTAgent32.exe, <a class=success>Playback - {5} [SUCCESS] MouseButtonClick - "[Silverlight]ControlType='Button' && AutomationId='btnPatientSearch'"
    \0</a>
    W, 7720, 36, 2011/12/15, 10:25:51.009, 253894558818, QTAgent32.exe, <a class=success>Playback - {6} [SUCCESS] MouseButtonClick - "[Silverlight]ControlType='Button' && AutomationId='btnSearch'"
    \0</a>
    W, 7720, 36, 2011/12/15, 10:26:00.080, 253922537290, QTAgent32.exe, <a class=success>Playback - {7} [SUCCESS] MouseButtonClick - "[Silverlight]ControlType='Button' && AutomationId='button1'"
    \0</a>
    W, 7720, 36, 2011/12/15, 10:26:35.051, 254030414730, QTAgent32.exe, <a class=success>Playback - {8} [SUCCESS] MouseButtonClick - "[Silverlight]ControlType='Button' && Name='Review Selected Visit'"
    \0</a>
    W, 7720, 41, 2011/12/15, 10:27:38.693, 254226636837, QTAgent32.exe, SilverlightUIAutomationHelper : Search Timed Out: Remaining WFR time left is not sufficient : MaxWaitTimeWithoutVisualTreeUpdate = 30000 TimeEllapsed = 29921
    E, 7720, 36, 2011/12/15, 10:27:38.693, 254226637089, QTAgent32.exe, Silverlight : Search : Unable to find element
    E, 7720, 36, 2011/12/15, 10:27:38.693, 254226639606, QTAgent32.exe, <a class=failure>Playback - {9} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;[Silverlight]ControlType='Pane' && AutomationId='ScrollViewerElement') (The object specified was not found.)
    \0</a>
    E, 7720, 36, 2011/12/15, 10:27:38.881, 254227243896, QTAgent32.exe, Playback - [IMAGE] C:\Users\srinivas-b\AppData\Local\Temp\UITestLogs\LastRun\RPF8C37.png
    \0
    W, 7720, 36, 2011/12/15, 10:27:38.881, 254227244184, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId
    \0
    W, 7720, 36, 2011/12/15, 10:27:38.881, 254227244643, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 30177 ms. Expected it to take maximum 500 ms.
    E, 7720, 36, 2011/12/15, 10:27:39.208, 254228249445, QTAgent32.exe, AL: Playback Error: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
    TechnologyName:  'Silverlight'
    ControlType:  'Pane'
    AutomationId:  'ScrollViewerElement'
     ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
       at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth)
       at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException)
       at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth)
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
       --- End of inner exception stack trace ---
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context)
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String queryId)
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
       at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft)
       at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetUITestControlRecursive(Boolean useCache, Boolean alwaysSearch, ISearchArgument searchArg, IList`1 windowTitles, Int32& timeLeft)
       at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg)
       at Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg)
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal()
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindControlIfNecessary()
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)
       at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
       at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementationWrapper(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
    W, 7720, 41, 2011/12/15, 10:27:39.333, 254228611239, QTAgent32.exe, SLPlugin : ReadCallback failed as socket is closed : Safe handle has been closed
    W, 7720, 36, 2011/12/15, 10:27:39.333, 254228641774, QTAgent32.exe, IEDOM : StopSession of the plugin called before StartSession
    W, 7720, 36, 2011/12/15, 10:27:39.333, 254228641954, QTAgent32.exe, UIA : StopSession of the plugin called before StartSession
    W, 7720, 36, 2011/12/15, 10:27:39.333, 254228642033, QTAgent32.exe, SLPlugin : StopSession of the plugin called before StartSession

     


    Thursday, December 15, 2011 4:41 PM

Answers

All replies

  • Hi Srini - I would post this question to Telerik.  I have found the Telerik team to be very responsive.

    http://www.telerik.com/community/forums.aspx


    Tim
    Monday, December 19, 2011 6:18 PM
  •  

     

    Tim ,

    Do you want me to post this Telerik forums?  Is isn’t it the issue with Coded UI Test ?

    I  also evaluated Telerik for their tool  for my automation testing

    For testing support, They are the best in the market than any other. 

    I think only developers are using this Coded UI Test tool as I don’t see any responses from QA automation folks 

    I recommend Microsoft to focus on this tool for regression as it lacks so many features when compare to all other testing tools in the market

    Srini  

     


    Tuesday, December 20, 2011 4:14 PM
  • I would post it there.  There are some ways Telerik can make there controls support the Coded UI test more easily. 

    I have run into some QA folks successfully using coded UI tests though I agree a fairly large percentage of CUIT users are developers. 

     

    In My experience MS is happy to get feature requests especially in story form.  I don't recaqll if you need a login or not but you can submit feature requests here.  Others in the community can vote on them.

    http://connect.microsoft.com/VisualStudio

     


    Tim
    Tuesday, December 20, 2011 4:40 PM
  • Tim ,

    I posted this issue in Telerik but nobody is responding. I was stuck here and unable record any Coded UI TESTS.

    Why anybody from Microsoft is not taking this issue seriously?  Is it a know issue. I also don't understand what Telerik version who should have to support Coded UI TEST.

    http://www.telerik.com/community/forums/silverlight/tabcontrol/coded-ui.aspx

    Srini

    Thursday, December 22, 2011 6:52 PM
  • Srini - Sorry you are still having trouble.  MS has published guidelines for building controls that support Coded UI Tests for 3rd part vendors like Telerik http://blogs.msdn.com/b/mathew_aniyan/archive/2011/03/28/visual-studio-ui-test-extensibility-scenarios-amp-guiding-principles.aspx

    This does involve some effort by the 3rd party vendors.  Telerik appears to be continuing to improve support for CUIT but you may be using a control that is not there yet.  I still believe this is a telerik issue not an MS issue.  MS cannot change the Telerik source code so they would not be the ones to ask to ask for help.  Maybe there is a better support system than posting to the telirik forum.  If you have a login at telerik you should be able to connect with them from here: http://www.telerik.com/support.aspx


    Tim
    Thursday, December 22, 2011 8:00 PM
  • Thanks Tim ,

    I am working with Telerik team to resolve the issue - I appreciate your help .

     

    Tuesday, December 27, 2011 10:03 PM
  •  

    Tim ,

    I am glad to share with you that Telerik has created bug for this issue. Here is the link.

    Thank you so much for your support and I appreciate your help.

     http://www.telerik.com/support/pits.aspx#/public/silverlight/9245

     

    TabControl: TabItems are not recognized properly in Coded UI Test

    We have an application with RadTabControl with several RadTabItems.
    We are recording Coded UI Test against this application.
    Selection of a RadTabItem different from the selected one is recorded, but the test fails during playback.
    The error states that the corresponding RadTabItem is not found.

    Monday, January 9, 2012 3:11 PM
  • I need support from Microsoft Coded UI group to vote for this .

    http://www.telerik.com/support/pits.aspx#/public/silverlight/9245

    Thanks,

    Srini

     

    Monday, January 9, 2012 8:34 PM