Home
Blogs
Questions
Jobs
Monetize

Home

About Us

Blogs

Questions

Jobs

Monetize

Post Job

banner

Questions about rest-assured-jsonpath

Read more about rest-assured-jsonpath

python (12.9k questions)

javascript (9.2k questions)

reactjs (4.7k questions)

java (4.2k questions)

java (4.2k questions)

c# (3.5k questions)

c# (3.5k questions)

html (3.3k questions)

Questions - rest-assured-jsonpath

Rest Assured Java : How to obtain id in the response not in json format

I need to obtain the response of an endpoint that returns a number but not in json format, only a number returns. When I try to do response.prettyprint() I didnt see nothing in the console. Is there a...
test-img

matias

testing

rest-assured

web-api-testing

rest-assured-jsonpath

Votes: 0

Answers: 1

Latest Answer

To print that information, just use: Response res = ... res.print(); To get Infor, save Response as String then convert type to int String res = ...asString(); int number = Integer.valueOf(res);
test-img

lucas-nguyen-17

Rest assured issue io.restassured.internal.RestAssuredResponseImpl@46fc522d in response

On Executing I am getting io.restassured.internal.RestAssuredResponseImpl@46fc522d, please review the code and also see the attached postman request parameters. Please note that its content-type is mu...
test-img

Ihsan Rehman

java

rest

rest-assured

rest-assured-jsonpath

Votes: 0

Answers: 1

Latest Answer

I believe this has already been answered in the comments, but moving it into the answers section so there can be an accepted answer. There are two methods to transform the response object to a string...
test-img

Dan

Posts

Questions

Blogs

Jobs

The ultimate platform for coders and IT specialists

About

  • Company
  • Support

  • Platform

  • Terms & Conditions
  • Privacy statement
  • Cookie policy
  • Cookie option
  • OnlyCoders © 2025  |  All rights reserved