Questions tagged [api-testing]

API testing is a type of software testing that involves testing APIs directly and as part of integration testing to determine if they meet expectations for functionality, reliability, performance, and security.

Filter by
Sorted by
Tagged with
15
votes
5answers
27k views

Testing REST API with SHA1 HMAC authentication

I am a developer and I am looking for some software to provide our QA for testing REST API that requires SHA1 HMAC authentication (each request is signed using user's secret key, the process is ...
13
votes
3answers
2k views

Test strategy to bring automated tests from UI to lower(API/Unit) layers?

Background/Problem Statement: Recently I came across a project team, which is having thousands of UI automated tests covering all kind of manual tests including positive, negative etc., and obviously ...
10
votes
3answers
2k views

Tests in CI: Are API + Integration Tests the most suitable?

In my experience, automated GUI tests may take too long for a build of Jenkins (even parallelized) and may demand a lot of maintenance. On the other hand API + Integration tests are way faster, do not ...
9
votes
3answers
1k 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 ...
7
votes
4answers
4k views

Difference in Web Services & REST/SOAP API from Black-box Tester perspective

I have practically tested web-services/APIs (testing back-end requests of mobile apps, JMeter scripting for a web-application) but when it comes to differentiating between web-services/APIs(REST/SOAP) ...
7
votes
1answer
174 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 ...
6
votes
3answers
1k views

How to utilize Chrome Dev tools for QA(manual or automation)?

These days I noticed the features in Chrome Dev tools(especially in 60+ versions) are increasing day by day and in every tab, there are a lot of options which most of us QA engineers are not fully ...
6
votes
3answers
2k views

Soapui or Rest Service Testing? and where I can find good Soapui and rest service testing tutorials?

I want learn Soapui or Rest Service Testing, so could you please let me know which one is good for me? as per your knowledge/Experience. Before today I discussed the same with my colleagues, some ...
6
votes
7answers
27k views

Suggest me the best way to automate REST web services with JSON using Java

I was testing web services manually using Postman or REST client. I want to automate testing here. I use REST with JSON format. Questions: How to use target URL ? How to pass header values? How to ...
6
votes
4answers
217 views

How do you test, auto-logout after 60 minutes?

Our system implements that the user with out activity for 60 minutes should be logged-out of the system. How do I test this? Do i need to test it manually? Wait for 60 mins? Is there a tool that I ...
6
votes
6answers
58k views

WebDriver API: 'Failed to send keys because cannot focus element' — better workaround than using Firefox instead of Chrome?

There's a bug in the chromedriver.exe Chrome driver for Selenium's WebDriver API. You can't use send_keys for certain types of inputs, like for the jQuery plugin "EZPZ Hint". It works okay on simple ...
5
votes
5answers
6k views

Is it a best practice to use loops for a test case to run it multiple times?

When writing a test case is it a best practice to use loops for several test cases? For an example consider following two code segments Code 1 public class testing{ public void ...
5
votes
3answers
9k views

How do you perform API Testing? I had an interview question

I had an interview and they asked me how you will perform API testing? What should be my perfect answer? I explained what ever I have experienced with API testing but I felt that they were not ...
5
votes
4answers
2k views

Is it a good/industry practice to create both UI and API testing projects in one project?

I'm planning on creating a project to begin test automation for software. For this task, I'm considering the following things: UI level testing (with Page Object Model) API testing ...
5
votes
11answers
3k views

RESTful JSON Web API Testing - what tools?

My company is working on its API which is RESTful JSON Web API. So far, all my testing was done using Selenium WebDriver. Starting from one and more tests I manage to create some sort of framework. ...
5
votes
2answers
31k views

How to wait for an api request to return a response?

We use a proprietary framework based on the REST-assured library and TestNG to automate API testing for our REST web services. I saw some api testing code which uses Thread.sleep(n seconds) to wait ...
5
votes
4answers
1k views

Credit Card Testing (Paypal Payflow API)

I am testing the payment gateway of my e-commerce website. Our developers are using PayPal Payflow API’s, i.e., the card processing (gathering/saving the card details) will be happening in our ...
5
votes
1answer
4k 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’...
5
votes
2answers
796 views

Using SuperTest/Protractor on unsecure HTTPS

I am trying to run automated API tests on localhost with an invalid cert. Is there a chromeOption equivalent to "Proceed Anyway" that I can pass to the tests so they can get a response from the url? ...
5
votes
1answer
99 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 ...
4
votes
2answers
125 views

Is it okay to use UI automation code in API automation tests?

Say that I am testing a GET api. The get api fetches data which is stored due to user actions on a web UI. The data cannot be setup by simply looking at the network inspector calls for these actions ...
4
votes
1answer
2k views

Data Driven testing in Postman Tool

Can anyone please let me know how the data-driven testing is done using the Postman? I read some post in the online, it seems to be by using collection we need to run the collections at the time we ...
4
votes
2answers
304 views

Can anyone explain the defect leakage and formula?

I have some idea about defect leakage. Can anyone let me know what is the correct definition or term of the defect leakage formula?
4
votes
2answers
1k views

How do we as testers best approach API test cases without entering the realm of insanity?

I'm looking for some clarity on how to approach API testing holistically, I have a project to automate a Restful web service, containing 2 controllers(foo & bar) with a collective sum of around ~...
4
votes
2answers
4k views

How to send different http requests at the same time in jmeter

I need to send many http requests (E.g: 500 http request) with different data (E.g: 500 data) at the same time. How can I do it? Example: abc.com/path?param1=xyz&param2=qwe 'xyz' and 'qwe' are ...
4
votes
2answers
1k views

Android App api testing with mock

Currently, I ran into a situation where we are having constant Backend/API issues and because of the same, I can't continue with the testing. I was wondering if it is somehow possible to use a server ...
4
votes
2answers
9k views

Testing a Python REST API

We want to add formal testing an quality assurance to our application API. It is written in Python using Flask with Restless and outputs JSON. My question is what is the best way to test our API? It ...
3
votes
3answers
125 views

The scope of automated API testing for a SQA tester

My situation: I am creating automated tests for testing a server's API endpoints. It is connected to a database and making requests to its API endpoints can result in it grabbing data from the ...
3
votes
3answers
137 views

How to provide more value from test automation to Dev/entire team?

Working primarily as UI test automation engineer, what further steps one should take to be more valuable & useful to the Dev team. How one take automation to a level where it becomes an handy ...
3
votes
2answers
6k views

Difference between SoapUI and Fiddler testing tools?

Well, I am able to test an API method using JSON request in Fiddler and can view the response correctly. Also web services can be tested in SoapUI. So what's the difference between them?
3
votes
6answers
490 views

Which tool to use for testing REST API? [duplicate]

All REST API's that I've built have always had a good series of unit tests to verify that they are working as expected. One downside to this approach is that the testing almost always happens on ...
3
votes
3answers
60 views

How to not load api from a given URL? [closed]

A customer wants a specific error code when certain apis fail to load. I am thinking of blocking the URL where apis come from. I was given the task to verify our developers have implemented the ...
3
votes
2answers
10k 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 ...
3
votes
8answers
4k views

Tools for mobile web services, rest api testing

I am looking for some tools for testing the background rest API and web services for mobile application based on android as well as iPhone.
3
votes
1answer
202 views

Sample applications for practicing API Testing [closed]

I am looking for some sample (ideally open source applications) that I could use to start practicing API testing. I am mainly interested in applications developed with .NET. Any ideas or suggestions ...
3
votes
3answers
4k views

Automating Restful API — Tools?

I've been automating tests for our restful api's using retrofit and testNG. Basically, I create a POJO-Model... send the request in retrofit and do the assertions on the model. Example: public ...
3
votes
1answer
606 views

Testing idempotency - Is it enough to make two api calls to test idempotency?

Firstly, w3's (confusing) definition of idempotent http methods - https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html. My understanding of idempotent http methods is that when a request is made ...
3
votes
1answer
11k views

Is there any template of test case document for API testing?

I have tried search online about sample test case document for API testing,but didn't get any result Note: i already know about normal test case template
3
votes
1answer
711 views

If a ZIP file is requested, how do you how to get it from fiddler? [closed]

If you request a service send you a zip file as response, then how do you retrieve the file from fiddler?
2
votes
8answers
8k views

Does Selenium support web services testing ? How can it achieve through selenium webdriver?

In my project I have some API (Web Services). Currently, I am testing the web services manually and using POSTMAN to automate tests. Does Selenium support automate the Web services with JSON or XML? ...
2
votes
4answers
90 views

Why use an API test if I can get the same information from the website?

Why should I check the server response by using a GET call through an API if I already have a button on the site with the functionality to call the same method?
2
votes
4answers
114 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 ...
2
votes
1answer
307 views

What are the pro's and con's of writing an API test automation framework at code level as opposed to using a tool

As I look into writing automation frameworks at the API layer(relatively new to this area), a question that keeps cropping up in my mind is.....why should I write an automation framework at code level ...
2
votes
3answers
317 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 ...
2
votes
3answers
1k views

API call returns 400 bad request even when the request is correct?

I made a post api call and got a "400 Bad Request" in the response. The response body has a one line message about an unspecified database commit transaction failure. After checking several times, I ...
2
votes
1answer
6k views

Getting started with Rest-Assured for REST-Api Testing

I am new to REST-Api testing. i am getting started with Rest-Assured for Rest-Api testing. i am having an issue in my first ever testcase. The code is as follows: @Test public void testGetSingleUser(...
2
votes
3answers
153 views

API testing: Is it okay to work with (only) deep equals?

We're about to implement API tests (in a .Net environment) for our new projects. I have no prior experience with API testing. After checking out multiple frameworks and tools, it seems they all focus ...
2
votes
1answer
6k views

How to call webservices through selenium [closed]

I want to call the rest api in the selenium and save the JSON (response) in text file. I also need to pass header value for webservice authentication.
2
votes
2answers
138 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 ...
2
votes
5answers
1k views

API testing Using Postman

Can someone tell me the basic test cases for testing an API with Postman? Which test cases are commonly applied in API Testing. Note: I am a beginner and I don't know where to start.