826 questions
0
votes
1
answer
158
views
Rollback database changes made by application/API in .NET test automation
I am working on a large-scale .NET test automation project (over 2500 test cases) that interacts with an application API. My goal is to keep the database clean and isolated between test runs.
Here's ...
0
votes
2
answers
292
views
In httpYac how to assign the current system time to a variable and use this variable in http request payload?
For my e2e tests I'd like to get the current date and time and use this dateTime string in the payload body, like this:
### Precondition: Create a contract with current time stamp in ISO format
# ...
0
votes
1
answer
48
views
Building and running automated test on User Profile API endpoint but getting error message
I’m creating as well as running an automated test for Profile Page API endpoint using the DRF extension APITestCase.
I already created/ran two separate automated tests for the login/registration API ...
1
vote
2
answers
107
views
How to store specific data set from JSON response body?
I am trying to learn cypress then come across a topic in validating json response body but did not discuss on how to store it in a variable. I would like to know how to store specific data set in a ...
1
vote
1
answer
45
views
Laravel AuthenticatedSessionControllerTest Fails with 404 for Login and Logout Tests
I am encountering an issue with testing the login and logout functionalities in my Laravel application. When I run the test suite, some tests fail with a 404 status code instead of the expected 401 or ...
1
vote
1
answer
66
views
How can I validate that a name-value pair has a value that contains text in an API response object?
I am currently writing API tests with karate and I've run into a scenario I've been struggling to resolve. I'd like to validate that each object within the response has a specific item that has a ...
0
votes
1
answer
333
views
Loading ".http" test file in Visual Studio. This triggers an error in the VS 2022 Output Box
I am trying to run a test file for my Web APIs using .http files.
However, whenever I attempt to load the file in Visual Studio 2022 in the output box I get the following:
Executing command 'dotnet ...
0
votes
1
answer
50
views
Authorization token is not working in Rest Assured
package com.automation.tests;
import static io.restassured.RestAssured.*;
import org.json.JSONObject;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;...
1
vote
1
answer
1k
views
Error: apiRequestContext.get: getaddrinfo ENOTFOUND Playwright [closed]
I'm trying to execute this API test:
import { test } from "@playwright/test";
test("health check request", async ({ request }) => {
await request.get(`<my-url>`);
});
...
0
votes
1
answer
101
views
Jmeter performance Report
I'm using jmeter and I am testing my API. So in that API I have to test for 3 different thread groups (1 thread,100 and 1000 threads) and get as sum of all threads as a report in html file.
But I need ...
2
votes
1
answer
2k
views
Unable to Intercept Requests with Mitmproxy: Getting "502 Bad Gateway" Error
I'm currently conducting penetration testing on a website, and I'm attempting to intercept requests using Mitmproxy to reverse engineer the backend APIs. However, I'm encountering a "502 Bad ...
0
votes
1
answer
181
views
Can we extract the full URL with query parameters in RestAssured
I'm working on a RestAssured project and for some debugging purposes waant to print the full url to which the request is sent.
In the project that I'm working on we set the ApiHost, BasePath, uri and ...
0
votes
0
answers
62
views
ASP.NET Core 7 Web API : simultaneous Post/Put call how to prevent update a data at the same time?
I'm currently doing a mock voting app using ASP.NET Core 7 Web API and Blazor WebAssembly, I still do not have database for this, so what I did is I use AddSingleton for my repository, for me to test ...
0
votes
1
answer
378
views
How to pass cookie to get request Robot framework with API (RequestsLibrary)
I want to use the cookie, received from the session in which I do POST request, in the next session with GET request, but I have problem.
Here is my keyword:
MY_Profile
Log To Console HEADER
...
-1
votes
1
answer
516
views
[How to run only particular APIs in a collection of APIs
In my collection I have many requests with asserts, in that I need to run only particular requests. Assume I have 10 requests and I need to run only 3,4 & 10 how can I do it by running through ...
1
vote
1
answer
106
views
How to use websockets in Visual Studio http files
I am looking to test websocket connections using Visual Studio 2022 http files. Could not find any documentation on https://learn.microsoft.com/en-us/aspnet/core/test/http-files?view=aspnetcore-8.0.
1
vote
2
answers
541
views
Karate framework vs Jmeter
**
I'm evaluating testing frameworks and trying to decide between Karate and JMeter. What are the specific advantages of Karate over JMeter?
**
-1
votes
1
answer
147
views
How to call service class in mock Framework with x-unit method ASP Web API .Net 6?
We will be performing unit testing in ASP.NET Web API using .NET 6. We are attempting unit testing using the Moq framework with the xUnit testing method. To begin, we download the Moq package. Next, ...
0
votes
1
answer
151
views
facing issue in Pactum cucumber undefined error
I'm encountering an issue with Pactum Cucumber where I'm getting an undefined error, despite receiving the expected output when testing the same request in the Postman application. Below, I've ...
2
votes
1
answer
1k
views
Injecting a variable into POST JSON call in Postman Flow
I am using postman flow for my POST calls. I have a variable, organizationId, that I would like to insert into my JSON body of my POST call. But I am getting the following error:
body: "invalid ...
0
votes
0
answers
59
views
Oops, filename.json doesn't seem to exist | Creating filename.json with some default data
I am learning API testing, so I have created JSON file, and trying to create an API which will display the data found in JSON file into browser, but getting
Oops, filename.json doesn't seem to exist
...
0
votes
0
answers
32
views
How to resolve server related error when testing multiple TypeScript APIs?
I would like to test the POST and GET methods of two APIs called Restaurant and Employee. The two APIs work as expected. This question is specifically about how to test the two APIs? I have created 2 ...
0
votes
2
answers
106
views
How to replace repetitive pattern in a string in Java?
I have intelliJ running with Java/REST API and having trouble removing and replacing string in a certain format.
Response string :
{"isSuccess":[{"frequency":}]}]}}{"...
0
votes
2
answers
619
views
I want to send the request sent by postman to jmeter
I want to changing test tool from postman to jmeter.
Usual body format was raw-json, I did well without any problems.
But this case I should change form-data.
First, Postman confirmed response(return ...
0
votes
0
answers
103
views
Cucumber: Feature file is unable to find step definitions when they are in separate modules
I am unable to map the feature file to the step definition one which is in different module.
The project is split between two Java modules, in the firts one are the feature files and the runner and in ...