Re: [Gatling List] Undefined uri1 variable

32 views
Skip to first unread message

Stéphane LANDELLE

unread,
Apr 29, 2016, 3:36:25 AM4/29/16
to gat...@googlegroups.com
Is there any chance you removed this line inadvertently? If not, could you please share a way to reproduce?

Stéphane Landelle
GatlingCorp CEO


On Wed, Apr 27, 2016 at 11:09 AM, HALLO <o.bo...@gmail.com> wrote:
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.

Andreas Kapp

unread,
Apr 29, 2016, 10:01:02 AM4/29/16
to Gatling User Group
I see this missing uri1 in all the recordings I do with Gatling 2.2.0. I have to fix it manually.

Stéphane LANDELLE

unread,
May 6, 2016, 11:51:07 AM5/6/16
to gat...@googlegroups.com
Fixed in https://github.com/gatling/gatling/issues/3002

Thanks for reporting!

Stéphane Landelle
GatlingCorp CEO


On Fri, Apr 29, 2016 at 4:01 PM, Andreas Kapp <andreas...@gmail.com> wrote:
I see this missing uri1 in all the recordings I do with Gatling 2.2.0. I have to fix it manually.
Reply all
Reply to author
Forward
0 new messages