Commit 8425d3e5 by flyxiaozhu

测试

parent 336ad8b7
...@@ -81,12 +81,17 @@ erp2.0 service-api test ...@@ -81,12 +81,17 @@ erp2.0 service-api test
| 接口名称 | 接口地址 | | 接口名称 | 接口地址 |
| --- | --- | | --- | --- |
| [创建订单](创建订单) | /order/create #相关下单参数,区分实物,直充,卡券 | | [创建订单](#创建订单) | /order/create #相关下单参数,区分实物,直充,卡券 |
| [收货地址列表](收货地址列表) | /address/list | | [收货地址列表](#收货地址列表) | /address/list |
| [添加地址](添加地址) | /address/add | | [添加地址](#添加地址) | /address/add |
| [banner组件](banner组件) | /assembly/swiper | | [banner组件](#banner组件) | /assembly/swiper |
| [商品区组件](#商品区组件) | /assembly/goods | | [商品区组件](#商品区组件) | /assembly/goods |
| [组件列表](#组件列表-压力测试) | /assembly/index | | [组件列表](#组件列表-压力测试) | /assembly/index |
| [商品详情](#商品详情-压力测试) | /goods/details?id=#商品id |
| [首页相关信息](#首页相关信息-压力测试) | /site/get-index |
| [订单列表](#订单列表-压力测试) | /order/list |
| [订单详情](#订单详情) | /order/detail?sn=#订单号 |
| [下单预检查](#下单预检查) | /order/pre-check?id= #商品id |
##### 创建订单-压力测试 ##### 创建订单-压力测试
...@@ -257,6 +262,155 @@ erp2.0 service-api test ...@@ -257,6 +262,155 @@ erp2.0 service-api test
4.聚合报告分析 4.聚合报告分析
根据测试结果和容忍度范围分析,时间上 <10s 并发在500左右,错误 <=10% 并发在700左右 根据测试结果和容忍度范围分析,时间上 <10s 并发在500左右,错误 <=10% 并发在700左右
##### 商品详情-压力测试
1.并发模拟
| 测试编号 | 线程数 | Reamp-Up时间(秒) | 循环次数 | 描述 |
| --- | --- | --- | --- | --- |
| 1-1 | 200 | 0 | 1 | 模拟200个用户循环调用接口1次 |
| 1-2 | 500 | 0 | 1 | 模拟500个用户循环调用接口1次 |
| 1-3 | 800 | 0 | 1 | 模拟800个用户循环调用接口1次 |
| 1-4 | 650 | 0 | 1 | 模拟650个用户循环调用接口1次 |
2.聚合报告
- 测试编号 1-1
![img](doc/goodsDetail-1.png)
- 测试编号 1-2
![img](doc/goodsDetail-2.png)
- 测试编号 1-3
![img](doc/goodsDetail-3.png)
- 测试编号 1-4
![img](doc/goodsDetail-4.png)
3.错误分析
错误主要集中在连接超时
4.聚合报告分析
根据测试结果和容忍度范围分析,时间上 <10s 并发在200左右,错误 <=10% 并发在650左右
##### 首页相关信息-压力测试
1.并发模拟
| 测试编号 | 线程数 | Reamp-Up时间(秒) | 循环次数 | 描述 |
| --- | --- | --- | --- | --- |
| 1-1 | 200 | 0 | 1 | 模拟200个用户循环调用接口1次 |
| 1-2 | 500 | 0 | 1 | 模拟500个用户循环调用接口1次 |
| 1-3 | 800 | 0 | 1 | 模拟800个用户循环调用接口1次 |
| 1-4 | 650 | 0 | 1 | 模拟650个用户循环调用接口1次 |
2.聚合报告
- 测试编号 1-1
![img](doc/indexDetail-1.png)
- 测试编号 1-2
![img](doc/indexDetail-2.png)
- 测试编号 1-3
![img](doc/indexDetail-3.png)
- 测试编号 1-4
![img](doc/indexDetail-4.png)
3.错误分析
错误主要集中在连接超时
4.聚合报告分析
根据测试结果和容忍度范围分析,时间上 <10s 并发在600左右,错误 <=10% 并发在700左右
##### 订单列表-压力测试
1.并发模拟
| 测试编号 | 线程数 | Reamp-Up时间(秒) | 循环次数 | 描述 |
| --- | --- | --- | --- | --- |
| 1-1 | 200 | 0 | 1 | 模拟200个用户循环调用接口1次 |
| 1-2 | 500 | 0 | 1 | 模拟500个用户循环调用接口1次 |
| 1-3 | 800 | 0 | 1 | 模拟800个用户循环调用接口1次 |
| 1-4 | 650 | 0 | 1 | 模拟650个用户循环调用接口1次 |
2.聚合报告
- 测试编号 1-1
![img](doc/orderList-1.png)
- 测试编号 1-2
![img](doc/orderList-2.png)
- 测试编号 1-3
![img](doc/orderList-3.png)
- 测试编号 1-4
![img](doc/orderList-4.png)
3.错误分析
错误主要集中在连接超时
4.聚合报告分析
根据测试结果和容忍度范围分析,时间上 <10s 并发在300左右,错误 <=10% 并发在700左右
##### 订单详情-压力测试
1.并发模拟
| 测试编号 | 线程数 | Reamp-Up时间(秒) | 循环次数 | 描述 |
| --- | --- | --- | --- | --- |
| 1-1 | 200 | 0 | 1 | 模拟200个用户循环调用接口1次 |
| 1-2 | 500 | 0 | 1 | 模拟500个用户循环调用接口1次 |
| 1-3 | 800 | 0 | 1 | 模拟800个用户循环调用接口1次 |
| 1-4 | 650 | 0 | 1 | 模拟650个用户循环调用接口1次 |
2.聚合报告
- 测试编号 1-1
![img](doc/orderDetail-1.png)
- 测试编号 1-2
![img](doc/orderDetail-2.png)
- 测试编号 1-3
![img](doc/orderDetail-3.png)
- 测试编号 1-4
![img](doc/orderDetail-4.png)
3.错误分析
错误主要集中在连接超时
4.聚合报告分析
根据测试结果和容忍度范围分析,时间上 <10s 并发在150左右,错误 <=10% 并发在650左右
##### 下单预检查-压力测试
1.并发模拟
| 测试编号 | 线程数 | Reamp-Up时间(秒) | 循环次数 | 描述 |
| --- | --- | --- | --- | --- |
| 1-1 | 200 | 0 | 1 | 模拟200个用户循环调用接口1次 |
| 1-2 | 500 | 0 | 1 | 模拟500个用户循环调用接口1次 |
| 1-3 | 800 | 0 | 1 | 模拟800个用户循环调用接口1次 |
| 1-4 | 650 | 0 | 1 | 模拟650个用户循环调用接口1次 |
2.聚合报告
- 测试编号 1-1
![img](doc/orderCheck-1.png)
- 测试编号 1-2
![img](doc/orderCheck-2.png)
- 测试编号 1-3
![img](doc/orderCheck-3.png)
- 测试编号 1-4
![img](doc/orderCheck-4.png)
3.错误分析
错误主要集中在连接超时
4.聚合报告分析
根据测试结果和容忍度范围分析,时间上 <10s 并发在150左右,错误 <=10% 并发在650左右
## 测试时间(积分商城h5) ## 测试时间(积分商城h5)
...@@ -268,4 +422,9 @@ erp2.0 service-api test ...@@ -268,4 +422,9 @@ erp2.0 service-api test
| 添加地址-压力测试 | 11-29 17:00 | 11-29 17:20 | | 添加地址-压力测试 | 11-29 17:00 | 11-29 17:20 |
| banner组件-压力测试 | 11-29 17:25 | 11-29 17:30 | | banner组件-压力测试 | 11-29 17:25 | 11-29 17:30 |
| 商品区组件-压力测试 | 11-29 17:33 | 11-29 17:39 | | 商品区组件-压力测试 | 11-29 17:33 | 11-29 17:39 |
| 组件列表-压力测试 | 11-29 17:41 | 11-29 17:48 | | 组件列表-压力测试 | 11-29 17:41 | 11-29 17:48 |
\ No newline at end of file | 商品详情-压力测试 | 11-29 17:55 | 11-29 18:01 |
| 首页相关信息-压力测试 | 11-29 18:04 | 11-29 18:08 |
| 订单列表-压力测试 | 11-29 18:10 | 11-29 18:15 |
| 订单详情-压力测试 | 11-29 18:18 | 11-29 18:23 |
| 下单预检查-压力测试 | 11-29 18:25 | 11-29 18:30 |
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
...@@ -706,7 +706,7 @@ ...@@ -706,7 +706,7 @@
</ResponseAssertion> </ResponseAssertion>
<hashTree/> <hashTree/>
</hashTree> </hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="组件列表-请求" enabled="true"> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="组件列表-请求" enabled="false">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
...@@ -1018,7 +1018,7 @@ ...@@ -1018,7 +1018,7 @@
</Arguments> </Arguments>
<hashTree/> <hashTree/>
</hashTree> </hashTree>
<HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="下单预检查-请求" enabled="false"> <HTTPSamplerProxy guiclass="HttpTestSampleGui" testclass="HTTPSamplerProxy" testname="下单预检查-请求" enabled="true">
<elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true"> <elementProp name="HTTPsampler.Arguments" elementType="Arguments" guiclass="HTTPArgumentsPanel" testclass="Arguments" testname="用户定义的变量" enabled="true">
<collectionProp name="Arguments.arguments"/> <collectionProp name="Arguments.arguments"/>
</elementProp> </elementProp>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment