Skip to main content

All Questions

0 votes
0 answers
207 views

Getting error "java.lang.IllegalStateException" in Rest Assured Java API as content type "application/octet-stream" is not supported

I am trying to validate a webservice response whose content type is "application/octet-stream": Output: java.lang.IllegalStateException: Expected response body to be verified as JSON, HTML ...
titli0216's user avatar
2 votes
1 answer
120 views

Unordered array assertions in Karate

I am working API testing where expected (source) and actual (target) both are apis. So I need to hit both apis dynamically with an account number and have to assert both expected and actual. Feature: ...
PSP's user avatar
  • 67
1 vote
0 answers
171 views

Karate framework not getting value return from another feature file

I am trying to make a call to another feature file for generating Bearer token and then return that value, My token is getting generated and its printing but i am getting null value returned. I saw ...
sarath's user avatar
  • 455
1 vote
1 answer
91 views

Getting errors while using @setup scenario(called an api, captured specific info from response) and sending it into another scenario outline

I tried using @setup but it is getting failed. For example, in one feature file I have wrote a secenario and tagged with @setup, here I have called an api and captured the Ids more or less 100 ids. ...
PSP's user avatar
  • 67
1 vote
2 answers
70 views

Capture an ids from API-1 and pass it into another API-2 path and execute dynamically

[ { "id": 1, "location": "usa" }, { "id": 2322, "location": "japan" }, { "...
PSP's user avatar
  • 67
1 vote
0 answers
68 views

Multiple Uploads Karate fail with 415

I am trying to Automate API that has multipart upload. I am getting 415. Scenario: * def Json = {} * def multiPartText = read(Test.txt) * def multiPartPng = read(Test.png) * def multiPartJpg =...
Berkay oncel's user avatar
1 vote
1 answer
14 views

Karate: While Validating The Response Not Able To Get The Correct Value

Here I Have Defined A Few Variables: def qantity1 = '1' def price1 = '14.49' def qantity2 = '1' def price2 = '14.49' def OutstandingAmount = qantity1 * price1 + qantity2 * price2 I'm expecting The ...
Mohit Joshi's user avatar
0 votes
1 answer
339 views

TestNG/RestAssured : Is there any way we can reuse @Test methods in different classes?

I am a newbie to automation. I am using Rest-Assured. And I want to validate response for every request like for example checking if response is null or status code, status line, content-type etc . Is ...
user3089570's user avatar
0 votes
1 answer
816 views

How can i get output in postman?

I am trying to get list of products from api. i requested url with get method and response code is 200. but how can i get to see list of products in postman? https://url/Product/all
Janki's user avatar
  • 1
0 votes
0 answers
176 views

How to find JSON path if the JSON tree has unique Key in the path of Key whose value is to be extracted?

I wanted extract value of first "jobId" but "76ff0515-a200-444a-b5b3-e81e81360b75":" this value is updated every other day. Can somebody help me in writing JSON path for ...
Abhinav Handa's user avatar
3 votes
1 answer
3k views

How to add bearertoken to post/get restsharp automation testing

maybe anyone could help me with RestSharp api automation testing. I'll try to be as clear as possible. Basically the scheme is: I'm sending my username/password credentials & I get BearerToken in ...
Mrks's user avatar
  • 55
0 votes
1 answer
1k views

How to get response value in RestAssured

I am doing API automation using rest assured. I want to get value from API response and passed to another java class, This is my Testing class, @Test(priority = 1) public void UserCreate(){ ...
lahiru dilruwan's user avatar
1 vote
1 answer
391 views

How to extract and parse id from below mentioned response

Refer screenshot: { "urn:pearson:work:876fa82c-9ad7-49c3-80c9-02d3b4c84312": { "id": "urn:pearson:work:876fa82c-9ad7-49c3-80c9-02d3b4c84312", "...
Sunny Goel's user avatar
1 vote
0 answers
18 views

How to send back to back http post request without waiting for response in Karate framework [duplicate]

I have been writing APT tests in Karate framework and for one of the scenario, I need to do the following Scenario: Testing a POST endpoint with request body Given url 'http://localhost:8097/user/...
Amit Chouksey's user avatar
1 vote
3 answers
8k views

Passing Bearer token through variable using Gatling

I am learning the Gatling tool and stuck in developing scenarios for Secure Http API calls. I have created a scenario in which I am able to get the bearer token and save it in the variable(Token), but ...
Fouad Ilyas's user avatar

15 30 50 per page