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
18
votes
5answers
31k 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 ...
14
votes
4answers
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 ...
10
votes
3answers
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 ...
9
votes
5answers
1k views

How is test case design different for GUI & API?

Is there really any difference in designing test cases for the API and the GUI for any product? I am writing functional GUI test cases (CRUD feature) for my application. Can I use the same test cases ...
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
185 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 test if my application method handles HTTP status 404 of a REST API without actually calling that REST API

I am currently trying to automate some of the testing for my application using JUnit. My application has a method which calls a 3rd party REST API. I need to check if that method is handling HTTP ...
6
votes
3answers
2k 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
6answers
28k 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
1answer
110 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/<...
6
votes
4answers
251 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
61k 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
10k 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
3k 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
4k 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
42k 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
5k 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
10k 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 ...
5
votes
2answers
1k 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
120 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
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?
4
votes
2answers
136 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
434 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
2k 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
6k 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 ...
3
votes
3answers
142 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
138 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
6answers
493 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
4answers
123 views

What are the scopes of API testing

I am testing few API endpoints of a product and there are many observations like: Server response with 500 error if the application content type is JSON instead of form data. Different endpoints ...
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
3answers
66 views

Pros and cons of using database dump in autotesting?

I'm going to write API and e2e auto-tests, and planning this encountered the problem of how to load test data needed to execute test cases. I see 2 approaches: Use api to create necessary resources....
3
votes
2answers
4k views

How to test and automate APIs implemented in GraphQL

In our company, we are creating APIs using 'GraphQL'. I want to test and automate this API for CI/CD. I have tried 'REST assured' but it doesn't have proper support for 'GraphQL' queries yet, please ...
3
votes
2answers
14k 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
2answers
51 views

API Testing with Specflow BDD Selenium?

I'm developing a BDD test automation solution with C# using Specflow (Cucumber) with tests written as plain text Gherkins. I am currently writing a regression test suite amongst others. When ...
3
votes
1answer
205 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
2answers
161 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 ...
3
votes
1answer
985 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
13k 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
782 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
9k 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
296 views

Strategies for discovering undocumented API

Inspired by this question: How to approach API testing. The first point of a checklist in the above question is "API Endpoints". But, what to do when you don't have the endpoints documented because ...
2
votes
4answers
117 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?