Current filter:
                                You should refresh the page.
                                Support Center
                                0
                                  • I get exception when I try to use Unit Test Runner to run CodedUI test


                                    But I can use Microsoft's unit test tools to run it.



                                    the exceptions said:


                                    Testing started:


                                    Exception:

                                    Message: Unable to load the test container 'E:\tfs\Illuminate1\Illuminate\Dev\Frontend\Web\Lavender.Illuminate.UnitTest\bin\Debug\Lavender.Illuminate.UnitTest.dll' or one of its dependencies. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.


                                    Source: Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Tip

                                    StackTrace:

                                    at Microsoft.VisualStudio.TestTools.TestTypes.Unit.AssemblyEnumerator.EnumerateAssembly(IWarningHandler warningHandler, String location, ProjectData projectData, ObjectHandle assemblyResolverWrapper)

                                    at Microsoft.VisualStudio.TestTools.TestTypes.Unit.AssemblyEnumerator.EnumerateAssembly(IWarningHandler warningHandler, String location, ProjectData projectData, ObjectHandle assemblyResolverWrapper)

                                    at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAttributeEnumerator.Read(ITestTypeExtensionClientSidesProvider provider, IWarningHandler warningHandler, String assemblyFileName, ProjectData projectData, TestRunConfiguration testRunConfiguration)

                                    at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestTip.Load(String assemblyFileLocation, ProjectData projectData, IWarningHandler warningHandler)

                                    at CR_VSTesting.Executor.EnumerateTests(String assemblyFile)

                                    at CR_VSTesting.Executor.FindTestElements(String assemblyPath)

                                    at CR_VSTesting.Executor.Execute(ExecuteTestData data)

                                    No tests found.

                                    Duration : 0.949970387297827

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                Hi Yetao,

                                We appreciate your feedback. Unfortunately, this is a current limitation of the CodeRush Unit Test Runner. It does not support CodedUI tests. We are going to eliminate this limitation by implementing the mentioned support with one of our future releases.

                                • Yetao Chen 07.05.2012

                                  Thanks Alex

                                  Hopefully, that would not be a far future release. I mean CodeRush's Test Runner much better and faster than MSTest's one.

                                  Well, actually, if I add a CodedUI Test in my unit test project, then test runner cannot run other normal unit test too, because it cannot build the unit test project. Any work around for this issues?

                                • Yetao,
                                  Thank you for your words about CodeRush Test Runner. I'm not sure I understand what you mean under "because it cannot build the unit test project". Would you please clarify this sentence? Do you mean that your unit test project becomes uncompilable and Visual Studio cannot build it?

                                • Yetao Chen 07.06.2012

                                  The thing happened like:
                                  I have a unit test project
                                  1. I create unit test for some normal function, Test Runner works well.
                                  2. I create a coded ui test, I want to use Test runner to run that ui test, but I got message 'no test founded'
                                  3. then I go to check output window (choice DXCore from drop down list), I see above exception message.
                                  4. I use MSTest to run normal unit test and ui test, all of them works well.

                                  So, where is the issue?

                                • Hi Yetao,

                                  I apologize for the delayed response. I have reproduced this behavior, and we consider it incorrect. The issue is connected to our Test Runner. We appreciate your patience while we are looking closer into it to find the best solution to fix it.

                                You must  log in  or  register  to leave comments

                                To start a chat you should create a support ticket


                                If you need additional product information, write to us at info@devexpress.com or call us at +1 (818) 844-3383

                                FOLLOW US

                                DevExpress engineers feature-complete Presentation Controls, IDE Productivity Tools, Business Application Frameworks, and Reporting Systems for Visual Studio, along with high-performance HTML JS Mobile Frameworks for developers targeting iOS, Android and Windows Phone. Whether using WPF, Silverlight, ASP.NET, WinForms, HTML5 or Windows 8, DevExpress tools help you build and deliver your best in the shortest time possible.

                                Copyright © 1998-2014 Developer Express Inc.
                                All trademarks or registered trademarks are property of their respective owners