Skip to main content

Unable to run tests with Specflow+Runner and .NET 5

Answered

Comments

15 comments

  • Jordan Western

    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
  • Dominique BOYER

    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
  • Jordan Western

    Dominique BOYER

    Can you share the logic you are using to read this file?

    0
  • Dominique BOYER

    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
  • Jordan Western

    Dominique BOYER,

    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
  • Jordan Western

    Dominique BOYER

    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
  • Dominique BOYER

    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
  • Jordan Western

    Dominique BOYER which packages are installed in your project please?

    0
  • Dominique BOYER

    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
  • Jordan Western

    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
  • Dominique BOYER

    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
  • Jordan Western

    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
  • Jordan Western

    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
  • Dominique BOYER

    Hi Jordan Western, thanks for the support !

    I'm eager to test this.

    0
  • Jordan Western

    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.

Powered by Zendesk