upgrade to gatling 2.2.2 http header .connection("close") error

768 views
Skip to first unread message

Eric Ouyang Z

unread,
Oct 10, 2016, 8:42:07 PM10/10/16
to Gatling User Group
Hi,

The following code works fine in getling 2.1.3 but through out error for  .connection("close")

var httpProtocol = http
        .baseURL("http://google.com")
        .acceptEncodingHeader("gzip, deflate")
        .acceptLanguageHeader("en-US,en;q=0.5")
        .connection("close")


17:39:57.910 [ERROR] i.g.c.ZincCompiler$ - C:\GitProjects\OBill_OBR\gatling-dev222\user-files\simulations\webs_OBR\OBR_Scenario_Lo
adTest.scala:404: value connection is not a member of io.gatling.http.protocol.HttpProtocolBuilder
possible cause: maybe a semicolon is missing before `value connection'?
17:39:57.912 [ERROR] i.g.c.ZincCompiler$ -              .connection("close")

In gatling 2.2.2, how do I set my default to connection to close?

Thanks.


Vu Nguyen

unread,
Oct 11, 2016, 4:07:04 PM10/11/16
to Gatling User Group

Stéphane LANDELLE

unread,
Oct 11, 2016, 4:09:36 PM10/11/16
to gat...@googlegroups.com
Checking migration guides when upgrading usually helps.

Stéphane Landelle
GatlingCorp CEO


--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eric Ouyang Z

unread,
Oct 12, 2016, 6:05:54 PM10/12/16
to Gatling User Group
Got it. Thanks


On Tuesday, October 11, 2016 at 1:09:36 PM UTC-7, Stéphane Landelle wrote:
Checking migration guides when upgrading usually helps.

Stéphane Landelle
GatlingCorp CEO


On Tue, Oct 11, 2016 at 10:07 PM, Vu Nguyen <vu.n...@illumio.com> wrote:

connectionHeader?


var httpProtocol = http
        .baseURL("http://google.com")
        .acceptEncodingHeader("gzip, deflate")
        .acceptLanguageHeader("en-US,en;q=0.5")
        .connection("close")

--
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.
Reply all
Reply to author
Forward
0 new messages