skip to Main Content

Javascript – How to insert the request body?

Help, guys, I have been assigned to research gatling with javascript for performance testing, but I am quite junior and struggling to even make a login request from a project. This is the documentation: https://docs.gatling.io/reference/script/protocols/http/request/#request-name There is also a nice…

VIEW QUESTION

Getting an element in JSON-response using .check

My code (Java) for my Gatling test is as follows: package computerdatabase; import io.gatling.javaapi.core.ScenarioBuilder; import io.gatling.javaapi.core.Simulation; import io.gatling.javaapi.http.HttpProtocolBuilder; import java.time.Duration; import static io.gatling.javaapi.core.CoreDsl.*; import static io.gatling.javaapi.http.HttpDsl.http; import static io.gatling.javaapi.http.HttpDsl.status; public class ProductSimulation extends Simulation { HttpProtocolBuilder httpProtocol = http.baseUrl("https://dummyjson.com") .header("Content-Type",…

VIEW QUESTION
Back To Top
Search