当前位置:网站首页>JMeter socket connection sends data
JMeter socket connection sends data
2022-06-25 00:20:00 【Dream_ xang】
Jmeter-Socket Connect to send data
This article introduces the following through Jmeter establish Socket Connect , Send to server 16 Hexadecimal data .
To configure TCP Connect
One 、 establish TCP Sampler configuration
Two 、 Configuration instructions
TCPClient classname:TCP There are three ways to enable sending :
- TCPClientImpl: Text data , Default to this
- BinaryTCPClientImpl: transmission 16 Hexadecimal data , Specify package terminator . such 16 The hexadecimal file will pass Jmeter GUI To convert .
- LengthPrefixedBinaryTCPClientImpl: Front in packet 2 Bytes are the data length . Can be found in bin/jmeter.properties In profile tcp.binarylength.prefix.length Set up .
Target Server:TCP Fill in the server address in the sampler 、 port .
Connect: Set connection timeout .
Response: Set response timeout .
Re-use connection: Indicates that the connection is repeatedly used to send requests .
Close connection: It means that after sending this piece of data each time , Close the connection .
End of line(EOL) byte value: Terminator .
- Intercept the last byte according to the server return value , Notice if it is 16 Base number , It should be two characters
such as , In my project, the return value is changed to 16 The base case is as follows :
7e80010005013819415186010103e7020000d47e
So the last byte (8 position ) Should be 7e Conversion for 10 After the base number is 126, So in eol Set to 126.
Be careful : The terminator is a byte ,16 The hexadecimal number is greater than 7F(127) after , The EOL The value is negative. . such as : If the last byte returned by the server is 80, Change from single byte to decimal -128,EOL The value at should be filled in -128,.
If TCP The request requires a user name / password , You can fill in the login configuration .
establish TCP Connect
One 、 establish TCP Sampler
TCP The sampler has been configured , There is no need to fill in IP、PORT Equal parameter .
- Be careful : If you need to use the same connection to send data repeatedly , Every TCP Sampler's Re-use connection All need to be checked .
Establish a channel 1:
Two 、 Send signature data
Set to keep long connection , Set response timeout 2000ms.
send out 16 Hexadecimal text content , The response data terminator needs to be set , According to the response data, the last byte is converted to 10 Hexadecimal data .
边栏推荐
- How to use promise Race() and promise any() ?
- Design scheme of authority management of fusion model
- More pictures | explain the Nacos parameters in detail!
- [distributed system design profile (2)] kV raft
- 有趣的checkbox计数器
- 同济、阿里获CVPR最佳学生论文,李飞飞获黄煦涛奖,近6000人线下参会
- MySQL semi sync replication
- Time unified system
- linux 系统redis常用命令
- Ott marketing is booming. How should businesses invest?
猜你喜欢
为什么越来越多的实体商铺用VR全景?优势有哪些?
Technology sharing | wvp+zlmediakit realizes streaming playback of camera gb28181
Tutorial details | how to edit and set the navigation function in the coolman system?
JDBC —— 数据库连接
After 5 years of software testing in didi and ByteDance, it's too real
融合模型权限管理设计方案
Fast pace? high pressure? VR panoramic Inn brings you a comfortable life
技术分享| WVP+ZLMediaKit实现摄像头GB28181推流播放
Power application of 5g DTU wireless communication module
∞ symbol line animation canvasjs special effect
随机推荐
Fuxin Kunpeng joins in, and dragon lizard community welcomes a new partner in format document technical service
Analysis report on operation pattern and supply and demand situation of global and Chinese cyano ketoprofen industry from 2022 to 2028
im即时通讯开发应用保活之进程防杀
在滴滴和字节跳动干了 5年软件测试,太真实…
Eye gaze estimation using webcam
Modstart: embrace new technologies and take the lead in supporting laravel 9.0
Paper review: U2 net, u-net composed of u-net
Canvas spiral style animation JS special effect
[figure database performance and scenario test sharp tool ldbc SNB] series I: introduction to data generator & Application to ges service
Go crawler framework -colly actual combat (4) -- Zhihu answer crawl (2) -- visual word cloud
部门新来的00后真是卷王,工作没两年,跳槽到我们公司起薪18K都快接近我了
Opengauss kernel: simple query execution
UE4 WebBrowser chart cannot display problems
What is the difference between one way and two way ANOVA analysis, and how to use SPSS or prism for statistical analysis
【排行榜】Carla leaderboard 排行榜 运行与参与手把手教学
时间统一系统
Svg line animation background JS effect
Investment analysis and prospect forecast report of global and Chinese propargyl chloride industry from 2022 to 2028
Why do more and more physical stores use VR panorama? What are the advantages?
The new employee of the Department after 00 is really a champion. He has worked for less than two years. The starting salary of 18K is close to me when he changes to our company