Welcome to the Advanced Rest Assured Demo repository! This project showcases the advanced capabilities of Rest Assured, a powerful library for testing and validating RESTful APIs, using a (fake) booking API as an example.
This repository serves as a demonstration of how to leverage Rest Assured for complex API testing scenarios. By interacting with a fake booking API, you can explore features like request/response validation, authentication and usage of helper files.
- Advanced Request Validations: Learn how to validate JSON responses, headers, and status codes.
- Authentication and Authorization: Demonstrates handling of API authentication mechanisms.
- Data-Driven Testing: Example of using external data sources to drive test cases.
- Custom Request/Response Logging: Techniques for enhanced logging and debugging.
- Sending request using a POJO with random data.
- TestData management
- CRUD methods
To get started with this project, follow these steps:
-
Clone the Repository:
git clone https://github.com/Smitzel/RestAssured_BookingApi.git
-
Set Up Environment:
- Ensure you have Java and Maven installed.
- Import the project into your favorite IDE.
- Run the tests to see Rest Assured in action
- Basic setup for Rest Assured for API testing
- Examples of GET, POST and DELETE requests to the Booking API
- Validating JSON responses
- CRUD methods
- Sending request with a .csv data source
Contributions are welcome! Feel free to open issues or submit pull requests to help improve this project.