sadabnepal / APIRestAssuredTestNGFramework

API Test framework using RestAssured and TestNG.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API Automation Test framework

API Automation Test is RestAssured based TestNG framework to perform API testing.

Pre-requisite

Java Maven NodeJs

Getting Started

1. git clone https://github.com/sadabnepal/APIRestAssuredTestNGFramework.git
2. Navigate to APIRestAssuredTestNGFramework

API Sources:

- Localhost: http://localhost:3000/
- ReqRes API: https://reqres.in/

Running Test

  • Navigate to src/main/app folder and run below commands
    • npm install to install required dependencies for local api (nodejs required)
    • npm start to start local api server (leave the terminal opened)
  • Open other terminal from root project folder and run mvn test OR
  • Open project in code editor like eclipse or intellij idea ==> right click on testng.xml ==> run as testng.xml

Report Path

<ROOT_PROJECT>/reports/index.html

Sample Report

image

About

API Test framework using RestAssured and TestNG.


Languages

Language:Java 100.0%