To test for multiple values we can use
.hasItems()
hasItems() works only for JSON
// test multiple values String result= given().header("accept", "application/json") .expect().body("quote.symbol", hasItems("SYMBOLICIC9","SYMBOLICIC1","SYMBOLICIC9")) .when() .get("/RestFullDayTrader/resources/quotes").asString();
1 comment:
How do you submit a POST/PUT JSON array?
I have been looking for ways of adding them as a parameter or body, but it is not working
Post a Comment