Skip to content

ismail-elshafeiy/TestAutomation_using_SHAFT_ENGINE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔧 Technologies


📝 Project Design patterns:


✏ Project Structure:

  ├── main
  │   ├── com.dentolize 
  │   │   └── modules
  │   │       ├── api
  │   │       └── gui --> pages
  │   ├── utils 
  │   └── resources
  │       └──  properties -> configerations
  ├── test
  │   ├── testcases 
  │   │   ├── modules --> Test Functions
  │   └── resources
  │       ├── testData
  │       ├── testSuits
  │       ├── uploads files
  │       └── docker-compose.yml
  ├── pom.xml
  └── README.md


👉 Click here Run to the Test cases locally using IntelliJ IDEA

Pre-requisites: jdk-17 and maven should be installed

  • Set the properties including all the configurations

  • Set the test Data from TestData

  • Edit your run configuration templates before running your tests by following these steps:
    - Open 'Edit Run/Debug Configurations' dialog > Edit Configurations... > Edit configuration templates...
    - Select TestNG > Listeners > and add this listener:
    com.shaft.tools.listeners.AlterSuiteListener, com.shaft.tools.listeners.SuiteListener , com.shaft.tools.listeners.InvokedMethodListener

  • Execute All tests using Command-line opening a terminal on the project root path and run the following command:

mvn clean test
mvn clean test
mvn -Dtest="nopCommerce.tests.**" test
  • After executing,The report will be generated automatically after running the test.

  • Find the Extent Report ExtentReports.html in the project root path for the latest execution and open by any browser



👉 Click here to the Run the Test remotely using Selenium-Grid and Docker:

Pre-requisites: Docker Desktop should be installed.

  • To start selenium-grid using docker-compose; at the root directory of the project, run the following command:
docker-compose -f src/test/resources/docker-compose.yml up --scale chrome=2 --remove-orphans -d
mvn test
  • To end/down selenium grid; at the root directory, run the following command:
docker-compose -f src/test/resources/docker-compose.yml down --remove-orphans


👉 Click here to show the Test Cases:
* Verify the user Can "Register" via email.
* Verify the user Can "Login" via email.
* Verify the user can "Change password".
* Verify the user can "Login with New Password".
* Verify the user Can "Search" with Keyword.
* Verify the user can "Search" via auto complete.
* Verify the user can "ContactUs" and send Message.
* Verify the user can "Add Product to Cart"
* Verify the user can "Add Product to Wishlist"
* Verify the user can "Add Products to Compare".
* Verify the user can "Email Product to Friend".
* Verify the user can "Check out Product".