Skip to content
CodeKruPro

Practice

REST Assured Java

Master API testing with REST Assured through 62 hands-on assignments, from beginner to advanced. Write real Java code, test REST APIs, and get instant feedback.

  • 62 lessons
  • 18 modules
  • Beginner to Advanced
  • Lessons 1 to 6 free

Keep your progress

Signed-in learners keep solved lessons and a leaderboard rank. Lessons also work without an account.

Sign in to save progress

Getting Started

3 lessonsBeginner
  1. Your First REST Assured Test
  2. Reading the Response Body
  3. BDD Style - given/when/then

Status Code Validation

3 lessonsBeginner
  1. Validate 200 OK
  2. Handle 404 Not Found
  3. Validate 201 Created

Response Body Validation

5 lessonsBeginner
  1. Validate a Single Field
  2. Validate Multiple Fields
  3. Validate Array Size
  4. hasItem and hasItems
  5. Validate Nested JSON

JSON Path Extraction

4 lessonsIntermediate
  1. Extract Single Value
  2. Extract Nested Values
  3. Extract from Books with Tags
  4. Extract List of Values

POST Requests

4 lessonsIntermediate
  1. Create a User with POST
  2. Echo Request Body
  3. Validate JSON Input
  4. Handle Validation Errors

PUT and PATCH

3 lessonsIntermediate
  1. Full Update with PUT
  2. Partial Update with PATCH
  3. Handle PUT Validation Error

DELETE and HTTP Methods

3 lessonsIntermediate
  1. Delete a User
  2. OPTIONS Request
  3. HEAD Request

Headers

4 lessonsIntermediate
  1. Custom Response Headers
  2. Echo Request Headers
  3. Content Negotiation
  4. Validate Content-Type with Matchers

Authentication

5 lessonsIntermediate
  1. Basic Authentication
  2. API Key Authentication
  3. JWT Login
  4. Bearer Token Authentication
  5. Handle 401 Unauthorized

Request Specification

3 lessonsIntermediate
  1. Base URI Specification
  2. Headers Specification
  3. Combined Specification

Response Specification

2 lessonsIntermediate
  1. Basic Response Specification
  2. Combined Request and Response Specs

Serialization and Deserialization

4 lessonsAdvanced
  1. Send POJO as Request Body
  2. Deserialize Response to POJO
  3. Deserialize to Array
  4. Nested POJO Deserialization

XML Responses

3 lessonsAdvanced
  1. Get and Validate XML Response
  2. Extract from XML with XmlPath
  3. XML Product Validation

Cookies

3 lessonsAdvanced
  1. Receive Cookies
  2. Send Cookies
  3. Cookie Round-Trip

Logging

2 lessonsAdvanced
  1. Conditional Request Logging
  2. Response Logging on Failure

JSON Schema Validation

2 lessonsAdvanced
  1. User Schema Validation
  2. Product Schema Validation

Advanced Topics

5 lessonsAdvanced
  1. Handle Redirects
  2. Response Time Validation
  3. Form URL Encoded Data
  4. API Workflow - Authentication and Order
  5. Products by Category

Practice on TestKru

Explore the elements and interactions used in these assignments.

Open TestKru