Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3667

Response is "None" when using Rest Assured for API automation (within organization)

$
0
0

Trying to start off API automation project for organization project

I am trying to automate a API case using RestAssured and started off with a simple test case - to get details.I am doing this in my organization.

When I hit the endpoint, I get response as "None"

Below is the code

RestAssured.proxy("company_proxy_url"); // without giving this, the call was not happening and execution was stuck.Response response = RestAssured.given().baseUri("base_URI).log().all().header("Authorization", AUTH).header("Content-Type","application/json").when().get().then().extract().response();

The same hit using postman works perfectly fine.

Is there anything missing.


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>