How to make an API to wait for another?

Hi there, I have a scenario where there are 2 APIs, the first API will send request first and standby, next API will send request and the first API will get the response immediately.
I have tried to implement in code as this

  val api1Scenario = scenario("API 1 Scenario")
    .exec(api1Request)
    .pause(5)
    .exec(api2Request) 
    .exec(somethingelse)

Does Gatling have any support for this “wait” feature ?

If these are HTTP requests, your flow is sequential, eg pause(5) is only executed once the response of api1Request is received.

hi @slandelle , thanks for your statement, these are HTTPS requests only, do you have any suggestion for this kind of flow or will this be future update for Gatling ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.