How to make a Odata batch call in karate

2019-07-28 12:07发布

问题:

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

标签: odata karate