Top "Rest-assured" questions

REST Assured is a Java library that provides a domain-specific language (DSL) for writing powerful, maintainable tests for RESTful APIs.

Connection refused with rest assured junit test case

The below test case gives me a connection refused exception and when i comment the method body it is success. …

java rest junit rest-assured
How to pass Query String Parameters in GET url using Rest Assured?

How to pass Query String Parameters in GET url using Rest Assured? URL is: http://example.com/building My Query …

api automated-tests restful-architecture rest-assured web-api-testing
Assert that response body is empty list with rest-assured

How can I check with rest-assured (2.4.0) if the response json is an empty list? Given the response [] (with header content-type=…

java rest-assured
org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected

I am trying out RestAssured & wrote the following statements - String URL = "http://XXXXXXXX"; Response result = given(). header("Authorization","…

apache http rest-assured chunked-encoding rest-assured-jsonpath
Access elements of an anonymous array via JsonPath in RestAssured

I have an anonymous array in JSON returned from a service like: [ {"foo":1, "bar":2 , "baz":3 }, {"foo":3, "bar":4 , "baz":5 } ] How can …

json rest-assured rest-assured-jsonpath
java.lang.NoClassDefFoundError: io/restassured/mapper/factory/GsonObjectMapperFactory

I am getting error when I try to execute script with rest assured framework. Please guide me to resolve the …

rest-assured
How to search/find In JSON with java

I have a below JSON string from the below i want to find/search criteria in JSON String. 1). To find …

java rest-assured simplejson rest-assured-jsonpath
Rest Assured Exception when test fails

I have a simple rest-assured test that is verifying this json comes be with the correct data for a call. …

java rest groovy rest-assured
using a Json file in Rest-assured for payload

I have a huge JSON file to be POST as payload of a rest api call for testing purposes. I …

java json rest junit rest-assured
The import org.springframework.data cannot be resolved in gradle

I refreshed my gradle project but it gives me error that " The import org.springframework.data cannot be resolved " The …

java spring spring-data rest-assured