8000 Websocket: response time check · Issue #4544 · gatling/gatling · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Websocket: response time check #4544
Open
@Amerousful

Description

@Amerousful

Hello.
I have a suggestion to add support to check the response time for the WebSocket.

Currently, there's only timeout logic which provides no details upon failure. I believe that having timeout and response time check will be more useful and provide a more comprehensive way to analyze failed checks. This approach would provide an upper bound with the timeout parameter, while also allowing for check failure based on excessive response times, thereby enabling more detailed logging and analysis.
Do it in the same way as for HTTP .check(responseTimeInMillis...)

val wsCheck = ws.checkTextMessage("checkName")
  .check(
      responseTimeInMillis.lte(10000)
  )

exec(ws("Send").sendText("hello")
  .await(30)(wsCheck))

How does sound this idea?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0