2 练习基准测试方法1
2.1 问题
为登录业务设计场景。
2.2 方案
在控制台中使用循环多次的方式执行场景。(多次数)
2.3 步骤
实现此案例需要执行以下步骤:
步骤一:
1、打开控制台,如下图-20所示:
图-20
2、在控制台中添加login脚本,如下图-21所示:
图-21
3、打开运行时设置,“Run-time Settings”,如下图-22所示:
图-22
4、设置迭代次数为5,如下图-23所示:
图-23
5、执行场景,点击运行场景按钮,如下图-24所示:
图-24
步骤二:
1、打开结果分析器,如下图-25所示:
图-25
2、查看登录事务的响应时间,如下图-26所示:
图-26
3 练习基准测试方法2
3.1 问题
为登录业务设计场景。
3.2 方案
在控制台中设计场景的执行时间来设计场景。(多时间)
3.3 步骤
实现此案例需要执行以下步骤:
步骤一:
1、打开控制台,如下图-27所示:
图-27
2、在控制台中添加login脚本,如下图-28所示:
图-28
3、打开运行时设置,设计场景的执行时间duration,如下图-29所示:
图-29
4、设置duration时间为5分钟,如下图-30所示:
图-30
5、执行场景,点击运行场景按钮,如下图-31所示:
图-31
步骤二:
1、打开结果分析器,如下图-32所示:
图-32
2、查看登录事务的响应时间,如下图-33所示:
图-33