Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [rest-api]

When Web services use REST architecture, they are called RESTful APIs (Application Programming Interfaces) or REST APIs.

Filter by
Sorted by
Tagged with
0 votes
1 answer
295 views

What are all things you will check in API Testing? (Assuming you are a manual software tester)

This is an interview question. What points are they looking for when asking this question, you are using REST API. Check for errors, data accuracy, right status codes?
chris's user avatar
  • 23
0 votes
0 answers
38 views

Not able to capture/Extract id generated in response in Post method

I am facing this issue - capture/print the id generated in response last 2 line are the issue, the moment i take out last 2 line,test get passed public void emp() { RestAssured.baseURI= "...
chinmay k's user avatar
1 vote
1 answer
8k views

What is the difference between Bearer token and API key authorisation in Postman API testing? [closed]

I am a complete newbie in API testing. Now, while sending a GET or POST request , we need to authorize the calling project. How does it work internally and what's the difference between API key and a ...
test234's user avatar
  • 21
1 vote
1 answer
97 views

API Testing and automation framework [closed]

I wonder if it is 100% necessary to use an automation framework like KARATE instead of API Tools like POSTMAN. Usually I automate different websites by using SELENIUM & JAVA and I try different ...
new_programmer's user avatar
0 votes
2 answers
5k views

How to validate nested array from JSON response using Postman?

I am trying to validate GET method API response JSON using Postman. I have tried some of online suggestion but nothing worked for me. In my testcase i am validating that List tag is showing or not. ...
Kaushal Patel's user avatar
0 votes
1 answer
549 views

how to insert generated id from response , into the endpoint

I'm testing API, using Rest assured, programming language is java. Is there any way to get the generated id from a response body and insert it into the endpoint? I have the following endpoint {baseUrl}...
Qa Automation's user avatar
0 votes
1 answer
612 views

Uploaded filename when uploaded by JMETER using Google Drive Upload API is Untitled

I am trying to upload files on Google Drive using JMETER but the uploaded file name is 'Untitled'. Google Drive API's Bearer token is used as Authorization in the 'HTTP Header Manager' with Content-...
Vishwas Prabhakar's user avatar
1 vote
2 answers
333 views

How to avoid API tests duplicating Unit tests

How to deal with the overlap between unit tests for API endpoints (presumably written by the developers) and automated API tests (written by testers)? The authorship of the tests is of secondary ...
Mate Mrše's user avatar
  • 4,119
0 votes
2 answers
340 views

deserializing response body in java

I'm testing API with Rest Assured, I have all the necessary dependencies, all setup, the only question is, I have created all POJO classes for Request Body, I'm in the phase, where I have to verify, ...
Qa Automation's user avatar
-1 votes
1 answer
908 views

Rest assured vs Http client for Api testing? [closed]

Which approach or should I say framework is better and which are let say 3 facts you should consider when making final decision?
Gaj Julije's user avatar
12 votes
4 answers
82k views

Free sites for testing POST REST API calls?

My previous company was testing only GET calls. Now I need to practice with other type of calls (POST, PUT, DELETE). I can not find any site that is free for POST API calls, and that it have up to ...
Gaj Julije's user avatar
-1 votes
2 answers
77 views

How can one test the security measures or vulnerability when it comes to API testing? [closed]

I use REST for API Testing. What are good tools and/or approaches to testing security issues ? Any information through which I can broaden my perspective,ways,tools for testing when it comes to API.
Hetvi shah's user avatar
2 votes
1 answer
427 views

When I use thread = 5 all test cases get failed but same test cases works wih thread = 1 on jenkin

I am executing the api test cases using TestNG. When i use the below command clean test -i --tests 'com.testcases.api.*' -Pgroups=mygroup -Pthread=1 -Ptype=api All test cases get pass however if I ...
user3652040's user avatar
6 votes
5 answers
2k views

What tests to automate in a full stack web application? API vs UI

I joined a full stack automation team recently. There are some selenium tests for the frontend and APIs aren't automated yet. My question or thought process is should I pick the test cases carefully ...
Ravi Rao's user avatar
0 votes
1 answer
3k views

Rest-assured - Schema to use cannot be null

Using the code below, I'm getting the following error: My code: @Test public void get_user_API_Schema_Test() { RestAssured.baseURI = "https://gorest.co.in"; given()....
Ashutosh Singh's user avatar
1 vote
2 answers
5k views

How to verify the JSON structure (only Key , Not value) in Response using Rest Assured framework (Java)

“Output”: [ { "id_": “123” "first_name": “Testing”, "last_name": “Validation”, "state": “VA”, “yearofbirth”: 1983, "currentcompany”: null }...
Madhi's user avatar
  • 13
0 votes
0 answers
318 views

UFT: How can I call a gui test with the result of an api test?

The result of the rest service returns me a url to download a file, I would need to use that url in a gui test to open it in the IE browser, can someone help me how to pass that parameter? My test ...
Makane's user avatar
  • 11
8 votes
3 answers
211 views

Rest API and resources validation from QA perspective

In the current project, let "toys" be the category and "gun" be the product. The ID for the toys category is 2 and ID for the gun product is 1. The URI for categories is /api/v1/categories/<...
PDHide's user avatar
  • 11.1k
2 votes
2 answers
2k views

REST Assured API | Why we use equalTo() while asserting body part of response?

When we assert our body part, we use the method equalTo() but while asserting for Header, we are just providing ("Key","value") pair only. Why can't we use just- body("scope&...
Gaurav's user avatar
  • 23
1 vote
2 answers
489 views

Consume POST request data to GET and DEL requests

I get an id from a POST request and I want to use that id in the GET and DEL requests. I don't want to do it manually; if there is automated way that my read and delete requests consume my POST ...
Srinath's user avatar
  • 13
0 votes
1 answer
6k views

Rest-assured. Is it possible to extract JSONObject/JSONArray from response json?

I'm Using RestAssured, and i'm getting the response like this- { "Data": { "Sub": { "SubDetails": [ { "OrgId": 5, ...
Upkar Singh's user avatar
1 vote
1 answer
2k views

Can we run One thread group with multiple threads but hitting same request by all threads concurrently in jmeter?

I have a one thread group with 100 requests in it, I am passing some ids from one request to another (it is a one complete flow of application). What I want to achieve is if I give 50 threads, each ...
Ash's user avatar
  • 31
2 votes
1 answer
6k views

soapUI - REST API, parameters as variables in request body are empty (*previously posted as guest by accident)

[I am re-posting this; I posted it as "guest" inadvertently.] soapUI 5.5.0, community edition. Created REST requests with parameters (style = plain). Wanted to use them in request body as variables, ...
user avatar
0 votes
1 answer
309 views

soapUI - REST API, parameters as variables in request body are empty [duplicate]

soapUI 5.5.0, community edition. Created REST requests with parameters (style = plain). Wanted to use them in request body as variables, but that did not work. Tried "${#firstName}" and "{firstName}" ...
user42729's user avatar
-2 votes
1 answer
24 views

How to provide File and some para. to POST API using Python/ C#?

Team, I am trying to provide File and some para. as a input for API. Expecting output based on validation. Even after providing both inputs correctly, I am getting File as null with length 0. Below ...
Narendra Chandratre's user avatar
1 vote
0 answers
285 views

Header isnt being sent when using faraday gem ruby

I am doing an Api automation in Ruby and I am using the Gem Faraday to automate a file upload in my API. I have the follow problem: My Header is not being sent. I just tried all the options and is ...
Vanessa Bioni's user avatar
0 votes
3 answers
3k views

Postman or any API tools for API cache testing

my application (Restful API, no UI interface at this moment) has the Cache Async in memory functionality at each GET, POST, PUT, DELETE. Does Postman or any API tools has the ability to test the cache ...
user2201789's user avatar
0 votes
0 answers
746 views

TestNGClassFinder Warning: Can't link and determine methods of class examples.ExamplesTest

Just started with Karate API test sample project and encountered with this issue. My pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
Lalit Phirke's user avatar
1 vote
2 answers
2k views

Jmeter 1 Thread Group and Multiple HttpRequest

I have the following Jmeter configuration where I have 1 Thread Group with Number of Threads 1 and under this 4 HttpRequest I have defined. The loop count is forever. My question is how will my ...
Number945's user avatar
  • 111
0 votes
1 answer
654 views

How to perform page load for page with API in it?

I have tried RESTAPI testing for few projects, but I have a task now to perform concurrency testing/ load test of a page. When I inspect the page load in chrome >> Network tab, it shows one Index ...
RK007's user avatar
  • 41
0 votes
2 answers
133 views

API/REST API Performance Testing within a Gateway Staging Environment. At what point which performance test procedure should be used correctly?

In my current project, there is planning regarding a load and performance test within a staging environment and Jenkins pipeline based. The question I'm only asking myself when and where to start in ...
Mornon's user avatar
  • 1,117
0 votes
1 answer
661 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 ...
dushkin's user avatar
  • 133
2 votes
2 answers
4k 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 ...
dushkin's user avatar
  • 133
1 vote
1 answer
234 views

Testing REST api with postman

I am very new to this, so I am approaching it like I would test a sign up form for instance. I have a Rest interface exposed for testing operations: Getting all users, getting users by id, searching ...
beginner501's user avatar
0 votes
1 answer
288 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 ...
mu1988's user avatar
  • 29
7 votes
1 answer
227 views

Do testers perform usability tests of API?

Many teams do not deliver GUI but a library or a service that is used by other developers. For instance: A company provides REST APIs and client libraries for their customers to use their services ...
dzieciou's user avatar
  • 10.5k
6 votes
4 answers
39k views

How to verify response body as a test in postman

I want to verify the response data as a test using Postman. For example, given the response below: { "data": { "id": 2, "first_name": "Janet", "last_name": "Weaver", "avatar":"...
Rush910's user avatar
  • 137
2 votes
2 answers
135 views

Starting points for REST API Automation

I am new to REST API Automation. As an Automation Engineer, should I expect to get the below mentioned things as a starting point which can help me write the automation code or is it my ...
mu1988's user avatar
  • 29
-1 votes
1 answer
132 views

Test strategy/plan creation

I have to create a test plan for my project and present it to the stakeholders. The Test plan should comprise of : Testing types Test Environment Test Data Project components : Thick client ...
brij's user avatar
  • 185
2 votes
4 answers
371 views

Diff between Integration(written by dev) and End to End testing(written by qa)

Recently, I was in conversation with a developer, developing an API. We had a conversation appertaining to testing of that API, while I told him we will test the end to end flows of API using ...
brij's user avatar
  • 185
0 votes
1 answer
728 views

How to add test cases to TFS via REST API

I'm implementing a library to export/synchronize test cases into TFS automaticaly during test run. One of my requirements is that I need to use NodeJS, so I decided to use TFS REST API. In my code I'm ...
Jacek's user avatar
  • 1
0 votes
1 answer
84 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 ...
Artur's user avatar
  • 229
1 vote
2 answers
1k views

SoapUI/ReadyAPI: How to best compare two data sources

I am currently setting up some REST API tests. I have a test case that has the following Steps: Data Source - Get all Auth credentials in database REST Request - Auth POST getting auth token ...
Ross's user avatar
  • 159
0 votes
1 answer
369 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) { ...
Jagannatha Mv's user avatar
1 vote
1 answer
1k views

Deviation in JMeter

I am new to Web API development. I have created a small Web API, which returns a JSON output. The Web API is running on another PC in the same network. I have been connected to the API via GET ...
skm's user avatar
  • 111
2 votes
4 answers
2k 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 ...
Nikunj Aggarwal's user avatar
5 votes
1 answer
7k views

Assistance with a DELETE request in Postman

I'm attempting to create some API tests to assist with getting familiar with API automation and I'm using the really helpful Restful-Booker API for this. The API documentation is also here. However I’...
Andy Tilston's user avatar
5 votes
5 answers
166 views

Useful real-world APIs to test against

In order for me to firm up my understanding of API testing I'm looking at testing against some real-world API's. For understanding, I'm going to be writing my API tests in C#, ideally utilising ...
Andy Tilston's user avatar
1 vote
1 answer
3k views

Configuring OAuth2 with RestSharp

I'm looking to set up a test against the Vimeo API and have been using some of the RestSharp tests to set me up. However, since these test were written Vimeo now requirs OAuth2 rather than OAuth1. I'...
Andy Tilston's user avatar
3 votes
2 answers
194 views

Advice on assertions to make when creating an API testing framework

I'm currently looking at building an API test automation framework for a series of Rest Services, utilising c#. Coming from a UI-automation background I was after some advise on assertions when ...
Andy Tilston's user avatar