Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [rest-assured]

The tag has no usage guidance.

-1
votes
1answer
27 views

Cucumber with and without Rest - Assured. What are the advantages?

Currently my team uses Cucumber as a testing framework. We need to start testing REST web services. I understood that REST-Assured is one of the leading tools for that. Can these tools be used in ...
1
vote
2answers
48 views

Rest Assured Vs. Apache HttpClient performance

I am checking Rest Assured now, and want to understand its performance. So, I created 2 unit tests: public static final String C_URL = "http://ergast.com/api/f1/2017/circuits.json"; @Test public ...
0
votes
0answers
37 views

How to remove keys from rest-assured ValidatableResponse and assert response with constant json string

In rest-assured test cases I am getting mentioned 'ValidatableResponse response' where I want to remove keys such as "updated_at", "deleted_at", "created_at" and "notice" and assert this object with ...
0
votes
0answers
17 views

How to remove keys from response json and hold remaining json data in an object using java 8 lambda expressions for rest assured test case

In REST-assred test case I am getting ValidatableResponse body as mentioned from which I want to remove notice, created_at, updated_at and deleted_at keys using java 8 lambda expressions and assert it ...
0
votes
1answer
59 views

Is it a good practice to compare responses with benchmark responses in API Test Automation?

Is it is good practice while writing automated tests for APIs to compare the complete response of the requests with a benchmark response instead of writing specific tests to verify the required values ...
0
votes
1answer
107 views

Rest assured API to get a element from Json response

I'm using restassured.path.json.JsonPath extractor From the below response I would like to extract the customerProductIdentifier where highLevelProduct is HSI, { "recordsChoice": [ { ...
0
votes
1answer
42 views

Session is outdated or not initialized while sending Request

When I send POST request to the server for SignUp I receive an error that session is outdated or not initialized. How could it be solved? // create request @BeforeClass private void ...
0
votes
2answers
241 views

What are design patterns for REST Assured?

For Selenium usually Page Object Model is used. What are good design patterns for REST Assured to organize structure, files?
1
vote
1answer
60 views

NullPointerException in RequestSpecification

Getting Null pointer exception whenever running, unable to resolve. Below is my code public static RequestSpecification setFormParam(String formParam, RequestSpecification reqSpec) { ...
0
votes
3answers
43 views

How to handle response varying from developer tool to code debugging in chrome?

I'm using RESTassured with Java. Getting response in compressed from UTF16 format. Response varies from developer tool to code debugging in Chrome/Firefox, here variation means some character got ...
2
votes
4answers
202 views

What is the best approach to the REST APIs automation?

I have been working on REST API test automation in JAVA and have many approaches in my mind but not able to decide which one is better. Here are few approaches that I can think of- Very Simple and ...
0
votes
0answers
410 views

Rest Assured | Why getting repeated errors when trying to automate apis using rest assured?

I have just set up rest assured framework and implemented it as a maven project. My pom.xml has the below mentioned dependencies io.rest-assured rest-assured 3.0.2 test io....