Automation Framework project for UI / API test automation using Selenium, RestSharp and .NET core 3.1, the framework follows the Page Object Model pattern concepts.
SUT: DemoQA
API Testing: PetStore
The repository is integrated with a CI/CD github actions pipeline.
- Go to the repository Actions page https://github.com/figuedmundo/TestAutomation/actions
- In the workflows tree Click on Testing pipeline
- Click Run Workflow menu button
- Click Run Workflow button
This will trigger the action and the results can be reviewed in Calliope.Pro in the following address:
To enter to the dashboard you can use the following credentials
- email: [email protected]
- password: Control123!
- Chrome Browser
- .NET Core 3.1
The configuration file is appsettings.json
. It is located in TestAutomation.Testcases project.
{
"Browser": "Chrome",
"ReportPath": "/Users/<userName>/"
}
The Browser by default is Chrome and the ReportPath by default is "TestAutomation.TestCases/TestResults/". To set up the Report Path make sure that the user has write privileges.
- Clone the repository
$ git clone https://github.com/figuedmundo/TestAutomation.git
-
Configure Report Path (Optional)
-
Build the projects
$ cd TestAutomation
$ dotnet build
- Execute the Test Cases
$ dotnet test TestAutomation.TestCases/TestAutomation.TestCases.csproj
-
Open the AutomationReport.html from the path specified. (The path by default is TestAutomation.TestCases/TestResults/AutomationReport.html)
-
Enjoy!
The next step for the framework would be implement BDD with the help of SpecFlow