Custom DSL by extending Gatling: How to Scala?
问题 We're using Gatling to load test our application (and it works great). We're attempting to DRY up some of the code by making composable extensions on the Gatling classes (like ScenarioBuilder / ChainBuilder / etc. found in io.gatling.core.structure). Here is an example of one of our scenarios: val scn = scenario("Whatever") .exec(Authentication.FeederLogin(userCsvFile, password)) .exec(User.ExtractId(User.SignIn())) .exec(FindPeople(50, "personIds")) // SPA load .exec(User.FetchLandingPageFor