-
Notifications
You must be signed in to change notification settings - Fork 0
Getting started
Anton Shcherbyna edited this page Aug 15, 2023
·
4 revisions
ScenarioSync is a synchronization tool that can be invoked from the command line. This guide shows you step-by-step how the synchronization tool can be configured.
- Install dotnet 6 or higher.
- For setting up ScenarioSync for Azure DevOps, you need a LightBDD test framework project and an Azure DevOps project with Test Plan.
- For a synchronization target we use an Azure DevOps project: https://dev.azure.com/organization-name/project-name. (An Azure DevOps project for testing ScenarioSync can be created for free from the Azure DevOps website, use a Basic plan User License.
In our guide, we will use a LightBDD.XUnit2 example that uses LightBDD framework with XUnit. The sample project can be found there GitHub.
- Open the terminal and clone Demo project from the GitHub repository
git clone https://github.com/khdevnet/LightBDD.ScenarioSync.Demo.git- Open the project directory "LightBDD.ScenarioSync.Demo" in the terminal and run tests
dotnet test- In the project directory "LightBDD.ScenarioSync.Demo" install the ScenarioSync dotnet tool.
dotnet new tool-manifestdotnet tool install --local LightBDD.ScenarioSync.Cli- Create scenariossync tool config file, or create it manually
dotnet scenariosync init- Update the configurations file with your settings. More details.
{
"projectUrl": "https://dev.azure.com/organization-name/project-name",
"patToken": "personal token with permissions TestManagement write\u0026read, WorkItems write\u0026read",
"testPlanId": 1,
"reportPath": "./Reports/FeaturesReport.xml",
"rootTestSuite": "LightBddSync"
}- Synchronize scenarios with Azure DevOps Test Plan
dotnet scenariosync push