People who code: we want your input. Take the Survey

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
21
votes
5answers
36k 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 ...
15
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 ...
8
votes
3answers
159 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/<...
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
198 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
5answers
16k 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 ...
6
votes
3answers
3k 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
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 ...
6
votes
3answers
3k 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
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 ~...
6
votes
6answers
29k 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
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 ...
6
votes
4answers
522 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
63k 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
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
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
54k 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
6k 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
2k 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
192 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
173 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
7answers
161 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 ...
4
votes
5answers
9k views

How to randomly generate email address on postman request using pre-request script

I am new with Postman > Pre-request Script, Can you help me create a random email value for my API Request. Thank you in advance.
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
685 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
7k 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
0answers
704 views

How to integration test a Web API with identity server auth tokens

I have a scenario where I need to set up integration testing against our microservice architected application. This will mean creating some tests using Postman to hit our API, and running them with ...
3
votes
3answers
158 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
496 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
311 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
5answers
578 views

Advice on API Mocking Tools

I was interested in hearing people's experiences of using mocking, specifically for API testing. Whilst I’m (fairly!) well versed in automation techniques now, I haven’t yet used this approach but ...
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
4answers
175 views

How to spoof a third party API

Our application does calls to a third party API for completing a few tasks. This endpoint has an issue in the test environment, and management has asked us to mock this environment so when the app or ...
3
votes
3answers
138 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
26k 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":"...
3
votes
3answers
5k 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
1answer
177 views

How to count max character text for JSON api test

I have a JSON free text field that allows maximum 1000 characters. I want to check whether user is able to send paragraphs, so when I parse the text to string using online tools some extra characters ...
3
votes
2answers
17k 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
5k 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
111 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
208 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 ...