🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: REST Assured: all 10 questions

Quiz: REST Assured · Question 1 of 10

In REST Assured, where do you put the request body and headers?

In REST Assured, where do you put the request body and headers?

  1. A.given()
  2. B.when()
  3. C.then()
  4. D.extract()
Answer & explanation

Correct answer: given()

when() sends the request; then() checks the response.

Can you get the rest right without peeking?

Take the timed Quiz: REST Assured quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →