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

Questions tagged [api]

Application Programming Interface : a set of functions and procedures that allow the creation of applications which access the features or data of an operating system, application, or other service.

Filter by
Sorted by
Tagged with
15 votes
6 answers
58k views

How do you test a backend API?

I was applying for QA position and the SDET asked me this question: How do you test a backend API? In the interview. I wasn't sure I answered it correctly. Just wondering if I can get some input ...
Aziz's user avatar
  • 161
13 votes
4 answers
28k views

API Testing tools in C#

I'm looking at writing at automated tests to cover regression testing in respect of Restful API's. I have familiarity with how to do this in Java using Rest Assured, however the company I currently ...
Andy Tilston's user avatar
13 votes
3 answers
2k views

API test automation: GUI tool vs programmatic approach?

We have a Rest API written in C# and I need to investigate a good approach to automate the tests. There are 2 ways to automate API tests: GUI tool (e.g. SoapUI) Programmatic approach, using some test ...
Arthur M.'s user avatar
  • 163
11 votes
1 answer
830 views

How to approach API testing?

This is one of the most common needs today and consequently a common interview question. This question is intended to be a canonical answer to the general question of "How do I test an API". Other ...
Michael Durrant's user avatar
6 votes
1 answer
104 views

API Test Plan Documentation Standards

I've a question for experienced API testers, especially those who work in large organisations. I've been tasked to identify any industry standards for documentation of API test plans. So far, I've ...
Mark's user avatar
  • 69
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
1 answer
405 views

Good strategies to test integration with multiple external providers

I have a single service that acts as "middle-man"/gateway between a few internal services and multiple external complex APIs, over 20 to 30+ different ones. I want to direct my testing efforts in ...
Filipe Freire's user avatar
4 votes
7 answers
189 views

I want to practice testing API but can't find anything interesting

I want to practice in automating API testing but can't find anything interesting. Everything that I found were on the one hand rather complicated, on the other hand they did not allow testing such ...
Kosh's user avatar
  • 315
4 votes
2 answers
1k views

SoapUI Groovy Script for date field to always use "last week"

I'm trying to use property as an input for API that requires a date. Since I'm remaking these tests every day, and will probably use them in future again, I want the value to be fluid. I encountered ...
Mortynaut's user avatar
3 votes
4 answers
4k views

How to create automation framework for automation of REST APIs?

Currently, I am using JMeter to automate APIs but I have been asked to form a framework that is quicker and convenient to use for everyone in the team and a framework that preferably involves reading ...
Rohan Kalia's user avatar
3 votes
2 answers
1k views

API Testing on production - what requests shouldn't test?

I've manage to get new job and what I can say so far - expectations for me are high. I never used to test API on production - usually I've been teached to test API on dev/test enviroment, but in ...
nieudacznik toja's user avatar
3 votes
2 answers
23k views

How to test Single Sign On (SSO) implementation?

Single Sign On (SSO) is being implemented on the application I work on and I have to QA this ensuring that nothing breaks due to the aforementioned implementation. The development side told us that ...
Rohan Kalia's user avatar
3 votes
2 answers
2k views

Where to find the authorization token in JMeter recorded scripts of an android app?

I am getting unauthorized error for my HTTP request. I recorded the server side interaction of Android app using JMeter proxy script recorder. Only the login request is working, but the token is not ...
Rishikesh's user avatar
  • 885
3 votes
2 answers
3k views

What is the best way to test API? [closed]

I am working as QA in a company. We create a client-server mobile application. Now I want to test our APIs via automation during my daily routine. What is the best way to test a RESTful API? Any ...
Valentin's user avatar
2 votes
4 answers
314 views

Career path advice - microservices or APi testing

How to become an automation expert in restful api testing ? Is this similar to microservices testing or is that a different approach ?
gosukiehl's user avatar
2 votes
6 answers
124 views

API Management Tool Recommendation

I am looking for a tool for API testing and collaboration that offers the following: Creating a workspace that can be shared with a limited number of people. A good number of collections without ...
Abhay's user avatar
  • 21
2 votes
1 answer
241 views

commit end 2 end / acceptance tests in FE or BE repository?

I have two repositories: Backend API (php/laravel). API tests written with codeception Frontend SPA (vue). tests written with jest I now want to write e2e/acceptance test. The tests should automate ...
Chris's user avatar
  • 149
2 votes
3 answers
357 views

API testing single layer

I would like to start writing some API tests for one of our APIs, but we are seeing a lot of issues with stability of other APIs and I'm not really sure how to handle that problem. To clarify I have ...
munHunger's user avatar
  • 123
2 votes
3 answers
5k views

How can I test when app requires OTP via SMS?

I'm using Selenium with Java to test a web application. The app requires a user to receive a One-Time Passcode (OTP) to authenticate they are, who they say they are and to authorize several critical ...
Zaxxon's user avatar
  • 61
2 votes
1 answer
108 views

Should I test the created data after using Post Https Requests from Postman?

We are gonna use Postman to tests our API resources. When you create a Post HTTP request to your API, it returns success response and not sure if the data were created successfully and correctly. ...
Ner's user avatar
  • 163
2 votes
1 answer
682 views

Replacing url data with file data in jmeter

I have a link which contains a field for id. I want to fill this field data with data from a csv/txt file. The link is going to help me get data for a particular api.The url looks something like this: ...
Kshitija Patil's user avatar
2 votes
1 answer
2k views

How can I provide delay between dependent API calls dynamically in JMeter script

I want to create JMeter script in which some API calls are made only after the response to the API calls which it is dependent upon is received successfully. Is it possible in JMeter? And if yes then ...
SRM21's user avatar
  • 299
2 votes
0 answers
72 views

Design Industrial Process Controller for Testability

We are currently developing a new industrial process controller for applications with very low cycle times (<50us). The embedded software that runs on this controller shall be validated ...
MikeH's user avatar
  • 121
2 votes
2 answers
361 views

Postman API test structure

Recently I started writing tests for our API. However, I have faced some issues which I think it is critical to think at the start. How should I structure my tests in terms of setup and cleanup phase (...
user avatar
2 votes
2 answers
2k views

Passing parameters between tests with RestSharp

As I'm getting more familiar with the RestSharp client library for my API testing I'm confortable with using it for single API response checks e.g. checking a status code is correct, or that the ...
Andy Tilston's user avatar
2 votes
0 answers
238 views

Laravel codeception api testing test structure

I want to test all my API endpoints with codeception. I started off with a more model-based approach: class UserCest { public function it_can_request_its_own_status (ApiTester $I) { ...
Chris's user avatar
  • 149
1 vote
4 answers
5k views

How to create generic Java code to make REST API calls?

I have some automated RESTful API tests in Java. They use a proprietary Java library (restLibOne) to make API calls. The proprietary library is similar in concept to REST Assured, but vastly different ...
MasterJoe's user avatar
  • 446
1 vote
2 answers
5k views

JMeter - JSON parse error: Unexpected character

I am trying to add dynamic Post response on one rest API URL(http:IP:9000/page) with data as a JSON request in file format, So to add that file in post body I use the command: {__$FileToString(C:\...
sneh mishra's user avatar
1 vote
1 answer
142 views

API Performance for 30 user, after 1 second

I want to hit an API with different data that will be fetched from a CSV and this data will be hit one at a time after every second. What I did is that used CSV data config to upload data and in ...
Hassan Bari's user avatar
1 vote
1 answer
98 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
1 vote
2 answers
2k views

GUI tool for API testing with possibility to choose HTTP protocol version

I'm looking for a GUI tool for API testing that allows for changing a HTTP protocol version. There're many tools for API testing, but all I've found don't offer a choice of selecting what HTTP ...
pavelsaman's user avatar
  • 4,548
1 vote
2 answers
581 views

Best practice for testing data integrity between server and UI

I am a QA. This is the software chart: Search Engine (Apache Solr) <-> Server (expose itself to UI by an API) <-> UI. The server makes queries on the search engine and send the returned data ...
Asher's user avatar
  • 21
1 vote
1 answer
532 views

SoapUI response: Integer range validation

One of my API's is returning, "minStudentAge":12 For a one API out put there will be 5 ,6 "minStudentAge" tags with different integer value. Is there any way to validate the integer value which ...
ChathuD's user avatar
  • 2,147
1 vote
1 answer
2k views

Comparison testing using karate tool

I'm using karate tool for api automation testing. Is there a way to do comparison or A/B testing using karate - That's testing with 2 urls and making sure both return the same response..please help ..
Gayathri's user avatar
1 vote
1 answer
56 views

How to test API contracts when there is a dependency on data from an outside source

I'm after some advice regarding a project I am currently working on. There is a front-end, similar to what Amazon is like in that sales are fed through the site(there is no API for doing this). ...
Andy Tilston's user avatar
1 vote
2 answers
2k views

How to extract rcAuth Token from header and POST as parameter to call an API

I'm automating email verification process, For that I have an API where I have to pass the emailID with the URL e.g.http://apiqa.somewebsite.in/api/v1/verify-email-qa/[email protected] and have ...
NarendraR's user avatar
  • 1,573
1 vote
2 answers
71 views

Api load testing with certain scenarios

Hei. I've done some api testing with java using restassured framework, but this doesn't seem to have a good solution for load testing. I would need a recommendation for a tool that could help me with ...
Madis Kangro's user avatar
1 vote
2 answers
441 views

Automate the API using rest assured

I have got some rest API's for testing with rest assured. How to automate using with rest assured? What are the different cases that I need to test? This is a sample API. What are the test cases ...
toastmaster's user avatar
1 vote
0 answers
260 views

Some value from Postman test undefined

I need to create tests in Postman for running key values for the AI Conversation app. I have created tests, where I have used the logic below, where I can see all of the values after a test run except ...
Natalia Hunter'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
1 vote
0 answers
86 views

Consumer-driven Contract Testing

I've just come across the term consumer-driven contract testing and, working as a QA, was wondering a few things: What does this actually mean in laymans terms? Who would generally execute this type ...
Andy Tilston's user avatar
1 vote
1 answer
104 views

Start with soap ui [closed]

I want to do API testing in my project. I installed soap ui for api testing. I don't know to get start using soap ui. Can anybody help me to start doing soap ui testing . Is we have to write ...
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
0 votes
4 answers
171 views

Should automation code be as complex as application code?

Software project are often created as modules (in separated project folders) and communicate using services and apis to communicate between modules in order to improve flexibility and scalability. ...
Syrus's user avatar
  • 1,197
0 votes
2 answers
309 views

Asserting against database during selenium test run

Just wanted to hear some thoughts about asserting against the database during a selenium test suite. For the website I am working on is a SPA with API backend where the majority of the service ...
st0ve's user avatar
  • 171
0 votes
1 answer
2k views

XML Payload gives 'The ' ' character, hexadecimal value 0x20, cannot be included in a name.' error

I'm attempting to create a test framework in c# to automate some of our API tests. Relatively new to this area so have come across an issue I can't solve. My XML payload is as below: <Order> ...
Andy Tilston's user avatar
0 votes
2 answers
65 views

How to correctly divide API tests into test cases

I'm practicing API testing and I'm wondering what the correct approach to dividing tests into test cases is. For example, GET gives me a JSON which is a list of items and I want to check a few things ...
eilchner's user avatar
0 votes
1 answer
334 views

java.lang.NullPointerException,at ✽.Given product is set with the following fields(src/test/resources/features/wizard/wizardNewProduct.feature:

Pls, I need help, I'm getting a null pointer exception, When I send a request, I'm catching values in Cucumber through the List<Map<String, String>>. I'm testing API with Rest Assured and ...
Qa Automation's user avatar
0 votes
1 answer
2k views

Can i check at a time multiple api in jMeter? [duplicate]

I have started the JMeter in the mobile Application can I test the Multiple API at a time in Jmeter if yes then how can I check the output?
Meet's user avatar
  • 150
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