This designed as an base for creating a UI test using SpecFlow and Coypu.
This project uses C# to drive UI and automation tests to verify that NAIT is working as expected. SpecFlow is used to describe the tests using Gherkin syntax.
Visual Studio will need to be installed. You can install it from here
Open the solution file (.sln) in this folder and within Visual Studio build the solution.
dotnet test -s test.runsettings
where the runsettings file matches the location of a file which would vary according to environment.
For example, for a dev environment the file would be dev.runsettings
.
- Select the runsettings file desired by selecting
Test->Select Settings file
from the menu bar (This may be within a global settings sub menu.) - View all tests
Test->Test Explorer
- Run tests by right clicking on an individual scenario or feature and selecting
Run
Download SpecFlow Visual Studio extension and double click on it to install it.
filter is Namespace.FeatureName.ScenarioName
dotnet test --filter "SpecFlowUiTests.Features.DevOpsFeature.FindDevOpsBlog"
dotnet test --filter "SpecFlowUiTests.Features.DevOpsFeature"
dotnet test --filter "SpecFlowUiTests.Features.SubFolder"