JMeter-如何设置JSON文件中的发送和接收数据-通过WebSocket [英] JMeter- how to set send and receiving data in JSON file - by WebSocket

查看:1372
本文介绍了JMeter-如何设置JSON文件中的发送和接收数据-通过WebSocket的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个后端应用程序(仅后端),该应用程序通过WebSocket将数据发送给客户. 我使用JMeter测试该应用程序.在Jmeter中,我添加了Peter ..的插件WebSocket Sampler. 以前,我是通过邮递员将此数据发送给客户的. 在我的Json文件中,有关事件的大量数据,客户可以在其中订阅.我有一个问题:如何处理,以邮递员发送(JSON文件)的数据将以JMeter发送?

I have a back end application (only back end) which sends data to customers by WebSocket. I testing this application using JMeter. In Jmeter I added plugin WebSocket Sampler by Peter.. Previously I am sending this data to customers by Postman. In my Json file incluge data about event, in which customers can subscribe. I have one question: How can I do it, that data, which is send in postman (in json file) will be send in JMeter?

在Jmeter中读取json文件是否正确? 如果没有:为什么不可以,我该如何改善呢?

Is it correctly way to read my json file in Jmeter? If not: Why not and how I can improve this?

  1. 我如何才能最好地处理数据-从json文件转换为变量?

推荐答案

好,我对此进行了设置,并且在响应正文的 ERR 的查看结果三中正确返回了正文json,所以我不知道,为什么是** ERR *名称 正确吗?如果不是,为什么错了,我该如何改善呢?

OK I set this, and in View Result Three in ERR in Response Body is correctly return body json, so I dont know, why is **ERR* name It is correctly? and if not, why is wrong and how I can improve this?

这篇关于JMeter-如何设置JSON文件中的发送和接收数据-通过WebSocket的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆