GithubHelp home page GithubHelp logo

elhusseinyibrahim / automation_task Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 27 KB

This is a sample project to showcase how to get started using SHAFT_Engine, and how to use some of its rich features while applying the best practices for Test Automation project design.

Java 100.00%
test-automation shaft-engine page-object-model-design-pattern testing api-testing gui-testing assertions

automation_task's Introduction

Automation Task

This is where I Show My Knowledge and Skills in Test Automation!

The main Frameworks included in the project:

  • SHAFT: Unified Test Automation Engine

Project Design:

  • Page Object Model (POM) design pattern
  • Data Driven framework
  • Fluent design approach (method chaining)
  • Implementing the Test Automation Pyramid by having 2 different test automation levels which are SERVICE and GUI layers
  • Attaching a screenshot to the Allure Report report (in case of gui)
  • Attaching the response body to the Allure Report report (in case of api)

Project Test Cases:

Web GUI Test Automation:

First Test

  • Navigate to "https://www.google.com/ncr"
  • Search for "selenium webdriver"
  • Check that the third result text contains "What is Selenium WebDriver?"

second Test

Third Test

  • Navigate to "https://the-internet.herokuapp.com/"
  • Click on "Dynamic Loading"
  • Click on "Example 2"
  • Click "Start"
  • Wait for loading to finish
  • Check that the text displayed is "Hello World!"

API Test Automation:

How to run the project main test cases locally:

  • Simply import this project to your eclipse (or favorite JAVA IDE)
  • If you wish to use SHAFT with IntelliJ please apply these settings:
    Run/Debug Configurations > Edit Configurations... > Templates > TestNG > Configuration > Listeners > Add all SHAFT_Engine Listeners [AlterSuite, InvokedMethod, Suite]
  • You can Run the Project Using CMD ("mvn test -Dtest="HeroKuappTestCases,GoogleSearchTestCase,RandomCatFactTestCase")
  • Watch this simple 5-minute live-demo: https://drive.google.com/file/d/1NxBpObvbBHdMjL4tl7PlpRNi7U9lMfW8/view
  • You Can find the test cases in the src/test/java folder mainly.
  • After executing, you can easily generate the Allure Report you can find the Extent Report generate_allure_report.Bat in the project root path for the latest execution

Important Links:

automation_task's People

Contributors

elhusseinyibrahim 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.