SwagLabsTests is a web test automation project developed with Playwright with SpecFlow and Page Objects Model (POM) in .NET (C#) to test the shopping cart features on Swag Labs webpage.
- Clone the project
git clone [email protected]:kmfortunato/SwagLabsTests.git
- Install NuGet packages
nuget restore
- Run the tests
Use the .feature
files to run the tests for better visualization.
At the appsettings.json
file there are the URL, username and password info.
At the specflow.actions.json
file there are some options for config the tests executions:
browser
is set to Chrome, but there are other available options, such as Firefox and Chromium.--start-maximized
argument to maximize the browser window to the current screen size (note that this argument is different for each chosen browser).headless
set true to not to see the tests executions (the browser tabs won't open).