0
刚刚加入Gatling并试图理解如何将“exec(flushHttpCache)”合并到我的脚本中,因为我试图阻止重定向发生,因为这些会导致我的结果偏斜。Gatling性能 - flushHttpCache
我有:
val getStartPage = feed(feeder).exec(http("Test start page (start-page)")
.exec(flushHttpCache) // <- this fails on compile "flushHttpCache is not a member of io.gatling.http.request.builder.Http"
.get("/start-page?id=${userId}")
.check(status.is(200))
.check(regex("Start now").exists))
.pause(longPause)
然后:
class myPerformanceTest extends Simulation with HttpConfiguration
{
val happyPath = scenario("testUsers")
.exec(getStartPage)
setUp(
happyPath.inject(atOnceUsers(1))
).protocols(httpconf)
}
我试图移动 “.exec(flushHttpCache)” 至:VAL happyPath =情形( “testUsers”)EXEC(flushHttpCache)仍然没有运气。
如何将“flushHttpCache”合并到脚本中?
任何帮助表示赞赏