Skip to content

bharathkumar-gopalan/code-challenge-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

The API automation for the code challange

Prerequisites:

This project requires maven(3.X) to be installed and configured . For more details please refer to https://maven.apache.org/install.html

Running the project

  1. Navigate to the automation-api-challenge folder (that contains the pom.xml) in the command prompt
  2. type mvn clean test . The automation will kick in running all the cases

Notes

  1. This project uses OKHttp client and does not use a framework approach . So detailed configuration for different environments and other features are not available at this moment !

A note on assertion messages

You might have noticed that the testNG AssertTrue messages are positive , This is done for a reason . For example consider the folowing line Assert.assertTrue(200 == API_CREATED_CODE, "The API gave a 200 response --"); When this fails , TestNG will report as follows

java.lang.AssertionError: The API gave a 200 response -- expected [true] but found [false]

Libraries used

  1. SLF4j and SLF4J log4J binding : For logging
  2. TestNG : Testing framework for running the test cases
  3. OKHttp client : The HTTP client for automation
  4. gson : for json serialization and deserialization

About

The API automation challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages