🎙 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 3 of 10

What does .extract().path("token") do?

What does .extract().path("token") do?

  1. A.Deletes the token from the response
  2. B.Reads the token field from the JSON response so later requests can use it
  3. C.Validates the token's signature
  4. D.Writes the token to a file
Answer & explanation

Correct answer: Reads the token field from the JSON response so later requests can use it

It's how tests chain requests.

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 →