4
當使用.exec
與.resources
結合使用時,我對加特林的行爲有疑問。 的documentation所描述的行爲很簡單:Gatling 2:併發請求處理
允許以模擬真實的網絡瀏覽器的 行爲來獲取並行資源
讓我們考慮下面的,簡單的場景:
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")
)
我的問題是:什麼時候是第二個.exec
塊資源X b eing被執行了?
一個)一旦第一.exec
塊11返回的「主請求」(即,當基頁請求返回)
b)如果所述第一.exec
塊的所有請求返回(即,當基頁以及資源甲和資源b已被獲取的)
謝謝Stephane – bestboy 2015-02-09 19:25:34