Search code examples
performance-testinggatling

parallel execution of 2 gatling scenarios - start 2nd scenario after some time


I am new to gatling, I am trying to parallely execute 2 scenarios, but I want 2nd scenario to be executed after some time. Is there a way that I can implement this? I tried something as below but didn't work.

val scn1 = scenario("file upload").exec(getFileUpload()) val scn2 = scenario("get datasetId").exec(getDataSetId()).pause(4)

setUp(scn1.inject(atOnceUsers(1)),scn2.inject(atOnceUsers(1))).protocols(httpConf)

Any suggestions ?


Solution

  • Use nothingFor to delay the injection profile of scn2, see doc.