/APIFramework

Problem Statement: The team RCB has submitted it's team for upcoming match, the details of the match in JSON format, we will be writing a test that validates that the team has only four foreign players and there is at least one wicket keeper

Primary LanguageJava

API Automation with Rest Assured JAVA

Problem Statement: The team RCB has submitted it's team for upcoming match, the details of the match in JSON format, we will be writing a test that validates that the team has only four foreign players and there is at least one wicket keeper

Documentation

Features

  • Maven Project with all the framework dependencies
  • Implemented JUnit Runner to run the framework
  • Utilities for reusable Selenium methods
  • Extent reports to capture test results

Instructions

  • JDK 1.8+ (make sure Java class path is set)
  • Maven (make sure .m2 class path is set)
  • Plugins for JUnit, Cucumber, Natural in Eclipse/intelliJ
  • Fork/Clone repository or download zip and set it up in your local workspace.
  • You can run the test locally simply by pasting the feature tag in TestRunner.java file
  • Go to your project directory from terminal and hit following commands
mvn test 
mvn test -Dcucumber.Options="--tags @Regression" (to select specific tag)

To Run on Jenkins

  • Provide the project Git source URL or you can downlaod/fork the project directory and give the path while creating the job.
  • Select Invoke Top level maven targets under Build section
test
test -Dcucumber.Options="--tags @Regression"

Project Structure

This is an image

Reports

  • The Extent Reports are stored test-output/SparkReport folder