I am trying to validate a webservice response whose content type is "application/octet-stream":

Output:

java.lang.IllegalStateException: Expected response body to be verified as JSON, HTML or XML but content-type 'application/octet-stream' is not supported out of the box. Try registering a custom parser using:

RestAssured.registerParser("application/octet-stream", <parser type>);

Below is the screenshot for the XML format and the Java code.

enter image description here

enter image description here

0

There are 0 best solutions below