This Repository is created to automate e-com platform Daraz by using Selenium with C#.
- C#
- .NET(net6.0)
- Selenium WebDriver
- NUnit(3.13.3)
- Extent Report
AutomationTask
│
├── Config
│ └── BaseTest.cs
│
├── Pages
| ├── CartPageObjects.cs
│ ├── LandingPageObjects.cs
│ ├── LoginPageObjects.cs
│ ├── ProductObjects.cs
│ └── RegisterPageObjects.cs
│
├── Suite
│ └── ValidateUserRegistrationPurchaseFlowTests.cs
│
├── Tests
│ ├── Language
| | |── LanguageTests.cs
| | |__ LanguageActions.cs
| |
│ |.....
|
├── Utility
├── TestData.cs
|── ExtentReporterHelper.cs
└── UtilityActions.cs
🔹 To run this project, make sure your workstation has:
- Should have Visual Studio .NET 6.0 SDK installed
1.1. To verify use the command >> ' dotnet --list-sdks '
1.2. If see this >> ' 6.0.xxx ' than you good to go.
- Clone the Repository.
- Restore Dependencies.
- Build the Project.
- Run Tests
🔹 Run Commands:
dotnet test --filter Category=E2E
dotnet test --filter Category=LanguageChange
dotnet test --filter Category=Login
dotnet test --filter Category=UserRegistration
dotnet test --filter Category=LoginProductAddToCart
dotnet test --filter Category=LoginAddToCartBuyProduct
After test execution, perform following command to get the report:
open bin/Debug/net6.0/Reports/ExtentReport.html
- No real OTP is used.
- No payment is completed.
- Login uses predefined test users.
- Pages contain only locators.
- Actions contain business logic and assertion.
With Command:
With UI:
Execution.By.Ui.Single.TestFile.2.mp4