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
45 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?
chris's user avatar
  • 23
0 votes
0 answers
32 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 ...
Sanjay Bhatia's user avatar
0 votes
1 answer
41 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 ...
ilf's user avatar
  • 3
0 votes
1 answer
39 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 ...
testerlearning92's user avatar
0 votes
2 answers
3k 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 ...
test234's user avatar
  • 11
0 votes
1 answer
222 views

Postman - Compare response body with database data

Request Body: { "StudentInfo":{ "Student":[ { "StudentId":"001" } } } Response Body { "Studentinfo":{ "Student&...
user55906's user avatar
-1 votes
1 answer
631 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", ...
Jimmy's user avatar
  • 111
0 votes
2 answers
192 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 ...
Jimmy's user avatar
  • 111
0 votes
5 answers
100 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 "...
Mercfh's user avatar
  • 1,726
0 votes
2 answers
188 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 ...
cw84's user avatar
  • 103
-1 votes
1 answer
192 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 ...
Mish's user avatar
  • 1
0 votes
0 answers
120 views

Unable to send CSV data as part of payload (Playwright API with C#)

I am using Playwright with C# and I need to send a POST request. Since I need to include a CSV data file in the payload, I am using multipart encoding, but have not had much luck so far. The CSV ...
ToastMan's user avatar
  • 380
-1 votes
2 answers
48 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....
João Fernandes's user avatar
1 vote
1 answer
82 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 ...
new_programmer's user avatar
1 vote
2 answers
119 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 ...
mark_Ruff's user avatar
-1 votes
3 answers
292 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 - ...
functester02's user avatar
0 votes
1 answer
369 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.
Divyanshu Chahal's user avatar
0 votes
1 answer
225 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.
Kamgates's user avatar
0 votes
1 answer
4k 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
Kamgates's user avatar
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 ...
iAutomate's user avatar
  • 359
0 votes
1 answer
326 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 ...
archbtw's user avatar
0 votes
1 answer
205 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. ...
Mornon's user avatar
  • 1,105
0 votes
1 answer
949 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 ...
Rush910's user avatar
  • 127
-2 votes
2 answers
485 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 ...
test882's user avatar
1 vote
2 answers
360 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 ...
Martin Koníř's user avatar
1 vote
2 answers
258 views

How to avoid API tests duplicating Unit tests

How to deal with the overlap between unit tests for API endpoints (presumably written by the developers) and automated API tests (written by testers)? The authorship of the tests is of secondary ...
Mate Mrše's user avatar
  • 4,119
1 vote
1 answer
435 views

AllureRestAssured , how to ignore logging headers

I am using rest-assured and allureRestAssured for testing api given().header("Content-Type", "application/json") .header("key", key()).filter(new ...
Cod's user avatar
  • 11
1 vote
2 answers
548 views

New to automation testing of APIs with Pycharm and Pytest

We are moving all manual testers to automation. I am very familiar with 'concepts' but really need a beginners step into automation for new API Service and endpoints. The developer is coding a new ...
Zenobia Bomani's user avatar
0 votes
2 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, ...
Gaj Julije's user avatar
2 votes
2 answers
78 views

Search for minimum number of occurrences of a substring

The following is the Body of the response: { "downloadTime": "2021:03:17T17:52:21Z", "downloadTimeStamp": 1616003541, "genome": "hg38", ...
Beeta's user avatar
  • 23
-1 votes
2 answers
76 views

How can one test the security measures or vulnerability when it comes to API testing? [closed]

I use REST for API Testing. What are good tools and/or approaches to testing security issues ? Any information through which I can broaden my perspective,ways,tools for testing when it comes to API.
Hetvi shah's user avatar
2 votes
1 answer
351 views

When I use thread = 5 all test cases get failed but same test cases works wih thread = 1 on jenkin

I am executing the api test cases using TestNG. When i use the below command clean test -i --tests 'com.testcases.api.*' -Pgroups=mygroup -Pthread=1 -Ptype=api All test cases get pass however if I ...
user3652040's user avatar
2 votes
2 answers
836 views

API Testing on production - what requests shouldn't test?

I've manage to get new job and what I can say so far - expectations for me are high. I never used to test API on production - usually I've been teached to test API on dev/test enviroment, but in ...
nieudacznik toja's user avatar
0 votes
1 answer
347 views

Taurus/JMeter - total time for thread group execution within pass/fail criteria

I have an end-to-end scenario to include in performance testing that takes a decent length of time to execute. Between releases of the system, this time needs to be monitored to ensure it hasn't ...
Moorpheus's user avatar
  • 255
1 vote
1 answer
631 views

JMeter - save response to file listener but also ignore result

In JMeter, I am using a post processor running prev.setIgnore() within the setup thread group to ignore those requests. Some of these requests are JDBC requests to select data out of the database and ...
Moorpheus's user avatar
  • 255
0 votes
2 answers
692 views

Taurus - JMeter properties set via command line are not being picked up

I've got a JMeter test setup with the environment details (protocol, hostname and port number) set as properties. This is so I can repeat the same test on multiple environments through a pipeline. ...
Moorpheus's user avatar
  • 255
0 votes
1 answer
497 views

Taurus & JMeter - ignore setup/teardown requests in reports

I'm using Taurus to execute JMeter test files. In my JMeter files, I need to do a small amount of setup and teardown (for authentication purposes and data seeding). They aren't directly related to the ...
Moorpheus's user avatar
  • 255
0 votes
2 answers
829 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 ...
Shahrear Bin Amin's user avatar
1 vote
0 answers
7k views

Postman gives There was an error in evaluating the test script: JSONError: No data, empty input at 1:1 ^ error

I'm trying to create a postman script that sends an SMS message to a phone. When I send the message I get this error: There was an error in evaluating the test script: JSONError: No data, empty input ...
user99201's user avatar
  • 111
1 vote
1 answer
1k views

JMeter - csv data set with property as filename

In my setupThread, I firstly run some code to generate a property containing a file path. I then want to use this file path as the filename parameter for a CSV data set config (still within the ...
Moorpheus's user avatar
  • 255
0 votes
1 answer
624 views

aspectjweaver must be a valid version in POM.xml [closed]

<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
Ashutosh Singh's user avatar
1 vote
1 answer
450 views

JMeter to Taurus - how to handle external property files and pass/fail criteria?

I've got a lot of JMeter tests setup - multiple test plans, thread groups, requests, asserts etc. We're using it for our functional API testing, as well as performance testing. I am now investigating ...
Moorpheus's user avatar
  • 255
1 vote
0 answers
53 views

Status code 400 when trying to use the petstore3 API [closed]

I am experimenting with API testing but I am stuck almost at the beginning. Please tell me maybe I am doing something wrong? On the petstore3.swagger.io web-page I press Authorize button and enter ...
Kosh's user avatar
  • 315
4 votes
7 answers
184 views

I want to practice testing API but can't find anything interesting

I want to practice in automating API testing but can't find anything interesting. Everything that I found were on the one hand rather complicated, on the other hand they did not allow testing such ...
Kosh's user avatar
  • 315
0 votes
1 answer
87 views

In JMeter, what are some good methods to handle external dependencies?

As the title says, what are some ideas for dealing with non-API request related dependencies in a JMeter test? I have a series of tests that work with zipped-up data. The first step in the test is to ...
Moorpheus's user avatar
  • 255
-1 votes
1 answer
35 views

How to fetch the list of newly created time entries alone using Postman? [closed]

From this json, I need to fetch created_at. How should I do it in Postman? { "meta": { "total_logged": 127200, "total_logged_per_team_member": [ ...
Shivashankari T's user avatar
3 votes
4 answers
838 views

How to spoof a third party API

Our application does calls to a third party API for completing a few tasks. This endpoint has an issue in the test environment, and management has asked us to mock this environment so when the app or ...
PDHide's user avatar
  • 11k
0 votes
1 answer
2k views

Rest-assured - Schema to use cannot be null

Using the code below, I'm getting the following error: My code: @Test public void get_user_API_Schema_Test() { RestAssured.baseURI = "https://gorest.co.in"; given()....
Ashutosh Singh's user avatar
1 vote
4 answers
16k 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 ...
Ashutosh Singh's user avatar
3 votes
1 answer
609 views

How to count max character text for JSON api test

I have a JSON free text field that allows maximum 1000 characters. I want to check whether user is able to send paragraphs, so when I parse the text to string using online tools some extra characters ...
sathishS's user avatar

1
2 3 4 5