← Quiz: REST Assured: all 10 questions
Quiz: REST Assured · Question 4 of 10
What does body("title", hasItems("Java Full Stack", "DSA in Python")) check on a list response?
What does body("title", hasItems("Java Full Stack", "DSA in Python")) check on a list response?
- A.That the list has exactly two items
- B.That the titles of the courses include both values
- C.That every course has both titles
- D.That the first title equals both values
Answer & explanation
Correct answer: That the titles of the courses include both values
On an array, "title" collects every element's title.
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 →