Skip to content

ismail-elshafeiy/TestAutomation_JAVA

Repository files navigation

Me

🔧 Technologies


📝 Project Design patterns:


✏ Project Structure:

  ├── ConsoleLogs
  ├── ExtentReport
  └── src
      ├── main
      │   ├── com.project 
      │   │   ├── api
      │   │   └── gui
      │   │       ├── pages
      │   │       └── screens  
      │   ├── framework --> engine
      │   │   ├── gui.actions
      │   │   ├── api.actions
      │   │   ├── browser
      │   │   └── tools  
      │   └── resources
      │       └── configerations --> properties file
      │
      └── test
          ├── testcases 
          │   ├── api
          │   └── gui
          │       ├── web
          │       └── mobile 
          ├── testSenarios
          │   └── end_to_end
          └── resources
              ├── testData
              ├── uploads files
              ├── apk   
              └── screenshots
  └── pom.xml
  └── README.md


👉 Click here to Run the Test cases locally using IntelliJ IDEA:
  • A properties file project.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: engine.tools.listeners.TestngListener
  • Execute All testSuites using Command-line opening a command-line terminal on the project root path and run the following command:
  mvn clean test
  • After executing,generate the Allure Report by opening a command-line terminal on the project root path and run the following command:
 mvn allure:serve
CTRL+C to stop the server and type 'y'
  mvn clean
  • Find the Extent Report ExtentReports.html in the project root path for the latest execution and open by any browser


👉 Click here to Run the Test cases 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/main/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/main/resources/docker-compose.yml down --remove-orphans