Skip to content

RestAssuredAPIFramework development for TrusTrace Assignment

Notifications You must be signed in to change notification settings

sarathselvi/RestAssuredAPIFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

RestAssuredAPIFramework

RestAssuredAPIFramework development for TrusTrace Assignment - 2

Description

RestAssured Framword helps in automating the API's POST call. It is developed using JAVA and several other components like Maven, TestNG, ExtentReports and JSON Libraries. The current setup can be scaled up to accomadate other methods like GET, PUT, DELETE and etc. For POST Method, Faker library is used to generate random values for input params.

Installation Process

The following tools are required to run the automation scripts in local machine.

  1. Eclipse IDE for Java Developers (includes Incubating components) - Version: 2022-03 (4.23.0)
  2. Install Eclipse m2e - Maven support in Eclipse IDE from Eclipse Marketplace
  3. Install TestNG for Eclipse plugin from Eclipse Marketplace

Setup

The following process will help in setting up the project.

  1. Import/Pull the project in Eclipse
  2. Edit the config.properties file present inside the folder - \src\test\resources\Configuration\config.properties (a) URI (b) PATHPARAM

Execution

  1. Once the project is setup in Eclipse, right click on the project and click "Run As" and Select "Maven Test"
  2. This will executre the classes configured in testng.xml
  3. In order to run specific set of tests, create new testng.xml and change the properties of maven-surefire-plugin from "<suiteXmlFile>testng.xml</suiteXmlFile>" to the new suite file name

Reports

  1. Extent Report is used to document all the test execution.
  2. Report will be automatically opened once the execution is completed.
  3. We can also find the reports under user.dir/extent-test-output/

About

RestAssuredAPIFramework development for TrusTrace Assignment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published