← Quiz: REST Assured: all 10 questions
Quiz: REST Assured · Question 6 of 10
In REST Assured's given / when / then, what belongs in the then() part?
In REST Assured's given / when / then, what belongs in the then() part?
- A.Headers and the request body
- B.The HTTP method and path
- C.Checks on the response, such as status code and body fields
- D.The base URI
Answer & explanation
Correct answer: Checks on the response, such as status code and body fields
given sets up the request, when sends it, then verifies 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 →