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
vote
2answers
71 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 ...
-1
votes
0answers
29 views

Postman API testing scenario coverage

I'm pretty new to testing using postman and want some advice on potential test areas for this scenario: API - /add-feature POST - updates a feature on a vehicle based on the VIN(Vehicle Identifier), ...
2
votes
2answers
57 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", ...
-1
votes
2answers
59 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.
2
votes
1answer
65 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 ...
2
votes
2answers
145 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 ...
0
votes
1answer
37 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 ...
1
vote
1answer
135 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 ...
0
votes
2answers
155 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. ...
0
votes
1answer
34 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 ...
0
votes
1answer
160 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
0answers
1k 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 ...
1
vote
1answer
233 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 ...
0
votes
1answer
78 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" ...
1
vote
1answer
109 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 ...
1
vote
0answers
46 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 ...
4
votes
7answers
159 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 ...
0
votes
1answer
23 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 ...
-1
votes
1answer
33 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": [ ...
3
votes
4answers
147 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 ...
0
votes
1answer
466 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()....
0
votes
4answers
3k 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 ...
3
votes
1answer
158 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 ...
0
votes
1answer
171 views

Test Plan/Strategy of an application which has API +DB

I have faced this question numerous times during interviews. Given a simple application diagram (like below) how would you test it or what will be your test plan or test strategy. I know it is a very ...
0
votes
1answer
463 views

JMeter - can multiple thread groups use different rows within the same input csv file?

As part of my setUp Thread Group, I plan on creating objects that I need to refer to later on. Some of these objects are to test particular request methods like GET/PATCH/DELETE - things that need a ...
1
vote
1answer
187 views

Mock test automation with Wiremock + Xray + Jenkins possible?

Task Workflow, which links Wiremock + Postman + Jira +Xray + Jenkins in such a way that automatic test procedures can be carried out, which then return reports to Xray. Details Currently we use the ...
0
votes
1answer
780 views

JMeter - how to use external property files robustly in GUI and non-GUI mode?

I've got a JMeter test plan that I'm in the process of amending to use external property files for environment details and thread group numbers - similar to this link: https://octoperf.com/blog/2019/...
1
vote
1answer
42 views

Sticking to DRY when fixtures and test cases overlap

I'm looking for a way to structure tests from simpler to more complex and at the same time stick to the DRY principle. Here is an example that might clarify things better. I'll use some pseudo code to ...
0
votes
0answers
20 views

How do I validate the data display in mobile app against the expected values?

We have been developing a mobile application using Xamarin and a server component. So there are no direct services calls to the mobile App all the services coming and going through the server ...
1
vote
1answer
307 views

RestAssured: Url Constrcution with query param where param value is not String

Is there a way to construct Url with query parameters where the value of the query param is not string. For String values of query parameter there are APIs in RestAssured or apache httpClient but I ...
6
votes
3answers
2k views

How to test if my application method handles HTTP status 404 of a REST API without actually calling that REST API

I am currently trying to automate some of the testing for my application using JUnit. My application has a method which calls a 3rd party REST API. I need to check if that method is handling HTTP ...
1
vote
2answers
2k views

JMeter - FileToString with relative file path to test plan?

I've got a JMeter POST request that has body data like below: ${__FileToString(/${json_request}.txt,,)} The json_request variable comes in from a CSV data set config, allowing me to iterate through ...
-2
votes
1answer
4k views

How to extract a value from a JSON response with Java and Rest-Assured

I'm getting the response below. I need to assert the value of "Type". How can I get the value? I'm using Java and rest-assured The response: "Product1": { "Productive1": { "applause": { ...
3
votes
2answers
102 views

API Testing with Specflow BDD Selenium?

I'm developing a BDD test automation solution with C# using Specflow (Cucumber) with tests written as plain text Gherkins. I am currently writing a regression test suite amongst others. When ...
1
vote
1answer
320 views

How to do API Automation when the content can be very dynamic and the API calls are not directly happening through browser?

I have a scenario where I know the API request format and some data but not the other dynamic data, let's say it is a dynamicParameter. Now this dynamicParameter data will keep changing and it a ...
8
votes
3answers
158 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/<...
2
votes
2answers
485 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&...
0
votes
0answers
703 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
46 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
291 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
1answer
94 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 ...
2
votes
6answers
103 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
102 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
91 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
149 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 ...
1
vote
1answer
912 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). What I want to achieve is if I give 50 threads, each ...
1
vote
1answer
972 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
354 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
126 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 ...