Skip to content

This repository contains automated Postman tests for the Ticket Booking API, covering user login, authorization, booking creation, updating bookings, fetching booking details by ID, and pinging the service for availability.

Notifications You must be signed in to change notification settings

ayeshaasajid/ticket-booking-api-automation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎟️ Ticket Booking API Automation

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.


πŸ“ Project Structure

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.

βœ… Features Tested

  • πŸ” 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.


πŸš€ How to Run the Tests

  1. Install Postman (if not already):
    Download Postman

  2. Import the Collection:

  3. Run the Tests:

    • Use the Collection Runner in Postman.
    • Select the collection and run all tests.
    • Optionally export the report.

πŸ“Š Reporting


πŸ› οΈ Tools Used

  • Postman – For API test design and execution
  • Newman (optional) – To run tests from CLI and generate advanced reports

πŸ“Œ Notes

  • 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.

πŸ§‘β€πŸ’» Author

Ayesha Sajid
GitHub: @ayeshaasajid


About

This repository contains automated Postman tests for the Ticket Booking API, covering user login, authorization, booking creation, updating bookings, fetching booking details by ID, and pinging the service for availability.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages