Skip to content

Testing Restful booking API, it consists of a simple booking-controller that allows you to create, update, delete and view existing bookings.

Notifications You must be signed in to change notification settings

alipala/RestAPITest

Repository files navigation

RestAPITest

Testing Restful booking API, it consists of a simple booking-controller that allows you to create, update, delete and view existing bookings.

Tested API

Getting Started

The project can be cloned from GitHub. Since it is a maven project, all the dependencies will be imported easily on your local machine for the enhancing the development and test.

Prerequisites and Installation

Java installation should be done and added to the PATH. Beside of this MAVEN_HOME should be added to the path. 
Also, Java IDE. I have used IntelliJ Community Edition 2019, but you can choose an IDE whatever you want. For example, Eclipse.
Please note that, after cloning the repository there will be a Jenkins_Configuration.rar file located in the root. This file includes all the required configuration, and you should import this file to create a job the same as me. 
Note: JDK version: jdk1.8.0_211

Running the tests

Jenkins:

Please read this blog post Build a maven project to run test

TestNG:

  • Goto Edit Configuration and set the project as TestNG project.

Maven:

  • Goto project root folder and for running all tests
mvn clean test
  • for running all tests in a class
mvn -Dtest=BookingTest clean test
  • for a running single test
mvn -Dtest=BookingTest#getAllBookings clean test

Project Structure

- API: 
- Payloads: 
- Test: API tests in order to verify the functionality of the API

Built With

  • JAVA - Programming Language
  • TestNG - The testing framework
  • RESTAssured - It is for testing and validating REST services in Java
  • Maven - It is a build automation tool used for Java projects
  • Jenkins - It is an open source automation server to build the job periodically with required plugins

Methods

1. Behaviour Driven Development

Authors

  • Ali Pala - See the all repositories - Ali Pala

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

About

Testing Restful booking API, it consists of a simple booking-controller that allows you to create, update, delete and view existing bookings.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages