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

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.

0
votes
1answer
16 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.
0
votes
1answer
22 views

NullPointerException in RequestSpecification

Getting Null pointer exception whenever running, unable to resolve. Below is my code public static RequestSpecification setFormParam(String formParam, RequestSpecification reqSpec) { ...
0
votes
1answer
29 views

Multiple API requests from CSV file as parameters

Let's say that my domain is api.test.com, path is /v1/products and I have to do 1000 API requests with different products as parameters. Examples: GET api.com/v1/products/product1 GET api.com/v1/...
1
vote
1answer
36 views

Testing specifics of GraphQL API endpoints

I'm used to testing "regular" REST API endpoints on daily basis, but currently I got into my first GraphQL API endpoint and I'm wondering are there any specifics that I should be aware of that are ...
0
votes
1answer
63 views

How to get Code coverage via external rest assured API automation using jacoco?

I have a multi module application "Project A". This application is hosted in clustered app nodes using tomcat as web server. We are using Spring, Web Services as primary among many other technologies ...
5
votes
4answers
1k 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 ...
0
votes
2answers
46 views

How to test decoupled front and back end web apps

I often struggle to see the benefit of unit testing, especially in a web app environment that uses a JS frontend and an API + database backend. On both the front and back end, you would typically ...
2
votes
1answer
54 views

Passing parameters between tests with RestSharp

As I'm getting more familiar with the RestSharp client library for my API testing I'm confortable with using it for single API response checks e.g. checking a status code is correct, or that the ...
0
votes
1answer
36 views

What does integration testing an API involve?

I'm diving into the world of API testing and coupled with that integration testing. It's made me think quite a lot about a few things: 1) Who would carry out integration tests? The dev or the tester? ...
0
votes
3answers
57 views

Testing multiple API contracts as part of 1 test

I have a situation whereby, say, I have one API which creates an employee(POST); one which then returns the employee(GET) and one which deletes the employee(DELETE). I've been using RestSharp/C# to ...
1
vote
0answers
32 views

Consumer-driven Contract Testing

I've just come across the term consumer-driven contract testing and, working as a QA, was wondering a few things: 1) what does this actually mean in laymans terms? 2) who would generally execute ...
4
votes
1answer
345 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’...
0
votes
1answer
51 views

How to run samplers sequentially in JMeter while running samplers by throughput?

I have ~10 scripts in my Test Plan which are dependent. (e.g. the 2nd request couldn't be passed if the 1st request is not passed - it is restriction of functionality) My goal is to run JMeter ...
1
vote
2answers
36 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
1answer
75 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
255 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
74 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
126 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?
4
votes
3answers
113 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
49 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
57 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
51 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
86 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 ...
12
votes
3answers
1k 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
62 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
277 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
2k 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
567 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
3k 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
65 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
26 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
38 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
1k 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
484 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
43 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
24 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 ...
9
votes
3answers
1k 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
296 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
57 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
292 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
182 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
754 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
1k 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
95 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
21 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
111 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
1k 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
246 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
152 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
62 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 ...