Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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.

2
votes
3answers
62 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
40 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
49 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
2answers
39 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
0answers
29 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 ...
8
votes
3answers
847 views

Test strategy to bring automated tests from UI to lower layers including API/ and or Unit tests?

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
53 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
102 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
0answers
439 views

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

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
117 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
2k 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
61 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
19 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
36 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
534 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 ...
5
votes
3answers
260 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 ...
-3
votes
2answers
41 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)...
0
votes
0answers
21 views

which e2e test frame for multiple docker container app involving kafka, postgres, and rest api

I have an app which is setup by docker-compose. The app contains docker containers for kafka, postgres, rest api endpoints. One test case is to post data to endpoints. In the data, there is a field ...
8
votes
3answers
834 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
288 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
51 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
232 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
108 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
524 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
675 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 ...
0
votes
0answers
72 views

Which are the best practices to design a SOA testing architecture with UFT?

Best practices to design SOA test architecture in UFT Which are the best practices to design a SOA testing architecture with UFT? In SoapUI it is suggested to make a testsuite for each WS, ...
1
vote
0answers
16 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 ...
0
votes
0answers
57 views

Input Iteration data's are not reading from the CSV for the request in the POSTMAN

I'm facing problem while reading the input data from the CSV for data-driven testing. My inputs are from the CSV file so I am passing the request parameters without values in the body while posting ...
3
votes
1answer
861 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 ...
3
votes
3answers
82 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
92 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
43 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
177 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
103 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
3k 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
138 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
324 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
309 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
26 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
125 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,...
0
votes
1answer
572 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
1k 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....
1
vote
0answers
258 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 ...
6
votes
2answers
623 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
366 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. ...
4
votes
2answers
10k 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
356 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
477 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
4k 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 ...
1
vote
2answers
3k views

What are the good java Frameworks/Libraries for REST API Automation Testing? [duplicate]

My primary focus will be to make API Calls and to verify Status Code and Json response.If you know any library which makes this task easier please answer. As of now I am using Postman-Newman Apache ...