medium10 pts · first answer countsrest-assuredapi-testing
Reading a REST Assured test
What does this REST Assured test check?
given().auth().oauth2(token)
.when().get("/orders?status=open")
.then().statusCode(200)
.body("items.size()", equalTo(3))
.body("items.status", everyItem(equalTo("open")));Discussion 0
Join free to post in the discussion.
Related questions
- API or UI testAutomation Test Engineer
- Status code for a created resourceAutomation Test Engineer
- Which method is idempotentAutomation Test Engineer
- Why validate a JSON schemaAutomation Test Engineer
- Checking an API responseAutomation Test Engineer
- Tests fail after an hourAutomation Test Engineer
- 401 or 403Automation Test Engineer
- GraphQL error with status 200Automation Test Engineer