Questions tagged [api-automation]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
81 views

How to send nested JSON in cucumber as request

I'm trying to send nested JSON through Cucumber data table. I have the following scenario, I have tried Scenario Outline too but it didn't resolve the issue. Scenario: provider edits new ...
0
votes
1answer
29 views

how to insert generated id from response , into the endpoint

I'm testing API, using Rest assured, programming language is java. Is there any way to get the generated id from a response body and insert it into the endpoint? I have the following endpoint {baseUrl}...
0
votes
2answers
60 views

deserializing response body in java

I'm testing API with Rest Assured, I have all the necessary dependencies, all setup, the only question is, I have created all POJO classes for Request Body, I'm in the phase, where I have to verify, ...
0
votes
1answer
31 views

java.lang.NullPointerException,at ✽.Given product is set with the following fields(src/test/resources/features/wizard/wizardNewProduct.feature:

Pls, I need help, I'm getting a null pointer exception, When I send a request, I'm catching values in Cucumber through the List<Map<String, String>>. I'm testing API with Rest Assured and ...
1
vote
1answer
171 views

How to verify the page load opened in a new tab with a redirection?

I am testing a website that redirects the user to another website for buying stuff. Once I click on the Buy Now button a new browser tab opens and another website is launched displaying the product. ...
0
votes
0answers
23 views

ReadyAPI-Can we filter AWS SQS receive message using filters

We have 'Transaction ID' as a Synchronous response from ReadyAPI Please find the manual steps that we are doing for the validation. Login to AWS Shared account with the role created Navigate to “...
1
vote
3answers
319 views

Breaking a loop after resolving a promise

I am writing a program to check the health endpoint of one of our APIs. So, before starting execution, I try to hit the health endpoint 5 times. If I get the desired response code during the 5 ...
0
votes
1answer
173 views

How to automate GraphQL tests with Postman

My company is moving from REST APIs to GraphQL. I'm trying to use Postman (which I'm new to) to automate some tests for the GraphQL stuff, and I'm running into issues. The manual side of Postman ...
4
votes
7answers
166 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 ...
5
votes
5answers
2k views

What tests to automate in a full stack web application? API vs UI

I joined a full stack automation team recently. There are some selenium tests for the frontend and APIs aren't automated yet. My question or thought process is should I pick the test cases carefully ...
0
votes
1answer
783 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()....
1
vote
4answers
6k 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 ...
1
vote
1answer
422 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 ...
0
votes
2answers
123 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 ...
1
vote
1answer
199 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
1k 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 ...
3
votes
3answers
167 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....
-2
votes
1answer
21 views

How to provide File and some para. to POST API using Python/ C#?

Team, I am trying to provide File and some para. as a input for API. Expecting output based on validation. Even after providing both inputs correctly, I am getting File as null with length 0. Below ...