Skip to content

sadabnepal/APIRestAssuredTestNGFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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