Re: [Gatling List] Session attribute is trimmed to 51150 characters

12 views
Skip to first unread message
Message has been deleted

Stéphane LANDELLE

unread,
Aug 23, 2016, 10:52:45 AM8/23/16
to gat...@googlegroups.com
Are you sure it's not just your display that truncates?
Can you please provide a reproducer?

Stéphane Landelle
GatlingCorp CEO


On Tue, Aug 23, 2016 at 4:46 PM, Radosław Twardy <miod...@gmail.com> wrote:
I send some request:

.post(uri)
.body(StringBody(b))
.check(jsonPath("$.interactionResult").find.saveAs(productOrderKey))

And next i want retrieve json productOrderKey so i call:


val productOrderString = session(productOrderKey).as[String]

but this string is not valid json, it seems to be trimmed (have 51150 characters). How can i solve this problem ?

--
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.

Radosław Twardy

unread,
Aug 23, 2016, 10:59:48 AM8/23/16
to Gatling User Group
It's my mistake, sorry for littering



W dniu wtorek, 23 sierpnia 2016 16:52:45 UTC+2 użytkownik Stéphane Landelle napisał:
Are you sure it's not just your display that truncates?
Can you please provide a reproducer?

Stéphane Landelle
GatlingCorp CEO


On Tue, Aug 23, 2016 at 4:46 PM, Radosław Twardy <miod...@gmail.com> wrote:
I send some request:

.post(uri)
.body(StringBody(b))
.check(jsonPath("$.interactionResult").find.saveAs(productOrderKey))

And next i want retrieve json productOrderKey so i call:


val productOrderString = session(productOrderKey).as[String]

but this string is not valid json, it seems to be trimmed (have 51150 characters). How can i solve this problem ?

--
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.

Stéphane LANDELLE

unread,
Aug 23, 2016, 11:04:39 AM8/23/16
to gat...@googlegroups.com
No pro :)

Stéphane Landelle
GatlingCorp CEO


To unsubscribe from this group and stop receiving emails from it, send an email to gatling+unsubscribe@googlegroups.com.

Radosław Twardy

unread,
Aug 23, 2016, 11:31:11 AM8/23/16
to Gatling User Group
As i said it's my mistake, because I misinterpreted my problem. My response contain \n characters - below is part of response json:

   "currentValue":{  
     "value":"- 4G LTE: 100 Mbit / s (reception) / 50 Mbit / s (transmit),\n - 3G: 42 Mbit / s (reception) / 5.76 Mbit / s (transmit), \n- 2G: 296 kbit / s (receive and transmit)'",
     "displayValue":"- 4G LTE: 100 Mbit / s (reception) / 50 Mbit / s (transmit),\n - 3G: 42 Mbit / s (reception) / 5.76 Mbit / s (transmit), \n- 2G: 296 kbit / s (receive and transmit)'"
                                                      },

And when i try get this string (session(productOrderKey).as[String]) a get string with new lines, but of course it is not my intention. How I should do it ?

Reply all
Reply to author
Forward
0 new messages