This repository contains automated testing project for a demo e-commerce application, including test plan, test cases, automated smoke tests, and bug reports.
The testing project is conducted on the demo e-commerce application available at https://demo.nopcommerce.com/. This application serves as a simulated environment for testing various functionalities and scenarios.
-
Clone or download this repository to your local machine.
-
Open the
SmokeTestAutomation.slnsolution file in Visual Studio. -
Build the solution by selecting
Build>Build Solutionfrom the top menu. -
Run the tests by selecting
Test>Run All Testsfrom the top menu. -
After running the tests, you'll see the test results in the Test Explorer window. Green checkmarks indicate passed tests, while red crosses indicate failed tests. You can view detailed test results and logs here.
-
Clone or download this repository to your local machine.
-
Open your command-line interface (CLI).
-
Navigate to the directory where the
SmokeTestAutomation.csprojfile is located. -
Run the following command to build the project and restore dependencies:
dotnet build
-
Once the build is successful, run the tests using the following command:
dotnet test -
After running the tests, you'll see the test results in the CLI. Green checkmarks indicate passed tests, while red crosses indicate failed tests. Additionally, you can find detailed test results and logs in the
TestResultsdirectory generated by thedotnet testcommand.
Regardless of whether you run the tests through Visual Studio or the CLI, you'll receive detailed test results indicating which tests passed and which ones failed. You can use these results to verify the functionality of the SmokeTestAutomation project.
- Write Test Cases: Concentrate on real user flows and create comprehensive test cases for the application. Find the detailed test cases in the docs folder under the files Test Cases.pdf
- Identify Smoke Tests: Determine which test cases represent a Smoke Test. Review the identified Smoke Tests in the docs folder in the document Identification of Smoke Tests.pdf.
- Report Positive and Negative Test Cases: Differentiate between positive and negative test cases. Refer to the document Positive and Negative Test Cases.pdf for the identified positive and negative test cases in the docs folder.
- Report Bugs: If any bugs are found during testing, report them with detailed steps to reproduce. Refer to the document Bug Report.pdf in the docs folder for reported bugs and steps to reproduce them.