How to make Gatling websocket request Silent ?

110 views
Skip to first unread message

mouzour...@gmail.com

unread,
Dec 25, 2017, 4:58:56 PM12/25/17
to Gatling User Group
Hello all,

Thanks again for the really huge and great work done on Gatling tool. Thanks to Gatling dev guy's !!!

I'm trying to make some of my requests silent.
I'm able to make silent an http request like this :

val proc =  exec(http(requestLabel).post("/api/v1/xxxx")
.headers(headers.headers_1).headers(headers.authHeader("${token}"))
.body(StringBody(stringBody))
.check(bodyString.saveAs(groupLabel),status.saveAs(statusLabel))
.check(jsonPath("$..id").ofType[String].saveAs(idLabel))
.check(jsonPath("$..requestId").ofType[String].saveAs("requestId"))
.check(status.is(201))
.silent)

This allow me to not see this request on the Gatling report.

I'm trying to do the same on Websocket request. But don't find the way to do that.
Like I do for http request I don't want to see them on the report, I want to exclude some WS request from the report (like Open / Close WS statements)

Thanks in advance for you help

Stéphane LANDELLE

unread,
Dec 26, 2017, 5:18:13 AM12/26/17
to gat...@googlegroups.com
Hi,

Thanks for your kind words.
"silent" is not supported on WebSockets atm. Contributions welcome :)
Just make sure to build on top of the revamped WebSocket support in master (see Ws2CompileTest).

Cheers,

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.

Reply all
Reply to author
Forward
0 new messages