Skip to content

rsshekhawat/Test_API_Framework_Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Test_API_Framework_Example

This is a basic api test automation framework structure and example using RestAssured library and POJO model.

Tools Used :

  1. Programming Language : Java 17
  2. Build Automation Tool : Maven (v3.8.4)
  3. Test Framework : TestNG (v7.6.1)
  4. API Test Library : RestAssured (v5.2.0)
  5. Java Model : POJO (Plain Old Java Object)

Other Maven Dependencies

  1. jackson-databind (com.fasterxml.jackson.core) : Used to serialize java object to json
  2. json-path (com.jayway.jsonpath) : Used to deserialize json to java object

Project Structure

image

Note : This is a example test api framework. Only the files highlighted in yellow have the code, rest java files are empty.

Steps to run tests :

Run 'TestCreateBooking.xml' to run CreateBooking tests.

Test Data :

Test data is passed via the test xml file using parameters tag.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages