Unable to run tests with Specflow+Runner and .NET 5
AnsweredHello,
Does someone succeed to run tests using SpecFlow+ Runner and .NET 5 ?
On my side, SpecFlow+ Runner doesn't run tests on the assembly output folder and fails to find some custom files that tests needs to run ...
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\net5.0\Conf\conf.json'.
True output folder is "C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0"
Folder part "SpecFlowPlusRunner" is something added by the runner itself ...
Full log below with my comments in bold :
--------------------------------------------------------
2021-11-15T08:51:33.8430972+01:00;VSTestExecutionThread;Info;SpecFlow+Runner execution started
2021-11-15T08:51:33.8436180+01:00;VSTestExecutionThread;Info;SpecFlow+Runner 3.9.7 in Framework net50 in x64 mode execution started
2021-11-15T08:51:33.8436289+01:00;VSTestExecutionThread;Info;TestAdapter Location: C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\TechTalk.SpecRun.VisualStudio.TestAdapter.dll
2021-11-15T08:51:33.8470259+01:00;VSTestExecutionThread;Info;Current UserName: 'dominique.boyer', MachineName: 'DBO'
2021-11-15T08:51:33.8767799+01:00;VSTestExecutionThread;Info;SpecRun: running tests in C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T08:51:33.8769740+01:00;VSTestExecutionThread;Info;Output folder configured to "C:\DEV\GIT\alop\TestResults" (default)
2021-11-15T08:51:33.8770902+01:00;VSTestExecutionThread;Info;Profile:
2021-11-15T08:51:33.9175938+01:00;VSTestExecutionThread;Info;Log file path: C:\DEV\GIT\alop\TestResults\Unnamed project__2021-11-15T085133.log
2021-11-15T08:51:33.9211810+01:00;Thread#12;Info;Checking activation
2021-11-15T08:51:34.0784889+01:00;Thread#12;Info;Activated.
2021-11-15T08:51:34.0787152+01:00;Thread#12;Info;Activation check completed
2021-11-15T08:51:34.0787816+01:00;Thread#12;Info;Starting test run
2021-11-15T08:51:34.1625013+01:00;Thread#12;Info;Discovering target: Default
2021-11-15T08:51:34.1627192+01:00;Thread#12;Info;Discovering tests from assembly: C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T08:51:34.2914351+01:00;Thread#12;Info;Discovered tests from assembly: C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T08:51:34.2930230+01:00:Test Suite Dump
2021-11-15T08:51:34.2944008+01:00:#0: Unnamed project/ -
2021-11-15T08:51:34.2944235+01:00:#1: Default -
2021-11-15T08:51:34.2944256+01:00:#2: ALOP -
2021-11-15T08:51:34.2944270+01:00:#318: Actions simples -
2021-11-15T08:51:34.2960150+01:00:#319: ERP-7568-1 _ Je crée une action dans mon périmètre (aucune unité) - Sous-menu Actions simples - TestAssembly:ALOP/Feature:Actions+simples/Scenario:ERP-7568-1+_+Je+cr%c3%a9e+une+action+dans+mon+p%c3%a9rim%c3%a8tre+(aucune+unit%c3%a9)+-+Sous-menu+Actions+simples
2021-11-15T08:51:34.2960710+01:00:End: Test Suite Dump
2021-11-15T08:51:34.3105910+01:00:Thread#0:Scheduler: get next test for thread 0
2021-11-15T08:51:34.3118061+01:00:Thread#:Scheduler: testitem #319 from normal test queue
2021-11-15T08:51:34.3118453+01:00:Thread#0:Scheduler: considering testitem #319 for thread 0
2021-11-15T08:51:34.3140238+01:00:Thread#0:TestItem#319:testItemMatchesCurrentTestThread:UnSpecific
2021-11-15T08:51:34.3140352+01:00:Thread#0:TestItem#319:runsOnOneOtherThreadSpecific:False
2021-11-15T08:51:34.3140380+01:00:Thread#0:TestItem#319:runsOnOneOtherThreadUnspecific:False
2021-11-15T08:51:34.3140411+01:00:Thread#0:Scheduler: using testitem #319 for thread 0
2021-11-15T08:51:34.3144890+01:00:Thread#0:Scheduler: Test #319 is scheduled for thread
2021-11-15T08:51:34.3152336+01:00:Thread#0:Scheduler: with testItemExecutionIndex 0
2021-11-15T08:51:34.3195032+01:00:Thread #0: creating new test thread executor for ALOP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (target: Default)
2021-11-15T08:51:34.3219409+01:00:Thread #0: Creating test assembly executor for execution model OutProc
2021-11-15T08:51:34.3220949+01:00:Thread #0: Creating test assembly executor for execution model OutProc
2021-11-15T08:51:34.3237712+01:00:Thread #0: using TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorHost to execute tests
2021-11-15T08:51:34.3253286+01:00:starting Out Of Process Executor
2021-11-15T08:51:34.3269077+01:00:Assembly resolving Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
2021-11-15T08:51:34.3288706+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' from .deps.json file
2021-11-15T08:51:34.3288898+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' from .deps.json
2021-11-15T08:51:34.3302106+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T08:51:34.3306445+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Validation.dll'
2021-11-15T08:51:34.3307761+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Validation.exe'
2021-11-15T08:51:34.3308320+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T08:51:34.3310768+01:00:TargetFramework: .NETCoreApp,Version=v5.0
2021-11-15T08:51:34.3328692+01:00:Tfm: netcoreapp5.0 => (old tfm should be net5.0 now !?)
2021-11-15T08:51:34.3329005+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0' => doesn't exists, I have C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\net5.0
2021-11-15T08:51:34.3329031+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Validation.dll'
2021-11-15T08:51:34.3330239+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Validation.exe'
2021-11-15T08:51:34.3330894+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0'
2021-11-15T08:51:34.3433025+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12'
2021-11-15T08:51:34.3433207+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12\Microsoft.VisualStudio.Validation.dll'
2021-11-15T08:51:34.3434151+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12\Microsoft.VisualStudio.Validation.exe'
2021-11-15T08:51:34.3434602+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12'
2021-11-15T08:51:34.3436061+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12'
2021-11-15T08:51:34.3436115+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12\Microsoft.VisualStudio.Validation.dll'
2021-11-15T08:51:34.3436545+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12\Microsoft.VisualStudio.Validation.exe'
2021-11-15T08:51:34.3436907+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12'
2021-11-15T08:51:34.3437956+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12'
2021-11-15T08:51:34.3438003+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12\Microsoft.VisualStudio.Validation.dll'
2021-11-15T08:51:34.3438415+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12\Microsoft.VisualStudio.Validation.exe'
2021-11-15T08:51:34.3438767+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12'
2021-11-15T08:51:34.3497302+01:00:Starting callback TCP Rpc server
2021-11-15T08:51:34.3679839+01:00:Asynchronously starting background TCP Rpc Server on port 32768
2021-11-15T08:51:34.3680242+01:00:Started callback TCP Rpc server on port 32768
2021-11-15T08:51:34.3680313+01:00:Starting logger TCP Rpc server
2021-11-15T08:51:34.3699621+01:00:Asynchronously starting background TCP Rpc Server on port 32769
2021-11-15T08:51:34.3699935+01:00:Started logger TCP Rpc server on port 32769
2021-11-15T08:51:34.3810856+01:00:Executing test executor at 'dotnet' 'exec "C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\net5.0\TechTalk.SpecRun.Framework.Executor.anycpu.net5_0.dll" --remoteRunnerPid 36868 --uniqueId "2021-11-15T085133" --outputFolder "C:\DEV\GIT\alop\TestResults" --callbackPort 32768 --loggerPort 32769' in 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T08:51:34.3900923+01:00:Executor with PID 21248 has been started successfully.
2021-11-15T08:51:34.3926273+01:00:Out of Process Executor 21248 started
2021-11-15T08:51:34.3926480+01:00:Waiting for endpoint
2021-11-15T08:51:34.7048013+01:00:Assembly resolving Microsoft.VisualStudio.Threading, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
2021-11-15T08:51:34.7048200+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' from .deps.json file
2021-11-15T08:51:34.7048230+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' from .deps.json
2021-11-15T08:51:34.7048294+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T08:51:34.7048314+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Threading.dll'
2021-11-15T08:51:34.7048759+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Threading.exe'
2021-11-15T08:51:34.7049205+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T08:51:34.7049244+01:00:TargetFramework: .NETCoreApp,Version=v5.0
2021-11-15T08:51:34.7049437+01:00:Tfm: netcoreapp5.0
2021-11-15T08:51:34.7049478+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0'
2021-11-15T08:51:34.7049496+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Threading.dll'
2021-11-15T08:51:34.7050111+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Threading.exe'
2021-11-15T08:51:34.7050612+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0'
2021-11-15T08:51:34.7057399+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12'
2021-11-15T08:51:34.7057608+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12\Microsoft.VisualStudio.Threading.dll'
2021-11-15T08:51:34.7058248+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12\Microsoft.VisualStudio.Threading.exe'
2021-11-15T08:51:34.7058683+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.12'
2021-11-15T08:51:34.7060186+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12'
2021-11-15T08:51:34.7060258+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12\Microsoft.VisualStudio.Threading.dll'
2021-11-15T08:51:34.7060763+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12\Microsoft.VisualStudio.Threading.exe'
2021-11-15T08:51:34.7061192+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12'
2021-11-15T08:51:34.7062665+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12'
2021-11-15T08:51:34.7062732+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12\Microsoft.VisualStudio.Threading.dll'
2021-11-15T08:51:34.7063188+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12\Microsoft.VisualStudio.Threading.exe'
2021-11-15T08:51:34.7063619+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.12'
2021-11-15T08:51:35.4405102+01:00:Remote executor port received: 32770
2021-11-15T08:51:35.4409251+01:00:Creating executor TCP client on port 32770
2021-11-15T08:51:35.4413616+01:00:Created executor TCP client on port 32770
2021-11-15T08:51:35.4413692+01:00:Connecting to remote executor TCP server
2021-11-15T08:51:35.4424375+01:00:Connected remote executor TCP server
2021-11-15T08:51:35.4425867+01:00:trying to connect to Out of Process Executor the 1 attempt
2021-11-15T08:51:35.4425959+01:00:Connection to Out of Process Executor established in the 1 attempt
2021-11-15T08:51:35.6115036+01:00:2021-11-15T08:51:35.6092238+01:00:OutOfProcessTestAssemblyExecutor: initialized for C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll on test thread #0
2021-11-15T08:51:35.6149213+01:00:Endpoint 21248 started
2021-11-15T08:51:35.6355158+01:00:2021-11-15T08:51:35.6352284+01:00:OutOfProcessTestAssemblyExecutor: running tests...
2021-11-15T08:51:35.7194722+01:00:2021-11-15T08:51:35.7191090+01:00:Assembly resolving TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41
2021-11-15T08:51:35.7237349+01:00:2021-11-15T08:51:35.7233583+01:00:[AssemblyCache] Trying to resolve 'TechTalk.SpecFlow' from .deps.json file
2021-11-15T08:51:35.7262235+01:00:2021-11-15T08:51:35.7258330+01:00:[AssemblyCache] Resolved 'TechTalk.SpecFlow' to 'C:\Users\dominique.boyer\.nuget\packages\specflow\3.9.40\lib\netstandard2.0\TechTalk.SpecFlow.dll'
2021-11-15T08:51:35.8234003+01:00:2021-11-15T08:51:35.8226970+01:00:Thread#0:T:-> Loading plugin C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T08:51:35.8257344+01:00:2021-11-15T08:51:35.8242453+01:00:Assembly resolving Microsoft.Extensions.DependencyModel, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
2021-11-15T08:51:35.8275749+01:00:2021-11-15T08:51:35.8260219+01:00:[AssemblyCache] Trying to resolve 'Microsoft.Extensions.DependencyModel' from .deps.json file
2021-11-15T08:51:35.8307540+01:00:2021-11-15T08:51:35.8281091+01:00:[AssemblyCache] Resolved 'Microsoft.Extensions.DependencyModel' to 'C:\Users\dominique.boyer\.nuget\packages\microsoft.extensions.dependencymodel\1.0.3\lib\netstandard1.6\Microsoft.Extensions.DependencyModel.dll'
2021-11-15T08:51:35.8731674+01:00:2021-11-15T08:51:35.8727284+01:00:Assembly resolving Microsoft.DotNet.PlatformAbstractions, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
2021-11-15T08:51:36.4499014+01:00:2021-11-15T08:51:35.8734384+01:00:[AssemblyCache] Trying to resolve 'Microsoft.DotNet.PlatformAbstractions' from .deps.json file
2021-11-15T08:51:36.4650219+01:00:2021-11-15T08:51:36.4566240+01:00:[AssemblyCache] Resolved 'Microsoft.DotNet.PlatformAbstractions' to 'C:\Users\dominique.boyer\.nuget\packages\microsoft.dotnet.platformabstractions\1.0.3\lib\netstandard1.3\Microsoft.DotNet.PlatformAbstractions.dll'
2021-11-15T08:51:36.4907716+01:00:2021-11-15T08:51:36.4753999+01:00:Assembly resolving nunit.framework, Version=3.13.2.0, Culture=neutral, PublicKeyToken=2638cd05610744eb
2021-11-15T08:51:36.4962531+01:00:2021-11-15T08:51:36.4911149+01:00:[AssemblyCache] Trying to resolve 'nunit.framework' from .deps.json file
2021-11-15T08:51:36.5104308+01:00:2021-11-15T08:51:36.4967200+01:00:[AssemblyCache] Resolved 'nunit.framework' to 'C:\Users\dominique.boyer\.nuget\packages\nunit\3.13.2\lib\netstandard2.0\nunit.framework.dll'
2021-11-15T08:51:36.5240014+01:00:2021-11-15T08:51:36.5160756+01:00:Assembly resolving Jil, Version=2.17.0.0, Culture=neutral, PublicKeyToken=null
2021-11-15T08:51:36.5255714+01:00:2021-11-15T08:51:36.5244664+01:00:[AssemblyCache] Trying to resolve 'Jil' from .deps.json file
2021-11-15T08:51:36.5268626+01:00:2021-11-15T08:51:36.5261759+01:00:[AssemblyCache] Resolved 'Jil' to 'C:\Users\dominique.boyer\.nuget\packages\jil\2.17.0\lib\netstandard2.0\Jil.dll'
2021-11-15T08:51:36.5884652+01:00:2021-11-15T08:51:36.5832483+01:00:OutOfProcessTestAssemblyExecutor: RunTest error: System.TypeInitializationException: The type initializer for 'ALOP.Context' threw an exception.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\net5.0\Conf\conf.json'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at ALOP.Context..cctor() in C:\DEV\GIT\alop\ALOP\Src\Context.cs:line 9
--- End of inner exception stack trace ---
at ALOP.Context.get_UseCustomTracerPlugin() in C:\DEV\GIT\alop\ALOP\Src\Context.cs:line 66
at ALOP.CustomTracer.SpecflowPlugin.CustomTracerPlugin.Initialize(RuntimePluginEvents runtimePluginEvents, RuntimePluginParameters runtimePluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) in C:\DEV\GIT\alop\ALOP\Src\CustomTracerPlugin.cs:line 22
at TechTalk.SpecFlow.Infrastructure.ContainerBuilder.LoadPlugin(String pluginPath, IRuntimePluginLoader pluginLoader, RuntimePluginEvents runtimePluginEvents, UnitTestProviderConfiguration unitTestProviderConfigration, ITraceListener traceListener, Boolean traceMissingPluginAttribute) in D:\a\1\s\TechTalk.SpecFlow\Infrastructure\ContainerBuilder.cs:line 169
at TechTalk.SpecFlow.Infrastructure.ContainerBuilder.LoadPlugins(IRuntimeConfigurationProvider configurationProvider, ObjectContainer container, RuntimePluginEvents runtimePluginEvents, SpecFlowConfiguration specFlowConfiguration, UnitTestProviderConfiguration unitTestProviderConfigration, Assembly testAssembly) in D:\a\1\s\TechTalk.SpecFlow\Infrastructure\ContainerBuilder.cs:line 151
at TechTalk.SpecFlow.Infrastructure.ContainerBuilder.CreateGlobalContainer(Assembly testAssembly, IRuntimeConfigurationProvider configurationProvider) in D:\a\1\s\TechTalk.SpecFlow\Infrastructure\ContainerBuilder.cs:line 60
at TechTalk.SpecFlow.TestRunnerManager.CreateTestRunnerManager(Assembly testAssembly, IContainerBuilder containerBuilder) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 215
at TechTalk.SpecFlow.TestRunnerManager.GetTestRunnerManager(Assembly testAssembly, IContainerBuilder containerBuilder, Boolean createIfMissing) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 203
at TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(Assembly testAssembly, IContainerBuilder containerBuilder) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 232
at ALOP_SpecFlowPlusRunnerAssemblyHooks.AssemblyInitialize() in C:\DEV\GIT\alop\ALOP\obj\x64\Debug\net5.0\SpecFlow.Plus.Runner.AssemblyHooks.cs:line 12
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.Execute(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunAssemblyInitializeExecutors(ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(ITestAssemblyExecutorState executorState, ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.InProcess.InProcAppDomainTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProcess.OutOfProcessTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
2021-11-15T08:51:36.6094181+01:00:2021-11-15T08:51:36.5891618+01:00:OutOfProcessTestAssemblyExecutorReceiver - Error at RunTests - System.TypeInitializationException: The type initializer for 'ALOP.Context' threw an exception.
---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\net5.0\Conf\conf.json'.
at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.InternalReadAllText(String path, Encoding encoding)
at System.IO.File.ReadAllText(String path)
at ALOP.Context..cctor() in C:\DEV\GIT\alop\ALOP\Src\Context.cs:line 9
--- End of inner exception stack trace ---
at ALOP.Context.get_UseCustomTracerPlugin() in C:\DEV\GIT\alop\ALOP\Src\Context.cs:line 66
at ALOP.CustomTracer.SpecflowPlugin.CustomTracerPlugin.Initialize(RuntimePluginEvents runtimePluginEvents, RuntimePluginParameters runtimePluginParameters, UnitTestProviderConfiguration unitTestProviderConfiguration) in C:\DEV\GIT\alop\ALOP\Src\CustomTracerPlugin.cs:line 22
at TechTalk.SpecFlow.Infrastructure.ContainerBuilder.LoadPlugin(String pluginPath, IRuntimePluginLoader pluginLoader, RuntimePluginEvents runtimePluginEvents, UnitTestProviderConfiguration unitTestProviderConfigration, ITraceListener traceListener, Boolean traceMissingPluginAttribute) in D:\a\1\s\TechTalk.SpecFlow\Infrastructure\ContainerBuilder.cs:line 169
at TechTalk.SpecFlow.Infrastructure.ContainerBuilder.LoadPlugins(IRuntimeConfigurationProvider configurationProvider, ObjectContainer container, RuntimePluginEvents runtimePluginEvents, SpecFlowConfiguration specFlowConfiguration, UnitTestProviderConfiguration unitTestProviderConfigration, Assembly testAssembly) in D:\a\1\s\TechTalk.SpecFlow\Infrastructure\ContainerBuilder.cs:line 151
at TechTalk.SpecFlow.Infrastructure.ContainerBuilder.CreateGlobalContainer(Assembly testAssembly, IRuntimeConfigurationProvider configurationProvider) in D:\a\1\s\TechTalk.SpecFlow\Infrastructure\ContainerBuilder.cs:line 60
at TechTalk.SpecFlow.TestRunnerManager.CreateTestRunnerManager(Assembly testAssembly, IContainerBuilder containerBuilder) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 215
at TechTalk.SpecFlow.TestRunnerManager.GetTestRunnerManager(Assembly testAssembly, IContainerBuilder containerBuilder, Boolean createIfMissing) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 203
at TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(Assembly testAssembly, IContainerBuilder containerBuilder) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 232
at ALOP_SpecFlowPlusRunnerAssemblyHooks.AssemblyInitialize() in C:\DEV\GIT\alop\ALOP\obj\x64\Debug\net5.0\SpecFlow.Plus.Runner.AssemblyHooks.cs:line 12
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.Execute(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunAssemblyInitializeExecutors(ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(ITestAssemblyExecutorState executorState, ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.InProcess.InProcAppDomainTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProcess.OutOfProcessTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProcess.OutOfProcessTestAssemblyExecutorReceiver.RunTests(TestThreadState testThreadState)
2021-11-15T08:51:36.6279249+01:00:test thread #0 error: StreamJsonRpc.RemoteInvocationException: The type initializer for 'ALOP.Context' threw an exception.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](Nullable`1 id, String targetName, IReadOnlyList`1 arguments, CancellationToken cancellationToken, Boolean isParameterObject)
at TechTalk.SpecFlow.Plus.RPC.TcpRpcClient.Invoke[T](String methodName, Object[] parameters)
at TechTalk.SpecFlow.Plus.RPC.AsyncHelper.RunSync[TResult](Func`1 func)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorClient.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.RemoteExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorHost.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.RunNonEmptyTestSuite(CancellationToken cancellationToken, TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.Run(ITestExecutionManager executionManagerForRun, CancellationToken cancellationToken)
at TechTalk.SpecRun.Framework.AsyncTestThreadRunner.RunSync(TestExecutionManager executionManager, CancellationToken cancellationToken)
2021-11-15T08:51:36.6287016+01:00:test thread error: TechTalk.SpecRun.Framework.SpecRunException: At least one test thread aborted.
---> StreamJsonRpc.RemoteInvocationException: The type initializer for 'ALOP.Context' threw an exception.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](Nullable`1 id, String targetName, IReadOnlyList`1 arguments, CancellationToken cancellationToken, Boolean isParameterObject)
at TechTalk.SpecFlow.Plus.RPC.TcpRpcClient.Invoke[T](String methodName, Object[] parameters)
at TechTalk.SpecFlow.Plus.RPC.AsyncHelper.RunSync[TResult](Func`1 func)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorClient.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.RemoteExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorHost.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.RunNonEmptyTestSuite(CancellationToken cancellationToken, TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.Run(ITestExecutionManager executionManagerForRun, CancellationToken cancellationToken)
at TechTalk.SpecRun.Framework.AsyncTestThreadRunner.RunSync(TestExecutionManager executionManager, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
2021-11-15T08:51:36.6333753+01:00:Thread#-1: Test #319/0 is started on thread #-1
2021-11-15T08:51:36.6343853+01:00:Thread#-1: Test #319/0 is finished on thread #-1 as Skipped within 0,0004233 seconds
2021-11-15T08:51:36.6362526+01:00:Thread#-1:Scheduler: get next test for thread -1
2021-11-15T08:51:36.6362881+01:00:Thread#:Scheduler: at the end of normal test queue
2021-11-15T08:51:36.6362923+01:00:Thread#-1:Scheduler: enumerator for thread is at end
2021-11-15T08:51:36.6672987+01:00;Thread#12;Info;test run finished
2021-11-15T08:51:36.6674863+01:00;Thread#12;Info;publishing test results
2021-11-15T08:51:36.6678483+01:00;Thread#12;Info;Not publishing results.
2021-11-15T08:51:36.6680596+01:00;Thread#12;Info;test results published
2021-11-15T08:51:36.6702221+01:00;Thread#12;Info;generating reports
2021-11-15T08:51:36.7350963+01:00;Thread#12;Info;Starting external report generation process
2021-11-15T08:51:38.3453866+01:00;Thread#12;Info;Successfully generated reports.
2021-11-15T08:51:38.3516626+01:00;Thread#12;Info;Successfully generated reports
2021-11-15T08:51:38.3596784+01:00:Total: 1
2021-11-15T08:51:38.3618156+01:00:Succeeded: 0
2021-11-15T08:51:38.3621384+01:00:Ignored: 0
2021-11-15T08:51:38.3623809+01:00:Pending: 0
2021-11-15T08:51:38.3623866+01:00:Skipped: 1
2021-11-15T08:51:38.3626081+01:00:Failed: 0
2021-11-15T08:51:38.3644930+01:00;VSTestExecutionThread;Info;Adding attachments to VSTest
2021-11-15T08:51:38.3649936+01:00;VSTestExecutionThread;Info;adding Test Execution Report 'C:\DEV\GIT\alop\TestResults\Unnamed project__2021-11-15T085133.html'
========== End of log file ==========
-
Hi Dominique BOYER,
You're dead right, it is trying to resolve these dependencies in a path that clearly does not exists...
My logs -
2021-11-15T13:16:31.2466440+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Users\jorwe\source\repos\SpecFlowProject2\SpecFlowProject2\bin\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0'
2021-11-15T13:16:31.2466456+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Users\jorwe\source\repos\SpecFlowProject2\SpecFlowProject2\bin\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Validation.dll'
2021-11-15T13:16:31.2468963+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Users\jorwe\source\repos\SpecFlowProject2\SpecFlowProject2\bin\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Validation.exe'
2021-11-15T13:16:31.2469436+00:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Users\jorwe\source\repos\SpecFlowProject2\SpecFlowProject2\bin\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0'
2021-11-15T13:16:31.2539389+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.11'
2021-11-15T13:16:31.2539500+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.11\Microsoft.VisualStudio.Validation.dll'
2021-11-15T13:16:31.2543390+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.11\Microsoft.VisualStudio.Validation.exe'
2021-11-15T13:16:31.2544035+00:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App\5.0.11'
2021-11-15T13:16:31.2545744+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.11'
2021-11-15T13:16:31.2545880+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.11\Microsoft.VisualStudio.Validation.dll'
2021-11-15T13:16:31.2546282+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.11\Microsoft.VisualStudio.Validation.exe'
2021-11-15T13:16:31.2546591+00:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.11'
2021-11-15T13:16:31.2548061+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.11'
2021-11-15T13:16:31.2548120+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.11\Microsoft.VisualStudio.Validation.dll'
2021-11-15T13:16:31.2548576+00:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.11\Microsoft.VisualStudio.Validation.exe'
2021-11-15T13:16:31.2548930+00:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\5.0.11'However this is not directly the cause of your issue as I am able to execute tests just fine with unresolved dependencies. (I will pass this onto our devs in any case)
My question is, what is this file? Just some json in the project set to copy? Do you have some custom code to read from it?
\Conf\conf.json
0 -
This is a json configuration file that provide more settings to our tests builds, for example :
- to send email results
- to store tests statistics (steps durations)
- to capture tests video
- to add a backup/restore strategy around the test execution campaign
{
"BackupRootPath": "\\\\nas-02\\Public\\Backups SQL\\CIS\\DataSets\\",
"DboUser": "login",
"DboPassword": "pwd",
"ApplicationName": "FunctionalTestsERP",
"ApplicationUrl": "http://url/FunctionalTestsERP_FB/",
"UseCustomTracerPlugin": false,
"MailTo": [ "to_be_defined@example.com" ],
"DataSource": "QA-DB02-2017",
"Public": {
"DatabaseName": "FunctionalTestsERP_FB_QA",
"LogicalName": "FunctionalTestsERP_FB_QA",
"BackupDatabaseName": "FunctionalTestsERP_FB_QA.bak"
},
"Admin": {
"DatabaseName": "FunctionalTestsERP_FB_QA_ADM",
"LogicalName": "FunctionalTestsERP_FB_QA_ADM",
"BackupDatabaseName": "FunctionalTestsERP_FB_QA_ADM.bak"
},
"Statistics": {
"Enabled": false,
"DataSource": "QA-DB02-2017",
"DboUser": "apm",
"DboPassword": "P@ssw0rd",
"DatabaseName": "Alop",
"TableName": "Results"
},
"VideoCapture": {
"Path": "c:\\temp\\",
"Enabled": false,
"CaptureMode": "Window"
}
}0 -
Can you share the logic you are using to read this file?
0 -
Sure, this is very basic :
public static class Context
{
private static Config _config = Jil.JSON.Deserialize<Config>(File.ReadAllText(Path.Combine(AppContext.BaseDirectory, @"Conf\conf.json")));....
}
So the file is read the first time we get a Context property.
Also note that everything is working fine with NUnit runner.
0 -
I thought this would be the case... this property behaves differently between runners.
There is an interface that collects the correct value and is resolved correctly based on the runner, so it makes it runner agnostic, at least that's what I remember from it. Let me fish it out and see if this helps.
0 -
Scrap that, I had my wires crossed with something else...
I think you can try something like this, it might not be the most elegant but it produces the same result for both runners I tested (NUnit & SF+R) -
Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase.Substring(8))
0 -
Thanks that's fine, now my json file is loaded.
But now it fails on another error :
error: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'. (0,0s)
2021-11-15T18:21:27.5869469+01:00:2021-11-15T18:21:27.5677789+01:00:OutOfProcessTestAssemblyExecutor: RunTest error: System.TypeLoadException: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'.
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)Note that I get exactly the same error using an empty specflow template.
--------------------------------------- Full log ----------------------------------------------
2021-11-15T18:21:24.1039418+01:00;VSTestExecutionThread;Info;SpecFlow+Runner execution started
2021-11-15T18:21:24.1040964+01:00;VSTestExecutionThread;Info;SpecFlow+Runner 3.9.7 in Framework net50 in x64 mode execution started
2021-11-15T18:21:24.1041002+01:00;VSTestExecutionThread;Info;TestAdapter Location: C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\TechTalk.SpecRun.VisualStudio.TestAdapter.dll
2021-11-15T18:21:24.1062557+01:00;VSTestExecutionThread;Info;Current UserName: 'dominique.boyer', MachineName: 'DBO'
2021-11-15T18:21:24.1416691+01:00;VSTestExecutionThread;Info;SpecRun: running tests in C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T18:21:24.1419326+01:00;VSTestExecutionThread;Info;Output folder configured to "C:\DEV\GIT\alop\TestResults" (default)
2021-11-15T18:21:24.1420323+01:00;VSTestExecutionThread;Info;Profile:
2021-11-15T18:21:24.1835932+01:00;VSTestExecutionThread;Info;Log file path: C:\DEV\GIT\alop\TestResults\Unnamed project__2021-11-15T182124.log
2021-11-15T18:21:24.1872664+01:00;Thread#12;Info;Checking activation
2021-11-15T18:21:24.3487965+01:00;Thread#12;Info;Activated.
2021-11-15T18:21:24.3496472+01:00;Thread#12;Info;Activation check completed
2021-11-15T18:21:24.3511073+01:00;Thread#12;Info;Starting test run
2021-11-15T18:21:24.4560830+01:00;Thread#12;Info;Discovering target: Default
2021-11-15T18:21:24.4563843+01:00;Thread#12;Info;Discovering tests from assembly: C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T18:21:24.5805958+01:00;Thread#12;Info;Discovered tests from assembly: C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T18:21:24.5824890+01:00:Test Suite Dump
2021-11-15T18:21:24.5836377+01:00:#0: Unnamed project/ -
2021-11-15T18:21:24.5836544+01:00:#1: Default -
2021-11-15T18:21:24.5836564+01:00:#2: ALOP -
2021-11-15T18:21:24.5836580+01:00:#318: Actions simples -
2021-11-15T18:21:24.5849625+01:00:#319: ERP-7568-1 _ Je crée une action dans mon périmètre (aucune unité) - Sous-menu Actions simples - TestAssembly:ALOP/Feature:Actions+simples/Scenario:ERP-7568-1+_+Je+cr%c3%a9e+une+action+dans+mon+p%c3%a9rim%c3%a8tre+(aucune+unit%c3%a9)+-+Sous-menu+Actions+simples
2021-11-15T18:21:24.5850020+01:00:End: Test Suite Dump
2021-11-15T18:21:24.5988587+01:00:Thread#0:Scheduler: get next test for thread 0
2021-11-15T18:21:24.6000998+01:00:Thread#:Scheduler: testitem #319 from normal test queue
2021-11-15T18:21:24.6001436+01:00:Thread#0:Scheduler: considering testitem #319 for thread 0
2021-11-15T18:21:24.6041505+01:00:Thread#0:TestItem#319:testItemMatchesCurrentTestThread:UnSpecific
2021-11-15T18:21:24.6041677+01:00:Thread#0:TestItem#319:runsOnOneOtherThreadSpecific:False
2021-11-15T18:21:24.6041694+01:00:Thread#0:TestItem#319:runsOnOneOtherThreadUnspecific:False
2021-11-15T18:21:24.6041719+01:00:Thread#0:Scheduler: using testitem #319 for thread 0
2021-11-15T18:21:24.6046349+01:00:Thread#0:Scheduler: Test #319 is scheduled for thread
2021-11-15T18:21:24.6053893+01:00:Thread#0:Scheduler: with testItemExecutionIndex 0
2021-11-15T18:21:24.6070513+01:00:Thread #0: creating new test thread executor for ALOP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null (target: Default)
2021-11-15T18:21:24.6090050+01:00:Thread #0: Creating test assembly executor for execution model OutProc
2021-11-15T18:21:24.6091451+01:00:Thread #0: Creating test assembly executor for execution model OutProc
2021-11-15T18:21:24.6108776+01:00:Thread #0: using TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorHost to execute tests
2021-11-15T18:21:24.6124625+01:00:starting Out Of Process Executor
2021-11-15T18:21:24.6140584+01:00:Assembly resolving Microsoft.VisualStudio.Validation, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
2021-11-15T18:21:24.6165482+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' from .deps.json file
2021-11-15T18:21:24.6166478+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' from .deps.json
2021-11-15T18:21:24.6195385+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T18:21:24.6198973+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Validation.dll'
2021-11-15T18:21:24.6200258+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Validation.exe'
2021-11-15T18:21:24.6200633+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T18:21:24.6202613+01:00:TargetFramework: .NETCoreApp,Version=v5.0
2021-11-15T18:21:24.6207565+01:00:Tfm: netcoreapp5.0
2021-11-15T18:21:24.6207700+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0'
2021-11-15T18:21:24.6207716+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Validation' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Validation.dll'
2021-11-15T18:21:24.6208630+01:00:[AssemblyCache] Found file 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Validation.dll' for assembly 'Microsoft.VisualStudio.Validation'
2021-11-15T18:21:24.6212828+01:00:[AssemblyCache] Resolved 'Microsoft.VisualStudio.Validation' to C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Validation.dll
2021-11-15T18:21:24.6217902+01:00:Starting callback TCP Rpc server
2021-11-15T18:21:24.6341826+01:00:Asynchronously starting background TCP Rpc Server on port 32768
2021-11-15T18:21:24.6342182+01:00:Started callback TCP Rpc server on port 32768
2021-11-15T18:21:24.6342206+01:00:Starting logger TCP Rpc server
2021-11-15T18:21:24.6360054+01:00:Asynchronously starting background TCP Rpc Server on port 32769
2021-11-15T18:21:24.6360360+01:00:Started logger TCP Rpc server on port 32769
2021-11-15T18:21:24.6466986+01:00:Executing test executor at 'dotnet' 'exec "C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\net5.0\TechTalk.SpecRun.Framework.Executor.anycpu.net5_0.dll" --remoteRunnerPid 44184 --uniqueId "2021-11-15T182124" --outputFolder "C:\DEV\GIT\alop\TestResults" --callbackPort 32768 --loggerPort 32769' in 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T18:21:24.6591754+01:00:Executor with PID 5936 has been started successfully.
2021-11-15T18:21:24.6620160+01:00:Out of Process Executor 5936 started
2021-11-15T18:21:24.6620336+01:00:Waiting for endpoint
2021-11-15T18:21:24.9942777+01:00:Assembly resolving Microsoft.VisualStudio.Threading, Version=15.3.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
2021-11-15T18:21:24.9942972+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' from .deps.json file
2021-11-15T18:21:24.9942999+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' from .deps.json
2021-11-15T18:21:24.9943072+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T18:21:24.9943092+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Threading.dll'
2021-11-15T18:21:24.9943594+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\Microsoft.VisualStudio.Threading.exe'
2021-11-15T18:21:24.9943992+01:00:[AssemblyCache] Could not resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0'
2021-11-15T18:21:24.9944030+01:00:TargetFramework: .NETCoreApp,Version=v5.0
2021-11-15T18:21:24.9944242+01:00:Tfm: netcoreapp5.0
2021-11-15T18:21:24.9944293+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' in folder 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0'
2021-11-15T18:21:24.9944307+01:00:[AssemblyCache] Trying to resolve 'Microsoft.VisualStudio.Threading' to 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Threading.dll'
2021-11-15T18:21:24.9945201+01:00:[AssemblyCache] Found file 'C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Threading.dll' for assembly 'Microsoft.VisualStudio.Threading'
2021-11-15T18:21:24.9952117+01:00:[AssemblyCache] Resolved 'Microsoft.VisualStudio.Threading' to C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlowPlusRunner\netcoreapp5.0\Microsoft.VisualStudio.Threading.dll
2021-11-15T18:21:25.6314079+01:00:Remote executor port received: 32770
2021-11-15T18:21:25.6324875+01:00:Creating executor TCP client on port 32770
2021-11-15T18:21:25.6392516+01:00:Created executor TCP client on port 32770
2021-11-15T18:21:25.6392963+01:00:Connecting to remote executor TCP server
2021-11-15T18:21:25.6446682+01:00:Connected remote executor TCP server
2021-11-15T18:21:25.6451674+01:00:trying to connect to Out of Process Executor the 1 attempt
2021-11-15T18:21:25.6452092+01:00:Connection to Out of Process Executor established in the 1 attempt
2021-11-15T18:21:25.8142362+01:00:2021-11-15T18:21:25.8132992+01:00:OutOfProcessTestAssemblyExecutor: initialized for C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll on test thread #0
2021-11-15T18:21:25.8177603+01:00:Endpoint 5936 started
2021-11-15T18:21:25.8347093+01:00:2021-11-15T18:21:25.8343431+01:00:OutOfProcessTestAssemblyExecutor: running tests...
2021-11-15T18:21:25.9279669+01:00:2021-11-15T18:21:25.9275462+01:00:Assembly resolving TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41
2021-11-15T18:21:25.9306602+01:00:2021-11-15T18:21:25.9302472+01:00:[AssemblyCache] Trying to resolve 'TechTalk.SpecFlow' from .deps.json file
2021-11-15T18:21:25.9330046+01:00:2021-11-15T18:21:25.9326011+01:00:[AssemblyCache] Resolved 'TechTalk.SpecFlow' to 'C:\Users\dominique.boyer\.nuget\packages\specflow\3.9.40\lib\netstandard2.0\TechTalk.SpecFlow.dll'
2021-11-15T18:21:26.0365628+01:00:2021-11-15T18:21:26.0361367+01:00:Thread#0:T:-> Loading plugin C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\ALOP.dll
2021-11-15T18:21:26.0377429+01:00:2021-11-15T18:21:26.0373735+01:00:Assembly resolving Microsoft.Extensions.DependencyModel, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
2021-11-15T18:21:26.0382336+01:00:2021-11-15T18:21:26.0379608+01:00:[AssemblyCache] Trying to resolve 'Microsoft.Extensions.DependencyModel' from .deps.json file
2021-11-15T18:21:26.0391840+01:00:2021-11-15T18:21:26.0386792+01:00:[AssemblyCache] Resolved 'Microsoft.Extensions.DependencyModel' to 'C:\Users\dominique.boyer\.nuget\packages\microsoft.extensions.dependencymodel\1.0.3\lib\netstandard1.6\Microsoft.Extensions.DependencyModel.dll'
2021-11-15T18:21:26.0754696+01:00:2021-11-15T18:21:26.0750890+01:00:Assembly resolving Microsoft.DotNet.PlatformAbstractions, Version=1.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60
2021-11-15T18:21:26.0759140+01:00:2021-11-15T18:21:26.0756785+01:00:[AssemblyCache] Trying to resolve 'Microsoft.DotNet.PlatformAbstractions' from .deps.json file
2021-11-15T18:21:26.0767578+01:00:2021-11-15T18:21:26.0762605+01:00:[AssemblyCache] Resolved 'Microsoft.DotNet.PlatformAbstractions' to 'C:\Users\dominique.boyer\.nuget\packages\microsoft.dotnet.platformabstractions\1.0.3\lib\netstandard1.3\Microsoft.DotNet.PlatformAbstractions.dll'
2021-11-15T18:21:26.0874217+01:00:2021-11-15T18:21:26.0870644+01:00:Assembly resolving nunit.framework, Version=3.13.2.0, Culture=neutral, PublicKeyToken=2638cd05610744eb
2021-11-15T18:21:26.0879029+01:00:2021-11-15T18:21:26.0876437+01:00:[AssemblyCache] Trying to resolve 'nunit.framework' from .deps.json file
2021-11-15T18:21:26.0886579+01:00:2021-11-15T18:21:26.0883231+01:00:[AssemblyCache] Resolved 'nunit.framework' to 'C:\Users\dominique.boyer\.nuget\packages\nunit\3.13.2\lib\netstandard2.0\nunit.framework.dll'
2021-11-15T18:21:26.0913598+01:00:2021-11-15T18:21:26.0910003+01:00:Assembly resolving Jil, Version=2.17.0.0, Culture=neutral, PublicKeyToken=null
2021-11-15T18:21:26.0918571+01:00:2021-11-15T18:21:26.0916099+01:00:[AssemblyCache] Trying to resolve 'Jil' from .deps.json file
2021-11-15T18:21:26.0939855+01:00:2021-11-15T18:21:26.0922610+01:00:[AssemblyCache] Resolved 'Jil' to 'C:\Users\dominique.boyer\.nuget\packages\jil\2.17.0\lib\netstandard2.0\Jil.dll'
2021-11-15T18:21:26.1050728+01:00:2021-11-15T18:21:26.1046656+01:00:Assembly resolving Sigil, Version=4.7.0.0, Culture=neutral, PublicKeyToken=2d06c3494341c8ab
2021-11-15T18:21:27.1264250+01:00:2021-11-15T18:21:26.1053288+01:00:[AssemblyCache] Trying to resolve 'Sigil' from .deps.json file
2021-11-15T18:21:27.1303137+01:00:2021-11-15T18:21:27.1289915+01:00:[AssemblyCache] Resolved 'Sigil' to 'C:\Users\dominique.boyer\.nuget\packages\sigil\5.0.0\lib\netstandard2.1\Sigil.dll'
2021-11-15T18:21:27.4623533+01:00:2021-11-15T18:21:27.4616617+01:00:Thread#0:T:-> Loading plugin C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\LivingDoc.SpecFlowPlugin.dll
2021-11-15T18:21:27.4655024+01:00:2021-11-15T18:21:27.4639996+01:00:Assembly resolving LivingDoc.Dtos, Version=3.9.0.0, Culture=neutral, PublicKeyToken=null
2021-11-15T18:21:27.4673410+01:00:2021-11-15T18:21:27.4657648+01:00:[AssemblyCache] Trying to resolve 'LivingDoc.Dtos' from .deps.json file
2021-11-15T18:21:27.4735171+01:00:2021-11-15T18:21:27.4678643+01:00:[AssemblyCache] Resolved 'LivingDoc.Dtos' to 'C:\Users\dominique.boyer\.nuget\packages\specflow.plus.livingdocplugin\3.9.57\lib\netstandard2.0\LivingDoc.Dtos.dll'
2021-11-15T18:21:27.4803533+01:00:2021-11-15T18:21:27.4759977+01:00:Thread#0:T:-> Loading plugin C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlow.Actions.Configuration.SpecFlowPlugin.dll
2021-11-15T18:21:27.4910152+01:00:2021-11-15T18:21:27.4820051+01:00:Thread#0:T:-> Loading plugin C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecFlow.Actions.Selenium.SpecFlowPlugin.dll
2021-11-15T18:21:27.4993350+01:00:2021-11-15T18:21:27.4943466+01:00:Thread#0:T:-> Loading plugin C:\DEV\GIT\alop\ALOP\bin\x64\Debug\net5.0\SpecRun.Runtime.SpecFlowPlugin.dll
2021-11-15T18:21:27.5194555+01:00:2021-11-15T18:21:27.5072776+01:00:Thread#0:T:-> Using default config
2021-11-15T18:21:27.5242946+01:00:2021-11-15T18:21:27.5239106+01:00:Thread#0:T:-> error: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'. (0,0s)
2021-11-15T18:21:27.5869469+01:00:2021-11-15T18:21:27.5677789+01:00:OutOfProcessTestAssemblyExecutor: RunTest error: System.TypeLoadException: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'.
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeConstructorInfo.get_Signature()
at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
at System.Reflection.RuntimeConstructorInfo.GetParameters()
at BoDi.ObjectContainer.<>c.<CreateObject>b__68_0(ConstructorInfo ctor)
at System.Linq.Enumerable.Max[TSource](IEnumerable`1 source, Func`2 selector)
at BoDi.ObjectContainer.CreateObject(Type type, ResolutionList resolutionPath, RegistrationKey keyToResolve)
at BoDi.ObjectContainer.TypeRegistration.<>c__DisplayClass3_0.<ResolvePerContext>b__1()
at BoDi.ObjectContainer.RegistrationWithStrategy.ExecuteWithLock(Object lockObject, Func`1 getter, Func`1 factory, ResolutionList resolutionPath)
at BoDi.ObjectContainer.TypeRegistration.ResolvePerContext(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.RegistrationWithStrategy.Resolve(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.ResolveObject(RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.Resolve(Type typeToResolve, ResolutionList resolutionPath, String name)
at BoDi.ObjectContainer.<>c__DisplayClass71_0.<ResolveArguments>b__0(ParameterInfo p)
at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()
at BoDi.ObjectContainer.ResolveArguments(IEnumerable`1 parameters, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.CreateObject(Type type, ResolutionList resolutionPath, RegistrationKey keyToResolve)
at BoDi.ObjectContainer.TypeRegistration.<>c__DisplayClass3_0.<ResolvePerContext>b__1()
at BoDi.ObjectContainer.RegistrationWithStrategy.ExecuteWithLock(Object lockObject, Func`1 getter, Func`1 factory, ResolutionList resolutionPath)
at BoDi.ObjectContainer.TypeRegistration.ResolvePerContext(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.RegistrationWithStrategy.Resolve(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.ResolveObject(RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.Resolve(Type typeToResolve, ResolutionList resolutionPath, String name)
at BoDi.ObjectContainer.Resolve(Type typeToResolve, String name)
at BoDi.ObjectContainer.Resolve[T](String name)
at BoDi.ObjectContainer.Resolve[T]()
at TechTalk.SpecFlow.TestRunnerManager.CreateTestRunnerInstance() in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 122
at TechTalk.SpecFlow.TestRunnerManager.CreateTestRunner(Int32 threadId) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 55
at TechTalk.SpecFlow.TestRunnerManager.GetTestRunnerWithoutExceptionHandling(Int32 threadId) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 155
at TechTalk.SpecFlow.TestRunnerManager.GetTestRunner(Int32 threadId) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 136
at TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(Assembly testAssembly, IContainerBuilder containerBuilder) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 232
at ALOP_SpecFlowPlusRunnerAssemblyHooks.AssemblyInitialize() in C:\DEV\GIT\alop\ALOP\obj\x64\Debug\net5.0\SpecFlow.Plus.Runner.AssemblyHooks.cs:line 12
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.Execute(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunAssemblyInitializeExecutors(ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(ITestAssemblyExecutorState executorState, ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.InProcess.InProcAppDomainTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProcess.OutOfProcessTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
2021-11-15T18:21:27.5976367+01:00:2021-11-15T18:21:27.5874095+01:00:OutOfProcessTestAssemblyExecutorReceiver - Error at RunTests - System.TypeLoadException: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'.
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
at System.Reflection.RuntimeConstructorInfo.get_Signature()
at System.Reflection.RuntimeConstructorInfo.GetParametersNoCopy()
at System.Reflection.RuntimeConstructorInfo.GetParameters()
at BoDi.ObjectContainer.<>c.<CreateObject>b__68_0(ConstructorInfo ctor)
at System.Linq.Enumerable.Max[TSource](IEnumerable`1 source, Func`2 selector)
at BoDi.ObjectContainer.CreateObject(Type type, ResolutionList resolutionPath, RegistrationKey keyToResolve)
at BoDi.ObjectContainer.TypeRegistration.<>c__DisplayClass3_0.<ResolvePerContext>b__1()
at BoDi.ObjectContainer.RegistrationWithStrategy.ExecuteWithLock(Object lockObject, Func`1 getter, Func`1 factory, ResolutionList resolutionPath)
at BoDi.ObjectContainer.TypeRegistration.ResolvePerContext(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.RegistrationWithStrategy.Resolve(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.ResolveObject(RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.Resolve(Type typeToResolve, ResolutionList resolutionPath, String name)
at BoDi.ObjectContainer.<>c__DisplayClass71_0.<ResolveArguments>b__0(ParameterInfo p)
at System.Linq.Enumerable.SelectArrayIterator`2.ToArray()
at BoDi.ObjectContainer.ResolveArguments(IEnumerable`1 parameters, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.CreateObject(Type type, ResolutionList resolutionPath, RegistrationKey keyToResolve)
at BoDi.ObjectContainer.TypeRegistration.<>c__DisplayClass3_0.<ResolvePerContext>b__1()
at BoDi.ObjectContainer.RegistrationWithStrategy.ExecuteWithLock(Object lockObject, Func`1 getter, Func`1 factory, ResolutionList resolutionPath)
at BoDi.ObjectContainer.TypeRegistration.ResolvePerContext(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.RegistrationWithStrategy.Resolve(ObjectContainer container, RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.ResolveObject(RegistrationKey keyToResolve, ResolutionList resolutionPath)
at BoDi.ObjectContainer.Resolve(Type typeToResolve, ResolutionList resolutionPath, String name)
at BoDi.ObjectContainer.Resolve(Type typeToResolve, String name)
at BoDi.ObjectContainer.Resolve[T](String name)
at BoDi.ObjectContainer.Resolve[T]()
at TechTalk.SpecFlow.TestRunnerManager.CreateTestRunnerInstance() in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 122
at TechTalk.SpecFlow.TestRunnerManager.CreateTestRunner(Int32 threadId) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 55
at TechTalk.SpecFlow.TestRunnerManager.GetTestRunnerWithoutExceptionHandling(Int32 threadId) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 155
at TechTalk.SpecFlow.TestRunnerManager.GetTestRunner(Int32 threadId) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 136
at TechTalk.SpecFlow.TestRunnerManager.OnTestRunStart(Assembly testAssembly, IContainerBuilder containerBuilder) in D:\a\1\s\TechTalk.SpecFlow\TestRunnerManager.cs:line 232
at ALOP_SpecFlowPlusRunnerAssemblyHooks.AssemblyInitialize() in C:\DEV\GIT\alop\ALOP\obj\x64\Debug\net5.0\SpecFlow.Plus.Runner.AssemblyHooks.cs:line 12
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.ExecuteInternal(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TaskExecutors.StaticOrInstanceMethodExecutor.Execute(ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunAssemblyInitializeExecutors(ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(ITestAssemblyExecutorState executorState, ITestAssemblyExecutorsProvider testAssemblyExecutorsProvider, ITestThreadExecutionContext testThreadExecutionContext)
at TechTalk.SpecRun.Framework.TestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.InProcess.InProcAppDomainTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProcess.OutOfProcessTestAssemblyExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProcess.OutOfProcessTestAssemblyExecutorReceiver.RunTests(TestThreadState testThreadState)
2021-11-15T18:21:27.6236292+01:00:test thread #0 error: StreamJsonRpc.RemoteInvocationException: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](Nullable`1 id, String targetName, IReadOnlyList`1 arguments, CancellationToken cancellationToken, Boolean isParameterObject)
at TechTalk.SpecFlow.Plus.RPC.TcpRpcClient.Invoke[T](String methodName, Object[] parameters)
at TechTalk.SpecFlow.Plus.RPC.AsyncHelper.RunSync[TResult](Func`1 func)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorClient.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.RemoteExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorHost.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.RunNonEmptyTestSuite(CancellationToken cancellationToken, TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.Run(ITestExecutionManager executionManagerForRun, CancellationToken cancellationToken)
at TechTalk.SpecRun.Framework.AsyncTestThreadRunner.RunSync(TestExecutionManager executionManager, CancellationToken cancellationToken)
2021-11-15T18:21:27.6245604+01:00:test thread error: TechTalk.SpecRun.Framework.SpecRunException: At least one test thread aborted.
---> StreamJsonRpc.RemoteInvocationException: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'.
at StreamJsonRpc.JsonRpc.InvokeCoreAsync[TResult](Nullable`1 id, String targetName, IReadOnlyList`1 arguments, CancellationToken cancellationToken, Boolean isParameterObject)
at TechTalk.SpecFlow.Plus.RPC.TcpRpcClient.Invoke[T](String methodName, Object[] parameters)
at TechTalk.SpecFlow.Plus.RPC.AsyncHelper.RunSync[TResult](Func`1 func)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorClient.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.RemoteExecutor.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.Execution.OutOfProc.StreamJsonRPC.OutOfProcessTestAssemblyExecutorHost.RunTests(TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.RunNonEmptyTestSuite(CancellationToken cancellationToken, TestThreadState testThreadState)
at TechTalk.SpecRun.Framework.TestThread.Run(ITestExecutionManager executionManagerForRun, CancellationToken cancellationToken)
at TechTalk.SpecRun.Framework.AsyncTestThreadRunner.RunSync(TestExecutionManager executionManager, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
2021-11-15T18:21:27.6335481+01:00:Thread#-1: Test #319/0 is started on thread #-1
2021-11-15T18:21:27.6374228+01:00:Thread#-1: Test #319/0 is finished on thread #-1 as Skipped within 0,0015581 seconds
2021-11-15T18:21:27.6399223+01:00:Thread#-1:Scheduler: get next test for thread -1
2021-11-15T18:21:27.6399626+01:00:Thread#:Scheduler: at the end of normal test queue
2021-11-15T18:21:27.6399700+01:00:Thread#-1:Scheduler: enumerator for thread is at end
2021-11-15T18:21:27.6852231+01:00;Thread#12;Info;test run finished
2021-11-15T18:21:27.6854085+01:00;Thread#12;Info;publishing test results
2021-11-15T18:21:27.6858448+01:00;Thread#12;Info;Not publishing results.
2021-11-15T18:21:27.6861292+01:00;Thread#12;Info;test results published
2021-11-15T18:21:27.6885503+01:00;Thread#12;Info;generating reports
2021-11-15T18:21:27.7637917+01:00;Thread#12;Info;Starting external report generation process
2021-11-15T18:21:29.5912415+01:00;Thread#12;Info;Successfully generated reports.
2021-11-15T18:21:29.5935405+01:00;Thread#12;Info;Successfully generated reports
2021-11-15T18:21:29.6007421+01:00:Total: 1
2021-11-15T18:21:29.6026953+01:00:Succeeded: 0
2021-11-15T18:21:29.6030113+01:00:Ignored: 0
2021-11-15T18:21:29.6032499+01:00:Pending: 0
2021-11-15T18:21:29.6032577+01:00:Skipped: 1
2021-11-15T18:21:29.6034834+01:00:Failed: 0
2021-11-15T18:21:29.6089449+01:00;VSTestExecutionThread;Info;Adding attachments to VSTest
2021-11-15T18:21:29.6092110+01:00;VSTestExecutionThread;Info;adding Test Execution Report 'C:\DEV\GIT\alop\TestResults\Unnamed project__2021-11-15T182124.html'
========== End of log file ==========0 -
Dominique BOYER which packages are installed in your project please?
0 -
Hello Jordan Western,
Here is the list of the nuget installed packages :
<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.2.0" />
<PackageReference Include="Jil" Version="2.17.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="3.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.0.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="NUnit" Version="3.13.2" />
<PackageReference Include="ScreenRecorderLib" Version="3.1.2" />
<PackageReference Include="Selenium.Support" Version="4.0.1" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="95.0.4638.6900" />
<PackageReference Include="Sigil" Version="5.0.0" />
<PackageReference Include="SpecFlow" Version="3.9.40" />
<PackageReference Include="SpecFlow.Actions.Selenium" Version="0.1.177" />
<PackageReference Include="SpecFlow.CustomPlugin" Version="3.9.40" />
<PackageReference Include="SpecFlow.Plus.LivingDocPlugin" Version="3.9.57" />
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.9.40" />
<PackageReference Include="SpecRun.SpecFlow" Version="3.9.7" />
<PackageReference Include="System.Management" Version="6.0.0" />
</ItemGroup>0 -
Dominique BOYER can you remove the following and try again.
<PackageReference Include="SpecFlow" Version="3.9.40" />
<PackageReference Include="SpecFlow.Tools.MsBuild.Generation" Version="3.9.40" />
0 -
It doesn't change anything, I still get the same error :
2021-11-16T13:54:25.9602172+01:00:2021-11-16T13:54:25.9302665+01:00:Thread#0:T:-> error: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'. (0,0s)
2021-11-16T13:54:26.0113497+01:00:2021-11-16T13:54:26.0106576+01:00:OutOfProcessTestAssemblyExecutor: RunTest error: System.TypeLoadException: Could not load type 'TechTalk.SpecFlow.CucumberMessages.ICucumberMessageSender' from assembly 'TechTalk.SpecFlow, Version=3.9.0.0, Culture=neutral, PublicKeyToken=0778194805d6db41'.
at System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)Thanks for your help
0 -
Hey Dominique BOYER,
I removed <PackageReference Include="SpecFlow.CustomPlugin" Version="3.9.40" />with success, why however I am unsure. There's clearly something funky happening, I will need to refer this to our devs.
I will get back to you once I have a response.
0 -
Hi Dominique BOYER,
I think we have found the issue, it will require an update to the packages.
I plan to do this in the next few days, apologies for the inconvenience.
I will let you know once complete.
0 -
Hi Jordan Western, thanks for the support !
I'm eager to test this.
0 -
Hi Dominique BOYER this issue should now be resolved.
please updated the packages to the latest and have another go :)
Let me know in case of any issues.
Thanks!
0
Please sign in to leave a comment.
Comments
15 comments