Asynchronous gatling2:并发请求处理
我有一个关于Gatling在结合使用Asynchronous gatling2:并发请求处理,asynchronous,concurrency,resources,exec,gatling,Asynchronous,Concurrency,Resources,Exec,Gatling,我有一个关于Gatling在结合使用.exec和.resources时的行为的问题。 以下内容非常简要地描述了该行为: 允许并行获取资源以模拟 真实web浏览器的行为 让我们考虑下面的简单场景: val scn = scenario("Test Scenario") .exec( http("Base Page").get("/") .resources( http("Resource A").get(host + "/resource
.exec
和.resources
时的行为的问题。
以下内容非常简要地描述了该行为:
允许并行获取资源以模拟
真实web浏览器的行为
让我们考虑下面的简单场景:
val scn = scenario("Test Scenario")
.exec(
http("Base Page").get("/")
.resources(
http("Resource A").get(host + "/resource_a.js"),
http("Resource B").get(host + "/resource_b.js")
)
)
.exec(
http("Resource X").get(host + "/resource_x.js")
)
我的问题是:资源X的第二个.exec
块何时执行
a) 当第一个.exec
块的“主请求”返回时(即当基页请求返回时)
b) 当第一个
.exec
块的所有请求都返回时(即,当已获取基本页以及资源A和资源b时)当已获取所有资源时,答案是:b