当前位置:网站首页>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 .
边栏推荐
- VIM use command
- How does VR panorama make money? Based on the objective analysis of the market from two aspects
- 中低速航空航天电子总线概述
- Meta&伯克利基于池化自注意力机制提出通用多尺度视觉Transformer,在ImageNet分类准确率达88.8%!开源...
- Wx applet jump page
- Zed acquisition
- Ott marketing is booming. How should businesses invest?
- ∞ symbol line animation canvasjs special effect
- Analysis report on development trend and investment forecast of global and Chinese D-leucine industry from 2022 to 2028
- Current situation analysis and development trend forecast report of global and Chinese acrylonitrile butadiene styrene industry from 2022 to 2028
猜你喜欢

What is the difference between one way and two way ANOVA analysis, and how to use SPSS or prism for statistical analysis

ArcGIS loads free online historical images as the base map (no plug-ins are required)

Interesting checkbox counters

Canvas spiral style animation JS special effect

为什么生命科学企业都在陆续上云?

微搭低代码中实现增删改查

After 5 years of software testing in didi and ByteDance, it's too real

部门新来的00后真是卷王,工作没两年,跳槽到我们公司起薪18K都快接近我了

为什么越来越多的实体商铺用VR全景?优势有哪些?

What exactly is Nacos
随机推荐
canvas线条的动态效果
部门新来的00后真是卷王,工作没两年,跳槽到我们公司起薪18K都快接近我了
Human body transformation vs digital Avatar
Discrete mathematics and its application detailed explanation of exercises in the final exam of spring and summer semester of 2018-2019 academic year
Is it so difficult to calculate the REM size of the web page according to the design draft?
创意SVG环形时钟js特效
[interview question] what is a transaction? What are dirty reads, unrepeatable reads, phantom reads, and how to deal with several transaction isolation levels of MySQL
Microsoft won the title of "leader" in the magic quadrant of Gartner industrial Internet of things platform again!
Simple collation of Web cache
Go crawler framework -colly actual combat (I)
颜色渐变梯度颜色集合
信号完整性(SI)电源完整性(PI)学习笔记(一)信号完整性分析概论
Collective例子
【排行榜】Carla leaderboard 排行榜 运行与参与手把手教学
Adding, deleting, modifying and checking in low build code
微搭低代码中实现增删改查
Approaching harvest moon:moonbeam DFI Carnival
Dry and wet contacts
不重要的token可以提前停止计算!英伟达提出自适应token的高效视觉Transformer网络A-ViT,提高模型的吞吐量!...
为什么越来越多的实体商铺用VR全景?优势有哪些?