Sync from bytedesk-private: update

This commit is contained in:
jack ning
2024-12-24 17:11:04 +08:00
parent 466c659f8f
commit a97a1f2011
3 changed files with 48 additions and 11 deletions

View File

@@ -98,7 +98,7 @@
</JSONPostProcessor>
<hashTree/>
</hashTree>
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="Thread Request Loop" enabled="true">
<LoopController guiclass="LoopControlPanel" testclass="LoopController" testname="Thread Request Loop">
<boolProp name="LoopController.continue_forever">false</boolProp>
<stringProp name="LoopController.loops">10</stringProp>
</LoopController>
@@ -131,7 +131,7 @@
</HTTPSamplerProxy>
<hashTree/>
</hashTree>
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree">
<ResultCollector guiclass="ViewResultsFullVisualizer" testclass="ResultCollector" testname="View Results Tree" enabled="true">
<boolProp name="ResultCollector.error_logging">false</boolProp>
<objProp>
<name>saveConfig</name>
@@ -165,7 +165,7 @@
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">multiple_visitors_results.jtl</stringProp>
<stringProp name="filename">report/multiple_visitors_results.jtl</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report" enabled="true">
@@ -202,7 +202,7 @@
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">multiple_visitors_aggregate.jtl</stringProp>
<stringProp name="filename">report/multiple_visitors_aggregate.jtl</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="GraphVisualizer" testclass="ResultCollector" testname="Graph Results" enabled="true">
@@ -239,7 +239,7 @@
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">multiple_visitors_graph.jtl</stringProp>
<stringProp name="filename">report/multiple_visitors_graph.jtl</stringProp>
</ResultCollector>
<hashTree/>
</hashTree>

View File

@@ -2,7 +2,7 @@
* @Author: jackning 270580156@qq.com
* @Date: 2024-07-09 16:47:04
* @LastEditors: jackning 270580156@qq.com
* @LastEditTime: 2024-12-24 14:38:10
* @LastEditTime: 2024-12-24 17:10:29
* @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
* Please be aware of the BSL license restrictions before installing Bytedesk IM
* selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license.
@@ -12,6 +12,43 @@
* 联系270580156@qq.com
* Copyright (c) 2024 by bytedesk.com, All Rights Reserved.
-->
# jmeter
# JMeter Performance Tests
- [download jmeter](https://jmeter.apache.org/download_jmeter.cgi)
This folder contains JMeter test plans for testing the visitor flow functionality.
## Test Files
- `visitor_flow_test.jmx`: Tests single visitor flow
- `multiple_visitors_test.jmx`: Tests multiple concurrent visitors
## Running Tests
1. Create a `report` folder in the same directory as the .jmx files:
```bash
mkdir report
```
2. Run the tests using JMeter GUI or command line:
```bash
jmeter -n -t visitor_flow_test.jmx -l report/visitor_flow.log -e -o report/visitor_flow_dashboard
jmeter -n -t multiple_visitors_test.jmx -l report/multiple_visitors.log -e -o report/multiple_visitors_dashboard
```
## Test Results
Results are stored in the `report` folder:
- `*_results.jtl`: Detailed test results
- `*_aggregate.jtl`: Aggregate statistics
- `*_graph.jtl`: Performance graphs
- `*_dashboard`: HTML dashboard reports
## Report Structure
- Response times
- Throughput
- Error rates
- Detailed request/response data
- Performance graphs

View File

@@ -149,7 +149,7 @@
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">visitor_flow_results.jtl</stringProp>
<stringProp name="filename">report/visitor_flow_results.jtl</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="StatVisualizer" testclass="ResultCollector" testname="Aggregate Report">
@@ -186,7 +186,7 @@
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">visitor_flow_aggregate.jtl</stringProp>
<stringProp name="filename">report/visitor_flow_aggregate.jtl</stringProp>
</ResultCollector>
<hashTree/>
<ResultCollector guiclass="GraphVisualizer" testclass="ResultCollector" testname="Graph Results">
@@ -223,7 +223,7 @@
<connectTime>true</connectTime>
</value>
</objProp>
<stringProp name="filename">visitor_flow_graph.jtl</stringProp>
<stringProp name="filename">report/visitor_flow_graph.jtl</stringProp>
</ResultCollector>
<hashTree/>
</hashTree>