当前位置:网站首页>JMeter performance test saves the results of each interface request to a file
JMeter performance test saves the results of each interface request to a file
2022-07-26 07:33:00 【South wind of Mu City】
In the test , It's best to save the interface return data during the test , For future reference when needed .
1、 stay Jmeter in , View the setting page of the result tree , Manually enter the file path to save , For example, save as d:\xxxx.xml

in addition , You can also set the saved content

2、 Time stamp the name ${__time(yyyy-MM-dd,)}
If it's time to jmeter The script will be executed many times , It's obviously inappropriate to save to this file every time , Then change a new file name every time , It'll be troublesome again .
Time function can be used to realize , As shown in the figure above , Add a time function to the file name , Each time, the name with time stamp is generated dynamically .
For example, name with date , You need to include... In the name ${__time(yyyy-MM-dd,)}
For example, time is accurate to seconds , You need to include... In the name ${__time(yyyy year MM month dd Japan -HH when mm branch ss second ,time)}
3、 If you need other time formats , You can use the function assistant , According to the required time format , Generate a time variable by yourself


Click the generate and copy button , The variable has been copied , Go to the file name in the view result tree , Just paste it directly
4、 How to view the last result
1) Re create a thread group , Add a view result tree , Select a previous test result file in the file name , Click on open

2) The result will be displayed in the result tree 
边栏推荐
猜你喜欢
随机推荐
tensorflow2.x中的量化感知训练以及tflite的x86端测评
Model pruning 3: learning structured sparsity in deep neural networks
C语言关键字extern
JWT quick start
NFT digital collection development: digital collections help enterprise development
【uniapp】多种支付方式封装
Installation of Baidu flying paste deep learning framework tutorial in Anaconda
KDD2022 | 揭秘快手短视频推荐Re-ranking之谜,相关推荐新SOTA
Devaxpress.xtraeditors.datanavigator usage
力扣(LeetCode)206. 反转链表(2022.07.25)
Common templates for web development
如何保证缓存和数据库的双写一致性?
Tensorflow learning diary tflearn
Compose Canvas line chart
DADNN: Multi-Scene CTR Prediction via Domain-Aware Deep Neural Network
NFT digital collection system development: how enterprises develop their own digital collection platform
博途PLC一阶滞后系统传递函数阶跃响应输出仿真(SCL)
2019 ZTE touyue · model compression scheme
NLP自然语言处理-机器学习和自然语言处理介绍(三)
Wrong Addition








