Automating Selenium SpecFlow based Test Cases in Azure DevOps Pipeline
I have a legacy .NET project badsed on .NET Framework 4.6.2 (Visual Studio 2017) which contains Test Cases (more than 1000) written in Selenium using SpecFlow BDD FRamework. I can see that there are test case specs written in .feature file.
I want to automate whole test cases using Azure DevOps Release pipeline. I was able to build the solution locally so then I implemented build pipeline to build the solition and test project. The output artifact also gets generated correctly with proper .dlls and other references.
Now I have created a Release Pipeline using Self.hosted Windows agent. So using deployment group as an option, I have added couple of tasks like VS Test Installer and VS Test. After running the pipeline, I get error as ‘Could not load type 'TechTalk.SpecFlow.Infrastructure.RuntimePluginAttribute' from assembly 'TechTalk.SpecFlow, Version=188.8.131.52…’. When I ran the tests using command prompt inside the VM, i got the same error.
I though it could be because of not having the latest versions of SpecFlow and Nunit so I upgraded both packages considering the compatible versions. But after upgrading the Nuget packages, TechTalk.SpecFlow dll was missing from the references and I was not able to build the project.
Please provide some guidance around this issue.
Please sign in to leave a comment.