Skip to content

Latest commit

 

History

History
58 lines (50 loc) · 3.03 KB

README.md

File metadata and controls

58 lines (50 loc) · 3.03 KB

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: