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
-1 votes
0 answers
11 views

javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find ...Error

Im getting below error when try to execute a sample API test with karate API test framework. What might be the reason. I have tried with java 1.8 and 20. But no luck. [ERROR] Errors: [ERROR] ...
ChathuD's user avatar
  • 2,147
0 votes
0 answers
21 views

How to download multiple files in local system using POST API request in robot framework rather than in binary form data

I struck in one scenario in which i need to download multiple files in local repository using POST API request in robot framework. I tried below code but not able to resolve the issue. ${headers}= ...
Chirag Dhingra's user avatar
0 votes
1 answer
136 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 ...
Aamna's user avatar
  • 93
0 votes
2 answers
61 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 ...
eilchner's user avatar
0 votes
1 answer
197 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
52 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
145 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
55 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
1 vote
2 answers
7k 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
  • 21
0 votes
1 answer
399 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
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", ...
Jimmy's user avatar
  • 111
0 votes
2 answers
292 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
1 vote
5 answers
129 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,736
0 votes
2 answers
381 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
0 votes
1 answer
402 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
  • 11
-1 votes
2 answers
67 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
96 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
144 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
504 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
609 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
295 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
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
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
427 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
276 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,117
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 ...
Rush910's user avatar
  • 137
-2 votes
2 answers
604 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
421 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
324 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
569 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
624 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
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, ...
Gaj Julije's user avatar
2 votes
2 answers
79 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
77 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
420 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
3 votes
2 answers
1k 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
420 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
  • 265
1 vote
1 answer
741 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
  • 265
0 votes
2 answers
776 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
  • 265
0 votes
1 answer
625 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
  • 265
0 votes
2 answers
952 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
2 votes
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
  • 265
0 votes
1 answer
719 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
533 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
  • 265
1 vote
0 answers
71 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
189 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
106 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
  • 265
-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
1k 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
  • 11.1k

1
2 3 4 5