Giter VIP home page Giter VIP logo

testautomation_using_shaft_engine's Introduction

๐Ÿ”ง 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".

testautomation_using_shaft_engine's People

Contributors

dependabot[bot] avatar ismail-elshafeiy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.