This repository contains automated API tests for the Ticket Booking System, created using Postman. The project validates key functionalities of the API including user authentication, booking creation, retrieval, updating, and health checks.
File/Folder | Description |
---|---|
ticketbookingpostman_collection.json |
Postman collection containing all the test cases across API endpoints. |
TicketBookingAPIReport.html |
Exported HTML report showing the results of test executions. |
- π User Login & Authorization
- π₯ Create New Booking
- π€ Update Existing Booking
- π Get Booking by ID
- π Get All Bookings
- π©Ί Ping Service (Health Check)
Each test case includes proper status code validation, field validation, and negative test scenarios.
-
Install Postman (if not already):
Download Postman -
Import the Collection:
- Open Postman.
- Click on
Import
>Upload Files
. - Select
ticketbookingpostman_collection.json
.
-
Run the Tests:
- Use the
Collection Runner
in Postman. - Select the collection and run all tests.
- Optionally export the report.
- Use the
- HTML report:
TicketBookingAPIReport.html
- Contains summary, detailed test results, and assertion outcomes.
- Postman β For API test design and execution
- Newman (optional) β To run tests from CLI and generate advanced reports
- Make sure the API base URL and authentication details (if required) are correctly configured in the environment.
- The tests are designed for demonstration purposes and follow standard API testing practices.
Ayesha Sajid
GitHub: @ayeshaasajid