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
0 votes
1 answer
358 views

Playwright File layout

New to QA and Playwright. Related to styling and file naming conventions: Say you have complex software with multiple endpoints that you are writing automated tests for. How would you organize your ...
0 votes
3 answers
2k views

Allure vs extent report for Rest Assured API testing?

This may sound like an easy question, but it is never easy to choose (I like when I have one option). In API testing I will have 20 000 test cases, and they will perform relatively fast. Also I know, ...
3 votes
1 answer
12k 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 lots, ...
0 votes
1 answer
87 views

Deleting a resource using POST method instead of DELETE Method in REST API

I was taking some online course to learn API testing. As per my understanding We can use POST: to add the items (e.g., adding a new book in the library) GET: to view/ see the items (e.g., see the ...
-1 votes
4 answers
862 views

How can i extract data out of software?

How can i extract data out of software (trading platform) in real-time and save it so that it can be analyzed later? Do i need some kind of API ? What is an API exactly (i'm not very clear on it) ? ...
0 votes
2 answers
48 views

How to correctly divide API tests into test cases

I'm practicing API testing and I'm wondering what the correct approach to dividing tests into test cases is. For example, GET gives me a JSON which is a list of items and I want to check a few things ...
0 votes
1 answer
358 views

Postman - Compare response body with database data

Request Body: { "StudentInfo":{ "Student":[ { "StudentId":"001" } } } Response Body { "Studentinfo":{ "Student&...
3 votes
3 answers
3k 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 ...
0 votes
2 answers
9k 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 ...
1 vote
1 answer
1k views

How to get number of requests sent and actually received by server in JMeter

I'm using Jmeter in remote env.(1manager server, 3-5 querying servers, 1 target server). I have fixed EPS/QPS and threads(gradually increasing up to a certain value). I want to know if there is any ...
0 votes
1 answer
90 views

What are all things you will check in API Testing? (Assuming you are a manual software tester)

This is an interview question. What points are they looking for when asking this question, you are using REST API. Check for errors, data accuracy, right status codes?
0 votes
2 answers
2k views

How can I store a value as global variable from an API response and pass it to another API as parameter in Cucumber feature file using REST assured

I am designing automation scripts using the Cucumber BDD framework for REST APIs using RestAssured. I have one API which generates the "Token" and then there is another API for order ...
0 votes
2 answers
916 views

How to get variable in Flexible File Writer in JMeter

I was testing service with JMeter. I need to write the phone number into a CSV file and the phone number is a variable as you can see in the Debug Sampler. I was using Flexible File Writer for writing ...
1 vote
2 answers
473 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
0 answers
49 views

Login flow automation of application which uses aws cognito to login the use into the app

I have an application where I need to automate the login flow using postman. The application UI accepts email and password but the thing is in the backend that application is using aws cognito to ...
0 votes
1 answer
113 views

I want to confirm whether Jmeter's IP Spoofing only works on local networks and not for public?

Suppose I want to hit Server A on the internet, I have a public IP aa.aa.aa.aa and local IPs bbb.bbb.bbb.bbb, ccc.ccc.ccc.ccc. When hitting Server A, what will be recorded in the server log is only ip ...
0 votes
1 answer
47 views

I am learning API testing using Postman, do I also need to know Web services testing? [closed]

I am learning API testing using Postman, do I also need to know Web services testing? I know that we can use JSON, XML, and other formats to transfer data to an API, but we can only use XML format in ...
1 vote
2 answers
6k views

What is the difference between Bearer token and API key authorisation in Postman API testing? [closed]

I am a complete newbie in API testing. Now, while sending a GET or POST request , we need to authorize the calling project. How does it work internally and what's the difference between API key and a ...
0 votes
5 answers
117 views

Choosing Testing tools against multiple programming languages

I have a few questions in regards to setting up/deciding automation frameworks against microservice architecture OR codebases that span various programming languages. Specifically in this "...
-1 votes
1 answer
1k views

Cypress API testing : How to login and then use the auth token in another test?

How can I access the token generated from 1st it block to 2nd it block. here is the code: 1st it block it('Login using new user', () => { cy.api({ method: "POST", ...
0 votes
2 answers
271 views

Can I use Cypress for API Testing?

I am new to Cypress and trying to find the best/good practices for doing api test. My goal is to create an automation API test using cypress but can't find structure/guidelines to follow. Can anyone ...
0 votes
2 answers
326 views

Is testing an API by payload comparison with a database query advisable at the end to end level?

I’ve recently joined a company who are rolling out an end to end API testing strategy based around explicitly verifying the payload returned against the database at the end to end level. The approach ...
-1 votes
3 answers
459 views

POSTMAN - How to fetch data using POST method instead of GET?

This is the url on which i'm sending a GET request to access data - reqres.in/api/users?page=2 The data i'm getting in response is somewhat like this (id - 1, name - john, job - QA ; id - 2, name - ...
1 vote
2 answers
141 views

Test users password- static or dynamic

During our e2e testing, 100+ test users are created on our application. Workflow goes like this: 1. Generating a random password with faker library 2. Storing it in a variable 3. Using the variable to ...
5 votes
1 answer
839 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 ...
1 vote
3 answers
511 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 ...
-1 votes
2 answers
59 views

Suitable free/open-source automated tests framework(s) (UI / API / mobile)

Context Again, the 1 million dollar question... I have programming background skills, and about 6 months ago accepted a new role as the main responsible for QA testing at my company's development team....
1 vote
1 answer
93 views

API Testing and automation framework [closed]

I wonder if it is 100% necessary to use an automation framework like KARATE instead of API Tools like POSTMAN. Usually I automate different websites by using SELENIUM & JAVA and I try different ...
6 votes
5 answers
26k 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 ...
1 vote
1 answer
231 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
1 answer
561 views

Hitting requests with different IPs in a virtual machine

My jmeter setup is installed in a virtual machine, I want to hit requests such that they appear to come from different IPS. Need a possible solution if any.
0 votes
1 answer
281 views

How to use JMeter for parallel executions running using postman?

How to use JMeter for parallel executions running using postman. I want to execute close to 4000 to 5000 requests id`s at the same time and see the results.
0 votes
1 answer
5k views

How to execute parallel run in postman for get option in one go?

Need to know how to run parallel executions in postman for get options with single access id but with multiple requests
0 votes
1 answer
395 views

Should I separate my API tests from E2E tests

I have a system that displays data it gets from API calls. There are multiple objects and every object has 7-8 properties. User is not allowed to change values and the system has a simple UI. I want ...
4 votes
2 answers
22k views

Printing Response body element in Test results in Postman

I need to print one specific response element from the response body of an API in the test results section of Postman.
1 vote
4 answers
18k views

TestNG- No tests found. Nothing was run

UTF-8 io.rest-assured rest-assured 4.1.2 test org.testng testng 6.14.3 ...
2 votes
1 answer
4k 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 ...
3 votes
1 answer
1k views

Pass nonce, opaque params using Jmeter

I'm absolutely new to JMeter tool, so the question may be incorrect. I'm trying to send API request, which requires Digest auth. I tried to use HTTP Auth manager, but it doesn't have all fields to set,...
0 votes
1 answer
262 views

Measurement of APIs load and performance within a Cucumber test case possible?

Baseline: Currently, within a Java environment and Maven integration, we use Cucumber for our API testing procedures inside Junit Test. This is also well implemented and accordingly everything works. ...
1 vote
2 answers
2k 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 ...
0 votes
3 answers
486 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
2 answers
410 views

Passing test results from Postman Newman to Elasticsearch

Any idea how to pass postman newman test results to Elasticsearch ? I need to send every single test name, request url + test resut to elastic for kibana visualization. There's no native support from ...
6 votes
4 answers
38k 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":"...
2 votes
2 answers
2k 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
1 answer
1k views

How to send POST api request with the extracted details from an element using selenium+java

Use case is as below. There is a modal in a website and it contains User ID, Name and email. I want to capture those details using selenium+java and send a POST api request with the above extracted ...
-2 votes
2 answers
576 views

Should i learn SOAP API or Rest Assured API Testing? [closed]

I am new to API testing world. Should i learn Rest Assured API testing using maven and eclipse or should i learn all things on Soap UI or Postman tool? Which tool is more in demand in IT industry and ...
3 votes
5 answers
1k 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 ...
5 votes
12 answers
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. ...
3 votes
6 answers
1k 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 ...
10 votes
4 answers
3k 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 ...

1
2 3 4 5