How to make a Odata batch call in karate

99封情书 提交于 2019-12-24 12:27:14

问题


I need to make Odata call to fech the results from downsream APIs. I am using karate to test our APIs. But now i need to fech the data from downstream APIand compare it with our APIs result. My problem is downstream APIs are Odata request. Can i make Odata batch request from karate. if yes how?

Request header is: Content-Type = 'multipart/mixed;boundary=batch_01' and Request body is:

--batch_01 Content-Type: application/http Content-Transfer-Encoding: binary

GET test(test1='ABC',test2='12345')/abc/?$inlinecount=allpages&$format=json HTTP/1.1

Accept: application/json

--batch_01--

Even i am not able to read the request body in karate?

Adding screenshot here how the request shown in postman

来源:https://stackoverflow.com/questions/56242361/how-to-make-a-odata-batch-call-in-karate

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!