Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用火炮工具进行 websocket 测试。我面临的问题是响应。将数据发送到我正在测试的通道后,我们总是得到不同的数据。由于火炮的响应块试图与通道的实际响应完全匹配(即部分不匹配),我总是收到错误“数据无效:1”。如何部分匹配响应?
下面的响应代码正在工作。
{ "response": { "channel": "channel1", "match": [ { "json": "$.Id", "value": "test_101" }, { "json": "$.param1", "value": "1" }, { "json": "$.param2", "value": "XXX" }, { "json": "$.param3", "value": "100" } ] } }