Exception after building Coded UI test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NUnit Test Adapter |
Fix Released
|
High
|
Terje Sandstrom |
Bug Description
The following stack trace is logged:
------ Discover test started ------
Exception thrown discovering tests in D:\Dev\
System.
File name: 'Microsoft.
Server stack trace:
at System.
at System.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at NUnit.Core.
at System.
at System.
Exception rethrown at [0]:
at System.
at System.
at NUnit.Core.
at NUnit.Util.
at NUnit.VisualStu
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\
An exception occurred while test discoverer 'NUnitTestDisco
========== Discover test finished: 1 found (0:00:00.2506002) ==========
------ Run test started ------
========== Run test finished: 1 run (0:00:12.520006) ==========
That assembly is not added as a reference by default. Adding it manually didn't solve the problem.
Using VS 2012.2 + Adapter beta 4.
-dave
Related branches
Changed in nunit-vs-adapter: | |
importance: | Undecided → Medium |
Changed in nunit-vs-adapter: | |
status: | New → Triaged |
importance: | Medium → High |
milestone: | none → 0.95 |
assignee: | nobody → Terje Sandstrom (b-tfrje-j) |
Changed in nunit-vs-adapter: | |
status: | Triaged → In Progress |
Changed in nunit-vs-adapter: | |
status: | Fix Committed → Fix Released |
Coded UI tests are a specific feature of Visual Studio and MSTest. I found
a discussion thread from 2011, where a Microsoft MSTest engineer said "We
don't have any plans to decouple Coded UI Test from the current Unit Test
Framework."
I'll check with the Microsoft folks who provide the new Test Platform in
Visual Studio to see whether there are any plans to allow running of Coded
UI tests written in NUnit. If they have such plans, we'll keep this bug to
stand for whatever work is necessary in the adapter. If they don't, I'll
just close it.
On Sat, Apr 6, 2013 at 3:27 AM, David Gardiner <email address hidden>wrote:
> Public bug reported: Sandbox\ CodedUITestProj ect2\CodedUITes tProject2\ bin\Debug\ CodedUITestProj ect2.dll IO.FileNotFound Exception: Could not load file or assembly VisualStudio. TestTools. UITesting, Version=11.0.0.0, b03f5f7f11d50a3 a' or one of its VisualStudio. TestTools. UITesting, Version=11.0.0.0, b03f5f7f11d50a3 a' Reflection. RuntimeAssembly .GetExportedTyp es(RuntimeAssem bly Reflection. RuntimeAssembly .GetExportedTyp es() CoreExtensions. InstallAdhocExt ensions( Assembly assembly) Builders. TestAssemblyBui lder.Load( String path) Builders. TestAssemblyBui lder.Build( String assemblyName, Builders. TestAssemblyBui lder.Build( String assemblyName, TestSuiteBuilde r.BuildSingleAs sembly( TestPackage package) TestSuiteBuilde r.Build( TestPackage package) SimpleTestRunne r.Load( TestPackage package) ProxyTestRunner .Load(TestPacka ge package) ProxyTestRunner .Load(TestPacka ge package) RemoteTestRunne r.Load( TestPackage package) Runtime. Remoting. Messaging. StackBuilderSin k._PrivateProce ssMessage( IntPtr Runtime. Remoting. Messaging. StackBuilderSin k.SyncProcessMe ssage(IMessage Runtime. Remoting. Proxies. RealProxy. HandleReturnMes sage(IMessage Runtime. Remoting. Proxies. RealProxy. PrivateInvoke( MessageData& TestRunner. Load(TestPackag e package) TestDomain. Load(TestPackag e package) dio.TestAdapter .NUnitTestDisco verer.DiscoverT ests(IEnumerabl e`1 erySink discoverySink) Microsoft\ Fusion! EnableLog] (DWORD) to 1.
>
> The following stack trace is logged:
>
> ------ Discover test started ------
> Exception thrown discovering tests in
> D:\Dev\
> System.
> 'Microsoft.
> Culture=neutral, PublicKeyToken=
> dependencies. The system cannot find the file specified.
> File name: 'Microsoft.
> Culture=neutral, PublicKeyToken=
>
> Server stack trace:
> at System.
> assembly, ObjectHandleOnStack retTypes)
> at System.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> Boolean autoSuites)
> at NUnit.Core.
> String testName, Boolean autoSuites)
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at NUnit.Core.
> at
> System.
> md, Object[] args, Object server, Object[]& outArgs)
> at
> System.
> msg)
>
> Exception rethrown at [0]:
> at
> System.
> reqMsg, IMessage retMsg)
> at System.
> msgData, Int32 type)
> at NUnit.Core.
> at NUnit.Util.
> at
> NUnit.VisualStu
> sources, IDiscoveryContext discoveryContext, IMessageLogger logger,
> ITestCaseDiscov
>
> WRN: Assembly binding logging is turned OFF.
> To enable assembly bind failure logging, set the registry value
> [HKLM\Software\
> Note: There is some performance penalty asso...