SDET: Rest Assured Interview Questions

Carvia Tech | September 10, 2019 | 2 min read | 0 views


In this article we will cover important Rest Assured Interview Questions for Automation Engineer and developers using Java and Kotlin

  • How do you compare Rest Assured with HttpClient or RestTemplate?

  • How will you write a simple Rest Assured testcase that validates sample json response?

  • API returns a simple integer array [1, 2, 3], how to test such a response using Rest Assured?

  • Rest Assured: How to get all books with price less than 10 from json response?

  • Rest Assured: How to treat float and doubles as BigDecimal in json input

  • Rest Assured: How to pass given parameters and headers to API call

  • Rest Assured: How to set path params in API calls

  • Rest Assured: How to test against an expected response code from API call

  • Rest Assured: How to extract API responses after validation

  • Rest Assured: How will you extract custom node from Json response using JsonPath?

  • Rest Assured: How to set cookies in API calls?

  • Rest Assured: How to set a JSON body for a POST API call?

  • Rest Assured: How to verify cookie, status, headers & content-type in API response

  • Rest Assured: How to measure and validate API response time?

  • Rest Assured: How to invoke REST API that requires basic authentication

  • Rest Assured: How to invoke REST API that requires digest authentication

  • Rest Assured: How to invoke REST API that has CSRF enabled

  • Rest Assured: How to invoke REST API that requires OAuth1 authentication

  • Rest Assured: How to invoke REST API that requires OAuth2 authentication

  • Rest Assured: How to invoke handle multi-part form data

  • Rest Assured: How to handle object mapping to JSON - serialization and deserialization

  • Rest Assured: You have a fleet of APIs that requires n number of custom headers, how can you avoid duplicating the code for passing the same headers again and again?

  • Rest Assured: How will you log network requests - params, body, headers, cookies, etc

  • Rest Assured: How to print the response only if error occurs?

  • Rest Assured: How to handle session in testcases?

  • Rest Assured: How to relax HTTP validation for invalid certificates? This may be the case for dev environment.

  • Rest Assured: how to handle parameters that are already URL encoded?

  • Rest Assured: How to listen to response validation failures? For example, shoot an email when certain validation failure occurs?

  • Rest Assured: How to unit test Spring MVC async requests

  • Rest Assured: How to test Spring Webflux Reactive Controller using RestAssured

  • Rest Assured: Using Kotlin for writing tests

  • Rest Assured: What are advantages of writing tests using Kotlin?


Top articles in this category:
  1. Top 50 SDET Java Programming Interview Questions & Answers
  2. SDET: JUnit interview questions for automation engineer
  3. Commonly used Http methods in RESTful services
  4. Basic Authentication using RestAssured
  5. How to reverse a number in Java
  6. SDET Java Role - Essential Skills
  7. OAuth2 protected resources in RestAssured Testcases



Find more on this topic:
SDET Interviews image
SDET Interviews

SDET Java Interview pattern and collection of questions covering SDET coding challenges, automation testing concepts, functional, api, integration, performance and security testing, junit5, testng, jmeter, selenium and rest assured

Last updated 1 week ago


Recommended books for interview preparation:

This website uses cookies to ensure you get the best experience on our website. more info