API Automation Test is RestAssured based TestNG framework to perform API testing.
1. git clone https://github.com/sadabnepal/APIRestAssuredTestNGFramework.git
2. Navigate to APIRestAssuredTestNGFramework
- Localhost: http://localhost:3000/
- ReqRes API: https://reqres.in/
- Navigate to
src/main/app
folder and run below commandsnpm 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
<ROOT_PROJECT>/reports/index.html