0
См. Ниже мой код, он не выполняется. Что мне здесь не хватает?Как проверить вывод JSON с помощью RestFixture с помощью googleapis
start slim
!path C:\Fitnesse\RestFixture\lib\*.jar
!path C:\Fitnesse\RestFixture\lib\smartrics-RestFixture-3.0.jar
!define expectedReturnHeaders {Content-Length : [\d]+
Content-Type : application/json }
|!-Table:smartrics.rest.fitnesse.fixture.RestFixture-! | https://www.googleapis.com/books/v1/volumes?q=isbn:0735619670|
|GET| Content-Type : application/json |jsonbody.items[0].id=="QnghAQAAIAAJ"
Я получаю сообщение об ошибке, как
jsonbody.items.id=="QnghAQAAIAAJ"
java.lang.IllegalArgumentException: Cannot evaluate 'jsonbody.items.id=="QnghAQAAIAAJ"' in {
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Required parameter: q",
"locationType": "parameter",
"location": "q"
}
],
"code": 400,
"message": "Required parameter: q"
}
}