Coder Social home page Coder Social logo

java-webdriver-restassured-framework's Introduction

WebDriver and RestAssured Test Framework

This test framework has been created using Java, Selenium WebDriver, TestNG and RestAssured.

Prerequisites:

Execution

  • Clone the repository
  • Open terminal or command prompt and cd to the 'java-webdriver-restassured-framework' directory

To Run all tests

Run command : mvn clean test

To Run UI tests only

Run command mvn clean test -Dgroups=ui_test

To Run API tests only

Run command mvn clean test -Dgroups=api_test

Tests

There are two Test classes found under /test/java/tmsandbox/tests directory. The 'UsedCarsUITests' class contains 3 tests to do the following:

  • Navigate to https://www.tmsandbox.co.nz/motors/used-cars/more-makes
  • Get the list of Used cars brands on the page
  • Match the list of car brands against the sandbox API
  • Verify the brand 'Kia' exists in the list and print the number of listings for it.
  • Verify the brand 'Hispano Suiza' does not exist in the list

The 'UsedCarsAPITests' class contains 3 tests to do the following:

WebDriver UI Tests

The WebDriver UI Tests are designed to run on Chrome or Firefox. The tests are run in parallel - the number of threads can be changed in the pom.xml file.

Report

Extent HTML report and Maven surefire reports are generated after the run. Extent HTML report can be found in the /results/html_report directory.

java-webdriver-restassured-framework's People

Contributors

vidz2 avatar

Watchers

James Cloos 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.