Skip to Content

Rest-Assured API Automation  


Request for price


Length: 5 day (40 hours)

 

Course objectives

After completing this course, students will be able to:

    • Automate CRUD Operations: Perform and validate all standard HTTP methods with complex payloads.
    • Handle Dynamic Data: Use Serialization/Deserialization (POJOs) to convert Java objects to JSON and vice versa.
    • Master Complex Parsing: Extract specific data from nested JSON/XML using JsonPath and XmlPath.
    • Secure Your Tests: Automate APIs protected by OAuth 2.0, Bearer Tokens, and JWT.
    • Architect Frameworks: Build a maintainable framework using Spec Builders, Utility classes, and External Data Sources (Excel/JSON).
    • CI/CD & Reporting: Integrate with Jenkins/GitHub Actions and generate rich Allure/Extent Reports.

Course outlines

    • Phase 1: The Rest-Assured Foundation
      • Environment Setup: Configuring Maven dependencies (Rest-Assured, TestNG, Jackson).
      • BDD Basics: Mastering the given-when-then syntax and static imports.
      • Validation: Asserting Status Codes, Response Headers, and Response Time.
      • Logging: Capturing Request and Response details for debugging.
    • Phase 2: Advanced Payload Handling
      • Serialization: Creating POJO (Plain Old Java Objects) classes to handle complex JSON bodies.
      • Deserialization: Converting API responses back into Java objects for easy assertion.
      • Complex JSON: Handling Nested Arrays, Objects, and dynamic values.
      • Schema Validation: Using JSON Schema Validator to ensure structural integrity.
    • Phase 3: Real-World Scenarios
      • Request Chaining: Capturing an ID from a POST response and using it in a subsequent GET or DELETE call.
      • Parameters: Working with Query Parameters, Path Parameters, and Form Data.
      • Authentication: Implementing Basic Auth, Digest Auth, and modern Token-based flows.
      • Mocking: Using WireMock to simulate backend APIs that are still under development.
    • Phase 4: Enterprise Framework & AI (2026 Update)
      • Design Patterns: Implementing the Service Object Model (SOM) for API services.
      • Data-Driven Testing: Integration with Apache POI (Excel) or JSON data files.
      • Optimization: Using RequestSpecBuilder and ResponseSpecBuilder to avoid code duplication.
      • AI Integration: Leveraging AI tools for automated test case generation and analyzing flaky API responses.


Download Outlines