Code Monkey home page Code Monkey logo

api-and-ui-automation's Introduction

Test automation framework that shows both API and UI automation cases

  1. This project demonstrates POM pattern and how it can be used in Selenium to automate any application. Maven is used as test framework. Also, I've implemented the API automation using Rest Assured.

  2. For passing test data, and for separating test types UI, API etc Cucumber is utilized.

  3. For reporting cucumber reports are used and reports can be found in the folder "target/cucumber-reports/advanced-reports/cucumber-html-reports/feature- overview.html". Also, there are different styles of reports inside "target" folder

  4. For UI failed cases, screenshots can be found in folder "screenShots" folder.

  5. Prerequisite: JDK 8 or above, and Maven 3.6 or above

  6. To run the all the tests use the following command:

    mvn clean install

    Tests are divided and in ui and api, and tagged with @ui and @api in feature files.

    If a user wants to run only API tests the command for that is :

    mvn test -Dcucumber.filter.tags="@api"

    If a user wants to run only ui tests the command for that is :

    mvn test -Dcucumber.filter.tags="@ui"

  7. A user can also directly run "src/test/java/runner/TestRunner.java" file to execute tests

  8. Logs can be found as application.log inside the project

api-and-ui-automation's People

Contributors

prit-misik avatar pritshar avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

pom2012

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.