Skip to content

ismail-elshafeiy/TestAutomation_using_SHAFT_ENGINE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

48 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".

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages