We were earlier using the SpecFlow framework but now we intend to migrate to the ReqNRoll framework. Can I migrate to SpecFlow tests (working on LambdaTest) to the ReqnRoll framework?
Yes, the porting involves minimal effort. As stated in this SpecFlow Actions blog , SpecFlow had a solution called SpecFlow Actions that enables integration of the SpecFlow tests with Selenium.
It manages the browser’s lifetime and offers simple configuration options and Selenium helper methods.
Reqnroll has a Nuget package named Reqnroll.SpecFlowCompatibility.Actions.LambdaTest which provides compatibility actions for integrating Reqnroll with LambdaTest. The package is designed to ease migration from SpecFlow projects that utilized SpecFlow.Actions.LambdaTest
.
Let’s port this existing LambdaTest SpecFlowActions repo to Reqnroll. Modify the .csproj
and remove all the references to SpecFlow and add Reqnroll packages in it.
<PackageReference Include="Reqnroll.SpecFlowCompatibility.Actions.LambdaTest" Version="0.2.6" />
<PackageReference Include="Reqnroll.NUnit" Version="2.4.1" />
Rename specflow.actions.xxx.json
to reqnroll.actions.xxx.json
. With this, you are all set to run Reqnroll tests on LambdaTest.
Execution (parallel execution of at feature-level) :
export LT_USERNAME=<LT_USERNAME>
export LT_ACCESS_KEY=<LT_ACCESS_KEY>
dotnet test LTSpecFlow.sln
Follow this support documentation on Getting Started with SpecFlow Actions [SpecFlow Automation Tutorial] | LambdaTest