简体   繁体   中英

Cannot relieve the rest assured response as String as length size is 323940. Please educate

Cannot relieve the response as string as the string length is 323940 using rest assured java

Below are the code logic used:

System.out.println(responses.getBytes().length);

When I used the below logic console output will be display as blank screen

 // System.out.println(responses.toString());

Now, what is the right logic do I need to use here so that my Json to string length 323940 will be display. Please educate.

Thanks & Regards, Sailesh Praveen

To convert Response type to String

String res = response.asString();

To view response in pretty json format in console

response.prettyPrint();

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM