How to avoid using milliseconds when using OffsetDateTime.now()

I am using OffsetDateTime.now() to get the current date in UTC format and result includes milliseconds too. I don’t want milliseconds to be sent . Is there a way i can remove Milliseconds from …

Lombok returns null as a value of response

I’ve got a problem with my Api tests. When i’m trying to get data from api, lombok returns null as an acceptance value, but there are values with real numbers in api. Screenchot: https://prnt.sc/…

How can i extract data from json array to use in subsequent rest assure api request

I am using restassured with Java to automate APIs and would like to extract id, recommendId and productId from a GET response to pass into another post requests and would also like to know how to go …

How to set boundary in RestAssured

I’m trying to create multipart POST call using RestAssured, but I don’t know how to get any boundary there. I tried this code, but it doesn’t work. given().contentType(“multipart/form-data”) …

Rest Assured java.util.HashMap cannot be cast to class java.util.List

I am working on Rest assured framework to automate API testing. actually I want to get the response as list not as an object. cause I want to do assertions for each element. to check data integrity …

Internal Server Error when making POST request using Rest Assured

I tried to make a POST request using POJO but getting “vHTTP/1.1 500 Internal Server Error”, could you please advise why? When I pass body as string it works fine, but the passing the bookingDetails …

Add AWS Signature Header to all rest assured requests

I’m trying to call an get api which is hosted in aws api gateway via rest-assured I’m able to sign the request and make a call. But to sign the request, I need to pass the full url to AWS to …