← 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?
- A.Deletes the token from the response
- B.Reads the token field from the JSON response so later requests can use it
- C.Validates the token's signature
- 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 →