【问题标题】:How to write Websocket sampler request body in Jmeter如何在 Jmeter 中编写 Websocket 采样器请求正文
【发布时间】:2020-09-01 07:08:53
【问题描述】:

例子:

42/,["current_event",{"current_event":"onboarding","eligible":true,"isOnBoarded":true,"event":"5f4dba217f63c00bd40bd636","contestantor":"5f4dba147f63c00bd40bd635","lastContestantor ":false}]

这些起始数字是多少(42/,43/ 等)?以及如何在 Websocket 请求响应采样器中编写正确的请求正文?

【问题讨论】:

    标签: websocket socket.io jmeter


    【解决方案1】:

    你是not the only one,这些神奇的数字是confused

    4 部分来自engine.io-protocol(抽象传输层),这意味着message2 部分来自socket.io-protocol(特定传输层),它是消息类型,表示事件,内部引用为MESSAGE_EVENT

    因此您可以只记录您的场景并将这些4243variablize/correlate the payload 留在采样器的主体中。

    更多信息:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-03
      • 1970-01-01
      • 2021-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多