Giter Site home page Giter Site logo

testframework's Introduction

Web and REST API Test Framework

This is a starter project for my Web and REST API Test Automation projects. It uses Page Object Model with page objects containing action methods as well. It also includes some demo test cases for automating sample test cases in Automationpractice.com and GoREST API

Components

  • Selenide(Selenium wrapper - Web UI Testing)
  • REST Assured(API Testing)
  • JUnit(Test Orchestration)
  • Allure(Reporting)
  • Java Faker(Test Data Generation)

Steps

  1. Add the UI tests to the src/test/java directory under the ui.tests package
  2. Add the page objects to the src/test/java directory under the ui.pageobject package
  3. Add the API tests to the src/test/java directory under the api.tests package
  4. Add any helper methods and entities to be used in tests to to the src/main/java directory under the entities and util packages

Note: The files located within the demo.* package are sample ui & api tests and related test files. You can check those for help while creating tests

Commandline Test Run

mvn test

Reporting

Allure results are generated in the root directory under allure-results after test run. To open the allure results, you can use the mvn allure:serve maven goal from command line.

You can also uncomment the serve goal in the pom.xml under build/plugins/plugin/executions/execution/goals to activate auto-serve and open the allure report after the test run in your default browser automatically.

Project Structure

  • reports - contains allure results and screenshots
  • src/main/java - Framework related classes
    • entities - Entities and Enums for test classes
  • util - Helper classes
  • src/test/resource - properties and configuration files
  • src/test/java - Test Classes
    • api.tests - API Test Classes
    • ui.tests - UI Test Classes
    • ui.pageobjects - Pageobjects for UI Classes
  • src/test/resource - Test Resources

testframework's People

Contributors

renjujv avatar

Watchers

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