Current filter:
                                You should refresh the page.
                                  • Hi,

                                    I am currently investigating Coded UI testing for our application. However I constantly receive the following error (see stack trace below) when I attempt to run a Coded UI test which inserts text into a TextEdit control which is within a Layout Control. The tests works fine for TextEdit controls outside of Layout controls.

                                    I can see from your documentation that Layout controls are not yet supported in Coded UI tests, however surely controls within Layout controls are still supported - or am I missing something?

                                    With kind reagrds
                                    Steve

                                    Error Message:
                                    Test method CodedUITests.LayoutControlTextEditCodedUITest.LayoutControlTextEditTest threw exception:
                                    Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNotFoundException: The playback failed to find the control with the given search properties. Additional Details:
                                    TechnologyName: 'DevExpress.v12.2'
                                    Name: 'textEdit1'
                                    ClassName: 'TextEdit'
                                    ---> System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

                                    Error Stack Trace:
                                    Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.FindAllDescendants(String bstrQueryId, Object& pvarResKeys, Int32 cResKeys, Int32 nMaxDepth)
                                    Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindAllScreenElement(String queryId, Int32 depth, Boolean singleQueryId, Boolean throwException)
                                    Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.FindScreenElement(String queryId, Int32 depth)
                                    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
                                    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapControlNotFoundException(COMException ex, IPlaybackContext context)
                                    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
                                    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
                                    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String queryId)
                                    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindFirstDescendant(String queryId, Int32 maxDepth, Int32& timeLeft)
                                    Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.GetElement(Boolean useCache, ISearchArgument searchArg)
                                    Microsoft.VisualStudio.TestTools.UITesting.SearchHelper.Search(ISearchArgument searchArg)
                                    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindInternal()
                                    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.FindControlIfNecessary()
                                    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.SetProperty(String propertyName, Object value)
                                    DevExpress.CodedUIExtension.DXTestControls.v12_2.DXTestControl.set_ValueAsString(String value)
                                    CodedUITests.UIMap.LayoutControlTextMethod() in S:\StevesStuff\VS Projects\CodedUITests\CodedUITests\UIMap.Designer.cs: line 56
                                    CodedUITests.LayoutControlTextEditCodedUITest.LayoutControlTextEditTest() in S:\StevesStuff\VS Projects\CodedUITests\CodedUITests\LayoutControlTextEditCodedUITest.cs: line 30

                                    Debug Trace:
                                    W, 2588, 34, 2013/01/28, 08:44:34.691, 5197536731, QTAgent32.exe, Playback - [WARNING] Internal warning: Target element "[DevExpress.v12.2]Name='textEdit1' && ClassName='TextEdit'" was not found, so all intermediate elements were ignored. An incorrect element that matches target element Id can be found as the result. Verify that all intermediate elements in QueryId have valid and unique Ids
                                    \0
                                    W, 2588, 34, 2013/01/28, 08:44:38.350, 5206090855, QTAgent32.exe, Playback - [WARNING] Internal warning:Search failure: <[DevExpress.v12.2]Name='layoutControl1' && ClassName='LayoutControl'> | Performed (4) search retries, UI element not found
                                    \0
                                    E, 2588, 34, 2013/01/28, 08:44:38.350, 5206091756, QTAgent32.exe, <a class=failure>Playback - {1} [FAILED] Function ElementFetcher::FindScreenElement failed to locate UI element (Searching: ;[DevExpress.v12.2]Name='layoutControl1' && ClassName='LayoutControl';[DevExpress.v12.2]Name='layoutControlGroup1' && ClassName='LayoutGroup';[DevExpress.v12.2]Name='layoutControlItemLabel' && ClassName='LayoutControlItem';[DevExpress.v12.2]Name='textEdit1' && ClassName='TextEdit') (The object specified was not found.)
                                    \0</a>
                                    E, 2588, 34, 2013/01/28, 08:44:38.705, 5206920713, QTAgent32.exe, Playback - [IMAGE] C:\Users\stephen.childs\AppData\Local\Temp\UITestLogs\LastRun\RPFF8FF.png
                                    \0
                                    W, 2588, 34, 2013/01/28, 08:44:38.705, 5206921197, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't find descendants that match QueryId
                                    \0
                                    W, 2588, 34, 2013/01/28, 08:44:38.705, 5206922226, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 6418 ms. Expected it to take maximum 500 ms.
                                    E, 2588, 34, 2013/01/28, 08:44:38.762, 5207054174, 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: 'DevExpress.v12.2'
                                    Name: 'textEdit1'
                                    ClassName: 'TextEdit'
                                    ---> 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.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.SetProperty(String propertyName, Object value)
                                    W, 2588, 34, 2013/01/28, 08:44:38.863, 5207291882, QTAgent32.exe, IEDOM : StopSession of the plugin called before StartSession
                                    W, 2588, 34, 2013/01/28, 08:44:38.864, 5207292342, QTAgent32.exe, UIA : StopSession of the plugin called before StartSession

                                Show all comments
                                • Egor Snet (DevExpress) 01.25.2013

                                  Hello Stephen,

                                  Thank you for contacting us. This scenario works fine on our side. Is SP1 for Visual Studio 2010 installed on your machine? If so, can you send us a sample project to reproduce the issue?

                                  Thanks, Egor.

                                • Stephen Childs 01.28.2013

                                  Hi Please find attached the projects which cause the above issue.

                                • Gosha (DevExpress Support) 01.29.2013

                                  Hi Steve,

                                  I have tested your project and must say that it operates properly on my side. I have attached a video to illustrate this. Would you please test your project on another machine so that we can see if the issue is specific for your machine?

                                  In addition, perhaps, there were certain errors during our controls' installation. Please send us the installation log so we can check it.

                                • Stephen Childs 01.29.2013

                                  Hi Gosha,

                                  Thanks for this. I will try a re-installation and failing that, try it on another machine. But I am glad that it will work.

                                  Many thanks
                                  Steve

                                • Stephen Childs 01.30.2013

                                  Hi,

                                  I have uninstalled VS and DXperience and reinstalled them both, so I now have VS2010 SP1 and DXperience Univesal trail version installed on my machine and I am still receiving the same error.

                                  I have also tried this on another machine and again the same error is raised.

                                  I have attached the install log for DXperience in case it can provide any clues.

                                  Cheers
                                  Steve

                                • Gosha (DevExpress Support) 01.30.2013

                                  Hi Steve,

                                  Thank you for the provided log file. I have reviewed it but I do not see any errors there. Would you please run the attached bat file and send us its results? This will allow us to learn more about your environment.

                                • Egor Snet (DevExpress) 01.30.2013

                                  I also want to ask you to check whether the DevExpress.CodedUIExtension.v12.2 assembly is installed in the GAC on your machine. Default path is "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\DevExpress.CodedUIExtension.v12.2".

                                • Stephen Childs 01.30.2013

                                  Hi,

                                  I can confirm that DevExpress.CodedUIExtension.v12.2 assembly is installed in the GAC. I've attached the output from the batch file.

                                  Thanks again for your help in this matter.

                                  Cheers
                                  Steve

                                • Gosha (DevExpress Support) 01.31.2013

                                  Hi Steve,

                                  We have managed to reproduce the issue with VS 2010 Premium in Windows 7 x64 with the en-GB locale. Our developers are researching this issue. We will answer you as soon as possible.

                                1 Solution

                                Creation Date Importance Sort by

                                Hello Stephen,

                                We've found a serialization bug in our code. That bug led to errors in Coded UI tests of XtraLayout and XtraTreeList in some environments. Now we've fixed this bug, and you can request an intermediate build with this fix.
                                This thread is private. Do you mind if I make this ticket public so that the public fix provided here will be available for other customers?

                                Thanks, Egor.

                                Show all comments
                                • Stephen Childs 02.04.2013

                                  Hi Egor,

                                  That's excellent news. Thank you again for all your hard work.

                                  How do I request an intermediate build?

                                  And yes it's ok with me to make this thread public.

                                  Cheers
                                  Steve

                                • Egor Snet (DevExpress) 02.04.2013

                                  Please accept my apologies, I didn't set the "fixed" status of this ticket immediately after posting my last answer. Now I have done that and you can find "Public Fixes" section on the right side of the page.

                                • Stephen Childs 02.11.2013

                                  Hi Egor,

                                  Do you have any time-scales on when the fix will be available to me?

                                  Cheers
                                  Steve

                                • Gosha (DevExpress Support) 02.11.2013

                                  Hi Steve,

                                  We have published a public fix for this issue. You are welcome to test it.

                                • Stephen Childs 02.14.2013

                                  Hi,

                                  The public fix has resolved the issue. Thanks guys.

                                  Cheers
                                  Steve

                                • Egor Snet (DevExpress) 02.14.2013

                                  I am glad to hear this. If you have any other issues, please feel free to contact us.

                                • Stephen Childs 02.14.2013

                                  Hi,

                                  Do you have a time scale as to when this will make it into your live release?

                                  Thanks
                                  Steve

                                • Gosha (DevExpress Support) 02.14.2013

                                  Hi Steve,

                                  We usually release a new minor version once a month. The latest 12.2.6 version was released on January 31st. So, the next minor version is expected to be released in the beginning of March.