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
0answers
20 views

Postman Question. Getting POST request data to GET and DEL request

I am very new to Postman and have a quick question. I can elaborate as much as needed. I create a new user with a POST request. I then want to get that user's ID from the GET request and plant it in ...
4
votes
0answers
58 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/<...
1
vote
1answer
29 views

REST Assured API | Why we use equalTo() while asserting body part of response?

When we assert our body part, we use the method equalTo() but while asserting for Header, we are just providing ("Key","value") pair only. Why can't we use just- body("scope","APP") Any specific ...
0
votes
0answers
51 views

While running TestNG program in eclipse getting error: A JNI error has occurred, please check your installation and try again

Getting JNI error while running TestNG program (that doesn't have main() function). But If trying to run the same program with same set of configuration (i.e. eclipse and java version), "Run as a ...
1
vote
1answer
34 views

HTTP client test integration into Jenkins

IntelliJ Ultimate offers a code editor to test HTTP request (including asserts). Those tests can even be stored as a file or run-config to be executed for later api testing. The official documentation ...
3
votes
4answers
97 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 ...
1
vote
0answers
46 views

GUI tool for API testing with possibility to choose HTTP protocol version

I'm looking for a GUI tool for API testing that allows for changing a HTTP protocol version. There're many tools for API testing, but all I've found don't offer a choice of selecting what HTTP ...
1
vote
6answers
94 views

API Management Tool Recommendation

I am looking for a tool for API testing and collaboration that offers the following: Creating a workspace that can be shared with a limited number of people. A good number of collections without ...
0
votes
2answers
54 views

Consume POST request data to GET and DEL requests

I get an id from a POST request and I want to use that id in the GET and DEL requests. I don't want to do it manually; if there is automated way that my read and delete requests consume my POST ...
0
votes
3answers
77 views

What test cases should I consider when testing this flow?

I have an endpoint that when it gets called, a pdf is generated based on parameters that are coming in from the frontend and then that pdf is returned back to the client side for rendering. In the ...
1
vote
1answer
63 views

API tests against production DB with no endpoints to set up test data

I'm creating regression tests for one of our APIs. I'd like to discuss how to go about it in my particular situation. I have no problem on the dev environment, but when it gets deployed to a staging ...
0
votes
1answer
48 views

Can we Run One thread group with multiple threads but hitting same request by all threads concurrently in jmeter?

I have a one thread group with 100 requests in it, i am passing some ids from one request to another (it is a one complete flow of application). I want to achieve, if i give 50 threads, each thread ...
0
votes
1answer
181 views

Cypress redirect e2e test with stripe js

I am writing an e2e test in cypress for an online store and after clicking the confirm purchase button it redirects to stripe page (not iframe but one-time payment redirect to their website) to input ...
0
votes
1answer
40 views

Can i check at a time multiple api in jMeter? [duplicate]

I have started the JMeter in the mobile Application can I test the Multiple API at a time in Jmeter if yes then how can I check the output?
3
votes
3answers
56 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....
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 ...
1
vote
0answers
27 views

Header isnt being sent when using faraday gem ruby

I am doing an Api automation in Ruby and I am using the Gem Faraday to automate a file upload in my API. I have the follow problem: My Header is not being sent. I just tried all the options and is ...
2
votes
4answers
190 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 ...
0
votes
3answers
185 views

Postman or any API tools for API cache testing

my application (Restful API, no UI interface at this moment) has the Cache Async in memory functionality at each GET, POST, PUT, DELETE. Does Postman or any API tools has the ability to test the cache ...
2
votes
4answers
116 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?
0
votes
2answers
33 views

Testing GET API interactions with Oracle

We have some GET APIs written in Python which fetches some data from Oracle i.e. there are some SQLs written in Python APIs through which it fetches the data from Oracle. This is not consumed by an ...
0
votes
0answers
126 views

TestNGClassFinder Warning: Can't link and determine methods of class examples.ExamplesTest

Just started with Karate API test sample project and encountered with this issue. My pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
0
votes
1answer
83 views

Best practice for testing data integrity between server and UI

I am a QA. This is the software chart: Search Engine (Apache Solr) <-> Server (expose itself to UI by an API) <-> UI. The server makes queries on the search engine and send the returned data ...
0
votes
2answers
63 views

Test if an API Service is available

I'm creating a test suite for a test that should check that a specific API Service is available. So I'm confused on exactly how I can check the availability of a service. Is it sufficient to only ...
1
vote
2answers
103 views

Jmeter 1 Thread Group and Multiple HttpRequest

I have the following Jmeter configuration where I have 1 Thread Group with Number of Threads 1 and under this 4 HttpRequest I have defined. The loop count is forever. My question is how will my ...
0
votes
2answers
64 views

Automation data setup: via SQL or via APIs?

I've had this discussion recently and would appreciate some more opinions and experiences of this community. When setting up data for integration tests (API or UI), is the favored approach via SQL or ...
0
votes
1answer
26 views

How to perform page load for page with API in it?

I have tried RESTAPI testing for few projects, but I have a task now to perform concurrency testing/ load test of a page. When I inspect the page load in chrome >> Network tab, it shows one Index ...
0
votes
1answer
67 views

Automated End-To-End-Testing: Generate API calls via swagger or make them hardcoded?

We, the test automation team, are currently implementing end to end tests. We use the API of the backend team for the setup of the end to end tests, which run via UI. Should we use the swagger file ...
1
vote
2answers
135 views

Postman API test structure

Recently I started writing tests for our API. However, I have faced some issues which I think it is critical to think at the start. How should I structure my tests in terms of setup and cleanup phase(...
1
vote
2answers
646 views

Schema Validation in Postman

I'm having trouble validating a schema in Postman using tv4 inside the tests tab - it is always returning a true test, no matter what I feed it. I am at a complete loss and could really use a hand - ...
0
votes
0answers
405 views

Use tv4 to validate schema in postman

I am trying to validate a scheme using tv4 in Postman, but no matter what I do it always passes - even if I force bad data. I am unsure if I am doing something wrong or if there is an issue with tv4 - ...
-2
votes
1answer
189 views

OWASP ZAP integration into SOAPUI for REST API Testing

One of the topics I am currently working on is the testing of APIs on the security level, e.g. as integration in SOAPUI and OWASP in WSO2. The integration of SOAPUI and WSO2 is set up and also works. ...
-1
votes
1answer
29 views

Login call should hit before every call in Jmeter

In my projects' auth token, I can use it once then it expires so obviously other calls are also failing. All the sub calls are configured in the csv file(s), tied with multiple jmx file integration ...
4
votes
2answers
132 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 ...
1
vote
1answer
88 views

Testing REST api with postman

I am very new to this, so I am approaching it like I would test a sign up form for instance. I have a Rest interface exposed for testing operations: Getting all users, getting users by id, searching ...
0
votes
1answer
77 views

Eclipse C++ Unit Testing without Unit Testing framework

I am looking for some ideas on how to implement a Unit Test framework without any existing unit test tools like Google Test Runner. I am on a closed network without internet access and so whatever ...
3
votes
3answers
137 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 ...
1
vote
1answer
225 views

How to remove keys from rest-assured ValidatableResponse and assert response with constant json string

In rest-assured test cases I am getting mentioned 'ValidatableResponse response' where I want to remove keys such as "updated_at", "deleted_at", "created_at" and "notice" and assert this object with ...
0
votes
0answers
51 views

How to remove keys from response json and hold remaining json data in an object using java 8 lambda expressions for rest assured test case

In REST-assred test case I am getting ValidatableResponse body as mentioned from which I want to remove notice, created_at, updated_at and deleted_at keys using java 8 lambda expressions and assert it ...
1
vote
3answers
530 views

Unit Test - Testing API Methods

I was reading the following article Unit testing an API This article is about unit testing an API and the methods on a class through the interface. What I do not seem to grasp is the fact that in my ...
0
votes
1answer
100 views

Is it a good practice to compare responses with benchmark responses in API Test Automation?

Is it is good practice while writing automated tests for APIs to compare the complete response of the requests with a benchmark response instead of writing specific tests to verify the required values ...
0
votes
1answer
54 views

Is it necessary to write test cases for different test levels?

When creating test cases after unit testing(done by developers) QA team starts working on component testing. For component testing level there will be test cases written by the QA's When it ...
1
vote
1answer
35 views

Error showing for url when try to run api test script with Newman

I'm beginner to REST API testing. I wrote some scripts for some scenarios using postman and tried to run with Newman. (In there URL defined as environment variable.) Showing errors for that URL when ...
7
votes
1answer
182 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 ...
1
vote
2answers
8k 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":"...
1
vote
1answer
46 views

For my POST method i used Threads User multiple but actually when i run jmeter record will added only single time

I have created Thread Group with 5 number of users, but in actual when I run my POST method then record add only single time, but I want to add 5 records in a single run to check performance for POST ...
1
vote
2answers
50 views

How to identify a specific location in returned Json through a postman test

When submitting an order to an API we get a Json response containing: "AMLResults": [ { "amlResult": [ { "addresses": [ { ...
2
votes
4answers
123 views

Diff between Integration(written by dev) and End to End testing(written by qa)

Recently, I was in conversation with a developer, developing an API. We had a conversation appertaining to testing of that API, while I told him we will test the end to end flows of API using ...
0
votes
1answer
454 views

Rest assured API to get a element from Json response

I'm using restassured.path.json.JsonPath extractor From the below response I would like to extract the customerProductIdentifier where highLevelProduct is HSI, { "recordsChoice": [ { ...
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 ...