Hello,--The scala code bellow have been generated with the recoder, however it does not compile.The variable uri1 is not defined.I am using the last version of gatling (2.3.0-20160415.092347) on windows.Do you have any idea how I can fix this issue ?import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
class lerelaisEditionTournees extends Simulation {
val httpProtocol = http
.baseURL("XXXXXXXXXXXXXXXXXXXXXXX")
.inferHtmlResources(BlackList(), WhiteList())
.acceptHeader("image/png,image/*;q=0.8,*/*;q=0.5")
.acceptEncodingHeader("gzip, deflate")
.acceptLanguageHeader("en,en-US;q=0.8,fr;q=0.5,fr-FR;q=0.3")
.userAgentHeader("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0")
val headers_0 = Map("Accept" -> "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
val scn = scenario("XXXXXXXXXXXXXX")
.exec(http("request_0")
.get("/")
.headers(headers_0)
.resources(http("request_1")
.get(uri1 + "/favicon.ico")
.headers(headers_0)
.check(status.is(404)),
http("request_2")
.get(uri1 + "/favicon.ico")
.headers(headers_0)
.check(status.is(404))))
.pause(11)
.exec(http("request_3")
.post("/index.php?do=login")
.headers(headers_0)
.formParam("do", "login")
.formParam("login", "testcharge")
.formParam("password", "Livexp6$")
.resources(http("request_4")
.get(uri1 + "/images/tpl/menu/item-menu-rouge.png"),
http("request_5")
.get(uri1 + "/images/tpl/background/back-content-header.png"),
http("request_6")
.get(uri1 + "/images/tpl/menu/item-menu-jaune.png"),
http("request_7")
.get(uri1 + "/images/tpl/background/back-content-content.png"),
http("request_8")
.get(uri1 + "/images/tpl/menu/item-menu-bleu.png"),
http("request_9")
.get(uri1 + "/images/tpl/menu/item-menu-rose.png"),
http("request_10")
.get(uri1 + "/images/tpl/menu/item-menu-vert.png"),
http("request_11")
.get(uri1 + "/images/tpl/background/back-content-footer.png"),
http("request_12")
.get(uri1 + "/images/tpl/background/back-back-content.gif")))
setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}Thanks
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I see this missing uri1 in all the recordings I do with Gatling 2.2.0. I have to fix it manually.