API Test Automation with REST Assured

Automate reliable, maintainable REST API tests in Java with REST Assured and CI.

  • Duration45 hours
  • FormatOnsite, online or hybrid
  • LevelIntermediate
  • LabsCloud sandbox included
Request a proposalDownload the brochure (PDF)

About this programme

A hands-on programme for building API test automation in Java: REST and HTTP fundamentals, REST Assured's given-when-then syntax, JSON and XML validation, authentication, reusable specifications and a framework integrated with TestNG, reporting and CI/CD.

Who it is for QA engineers, SDETs and Java developers

What your team will be able to do

  • Explain REST, HTTP methods, status codes and where API tests fit
  • Write readable REST Assured tests with given-when-then
  • Validate complex JSON and XML with JsonPath, XmlPath and Hamcrest
  • Test secured APIs with Basic, OAuth2 and bearer-token authentication
  • Build a reusable API test framework with reporting and CI/CD

Before you start

  • Basic Java
  • Understanding of HTTP and REST APIs

Course outline

5 modules · 21 sessions

    1. APIs and their role in modern applications
    2. Why API testing matters in the SDLC
    3. REST: endpoints, HTTP methods, status codes, headers and bodies
    4. REST Assured compared with other API testing tools
    1. JDK, Maven or Gradle, and IDE set-up
    2. Adding REST Assured with TestNG or JUnit
    3. Global configuration: base URI, base path, authentication and headers
    1. Given-when-then syntax
    2. GET, POST, PUT, PATCH and DELETE requests
    3. Validating status codes, headers, content type and body
    4. Parsing JSON and XML with JsonPath and XmlPath
    1. Data-driven tests with parameterisation
    2. Serialisation and deserialisation of Java objects
    3. Basic, OAuth2 and bearer-token authentication
    4. File uploads and downloads, sessions and cookies
    5. Logging, filters, reusable specifications and Hamcrest matchers
    1. Integrating with TestNG, JUnit and Cucumber
    2. Reporting with Allure or ExtentReports
    3. Running tests in Jenkins or GitLab CI/CD
    4. Framework design, test data management and maintainable tests
    5. Debugging, and an introduction to load and security checks

Sample schedule

6 days onsite, or 12 half-day sessions online

  1. Day 18 hours

    • API testing fundamentals
  2. Day 28 hours

    • API testing fundamentals (continued)
    • Set-up and configuration
    • Core REST Assured
  3. Day 38 hours

    • Core REST Assured (continued)
  4. Day 48 hours

    • Advanced techniques
  5. Day 58 hours

    • Advanced techniques (continued)
    • Frameworks and integration
  6. Day 65 hours

    • Frameworks and integration (continued)

We move days and session lengths around your team’s calendar when we plan the cohort.

Assessment and certification

How learning is checked

  • A short knowledge check on day one and again at the end, so you can see each person's progress
  • Graded hands-on labs in every module, reviewed by the trainer
  • A final exercise that applies the programme to a problem like your team's own

Certificate and exams

  • Participants who complete the programme receive a Cognitive Networks AI certificate of completion.

Formats and cohort size

  • Onsite

    At your office or a venue you choose, in full days.

  • Online, live

    Instructor-led over video, usually in half-day sessions so people can keep up with work.

  • Hybrid

    Some days in a room together, the rest online. Useful when a team works across cities.

Cohort size
15 to 25 people per trainer. Larger teams run as parallel cohorts on the same outline, so everyone learns the same thing.
Pricing
We quote per cohort, based on duration, format and number of cohorts. There is no per-seat price list: tell us your team and we send a proposal within one business day.

Frequently asked questions

Who is this programme for?

It is written for qA engineers, SDETs and Java developers, at Intermediate level. If your team has mixed experience, we run a short skills check first and suggest where each person should start.

How is it delivered?

45 hours with a live instructor, at your office, online, or a mix of the two. We split the hours into sessions that fit your team's calendar. Each participant gets a cloud lab environment, so nobody installs anything before the first session.

Can you adapt the content to our team?

Yes. We change the examples, exercises and depth to match the tools your team uses and the work it does. The proposal we send includes the adapted outline.

Where do you run it?

Onsite anywhere in India from our Bangalore office, and for US teams from our Dallas office. Online sessions work for teams in any time zone.

Bring this programme to your team

Tailored to your stack and use cases. Typical cohort: 15–30 people.

Or call +91 72043 05303

What to take next