We’re rewarding the question askers & reputations are being recalculated! Read more.

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
2
votes
1answer
308 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 ...
0
votes
2answers
1k views

Deserializing JSON response using RestSharp

I'm looking for some general advice with an API framework I am setting up using C# and RestSharp as the client library. I've successfully set up an initial test, but I'm now looking at creating a ...
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 ...
0
votes
1answer
829 views

Preview tab is empty for the request sent in Postman tool

Am new to POSTMAN tool and when I send a request am getting the response status as '200 ok'. But in Preview tab, the page is not displaying and its empty. How to view the response in preview tab?
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 ...
1
vote
1answer
174 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 ...
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 ...
1
vote
3answers
153 views

Advice on API Mocking Tools

I was interested in hearing peoples 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 ...
0
votes
1answer
307 views

Testing NIFI: best practices

I do have new task related to test NIFI Apache. not sure where to start or how to. I have one thing in mind to test it as an API but the only response it sends is status code. I know also it has be ...
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 ...
0
votes
1answer
89 views

API automation for a android App [closed]

I have to start API automation for a android App. App is coded in C++. Please suggest the approach as I am new to API testing.
0
votes
0answers
530 views

Rest Assured | Why getting repeated errors when trying to automate apis using rest assured?

I have just set up rest assured framework and implemented it as a maven project. My pom.xml has the below mentioned dependencies io.rest-assured rest-assured 3.0.2 test io....
1
vote
1answer
8k views

PostMan gives “JSONError: Unexpected token '<' at 1:1 <!DOCTYPE html> ^ ” when trying to extract data from response body [closed]

I am trying to chain API request on using POSTMAN. I am writing a script in the test section for extracting token from the response body and storing it in an environment variable. This is my code in ...
-1
votes
1answer
2k views

JMeter executing samplers in sequential order wherein each subsequent request depends on the response of the preceding one?

I have a JMeter script wherein the thread group has eight samplers and each sampler depends on the response of the preceding one. When I run this jmx script with 'Number of Threads' as one, it works ...
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 ...
0
votes
2answers
91 views

Integration testing a website with no public API

I have recently been reading about the test pyramid and how integration testing fits into the grand scheme of things, when it comes to web services, with regards to API testing. QUESTION: Does API ...
0
votes
0answers
41 views

How to start with service virtualization ?

I have to create one POC on service virtualization. Can someone have idea about best site/blog where i can start and some open source tool which help me create a demo?
0
votes
1answer
42 views

How to find method name and return types in API testing?

When creating a test for api testing how do I determine which method I should call(how to know method name) and and its return type(GET,POST,etc)? For example : Do I have to talk to developers and get ...
0
votes
2answers
4k views

How do I implement Extent Reports in my rest assured api testing framework?

I have recently started rest assured to automate apis. My current framework folder structure has an ApiTestCases class in a folder under src/test/java I have a testNG suite xml to run the tests. How ...
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 ...
-2
votes
2answers
48 views

How to test a system developed using Angular, java and API's? [closed]

If a system is developed using Angular for front-end and java for back-end. Front and back ends are interacting using API's. My questions are: (Please answer using relevant number before the answer) 1)...
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 ...
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 ...
0
votes
2answers
142 views

jmeter learning topics for jmeter testing [closed]

What are the topic comes under learning j-meter testing? like for database testing,login/logout testing,full project flow testing ,load testing of mobile api's
-1
votes
1answer
374 views

What are the major changes/features in JMeter 4.0? How to upgrade to version 4.0?

JMeter has come up with version 4.0, again this is a major release! Apparently the UX has changed but what are other important changes or features. With the release of 3.0 JMeter came up with the ...
0
votes
1answer
347 views

Need to feed the input data for particular API in the collection using POSTMAN

Currently, am using POSTMAN collection for API testing. In the collection, we have more than 10 API's request. we are passing the input from the CSV while passing the input, I need to apply for only ...
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.
1
vote
1answer
3k views

What is the simplest way to rewrite Postman requests to C#

I have made lots of made Requests in JSON in Postman. Now I am thinking about re-write all the Postman-tests into C#. There are many different Nuget packages that could be used. I have googled a ...
1
vote
0answers
35 views

The response XML is getting with some space after running collection runner in Postman [closed]

I'm using collection for the XML service in Postman, After the execution, I got the results successfully but when am seeing the test results the response body is coming with some extra space for each ...
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 ...
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 ...
1
vote
0answers
221 views

Testing scenario to test remote API through Proxy server [closed]

I'm working on Remote API testing. Now we decided to pass every request through proxy server to fetch the endpoints. I just wanted to know is their any special scenario that I need to focus. Thanks.
1
vote
0answers
90 views

Using `ava` test runner for functional testing

This question is to get a recommendation from the community, what framework/library they mostly use for testing their APIs (REST) in JavaScript. I stumbled upon https://github.com/avajs/ava, would ...
4
votes
2answers
306 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?
1
vote
0answers
197 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) { $...
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? ...
3
votes
1answer
612 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 ...
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 ~...
2
votes
0answers
570 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 micrososervice architected application. This will mean creating some tests using Postman to hit our API, and running them with ...
1
vote
0answers
30 views

Did anyone used MUNIT for API integeration testing?

Did anyone used MUNIT for API integeration testing? I'm exploring options to build automation suite for API's and among different options there is not enough information regarding munit. Could ...
1
vote
1answer
290 views

Use of Jmeter for api load testing with full workflow [closed]

i am using jmeter for api load testing but i face one problem that i need to do load testing for full website with full workflow ,having little idea how to test but it didn't work for full workflow,...
1
vote
1answer
2k views

Jmeter Data Compare for functional testing

How i can compare two dataset return from diffrent operation in Jmeter ? First data returns from JDBC PreProcessor - Declear variable StCode and data returns in below mention format StCode_1 = abc ...
0
votes
1answer
4k views

Why am I getting “RangeError: Maximum call stack size exceeded” when I try to run FrisbyJS tests with Jest?

When I try to run my frisbyjs tests with jest as documented on the github page, I get the following error: RangeError: Maximum call stack size exceeded at String.slice (native) at Object....
2
votes
1answer
633 views

How to test oAuth Authentication?

We are making a mobile application that will be communicating with the backend, which also we are building. Authorization of users and application itself with the backend is going to be made using ...
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 ...
1
vote
1answer
690 views

Send few api calls in parallel and rest serially in Jmeter

I have to create performance test cases based on views in UI, for example one view makes 2 api calls in parallel and third one is called after first 2 have finished. I am going to have multiple views. ...
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 ...
0
votes
2answers
522 views

API testing beginner [closed]

I'm new to API testing, where to start my learning about API? what all are good to know features in API testing? Any documents link or advise on API testing.
2
votes
1answer
767 views

UFT and RestAssured

My company is working on API which is RESTful JSON Web API. So far, all my testing was done using Selenium WebDriver. I was given a task to look for a tool that can help us automate the API tests(...
3
votes
2answers
11k 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 ...