详解loadrunner的think time

简介:
lr_start_sub_transaction
标记子事务的开始
lr_start_transaction
标记事务的开始
lr_end_sub_transaction
标记子事务的结束以便进行性能分析
lr_end_transaction
标记  LoadRunner  事务的结束
思考时间大于阈值时生成:  使用思考时间的阈值。如果录制思考时间小于该阈值, VuGen  将不会生成思考时间语句。您也可以指定阈值。默认值为  3 -  如果思考时间少于  3  秒, VuGen  将不会生成思考时间语句。如果禁用此选项, VuGen  将不会生成任何思考时间。(默认情况下启用)
脚本:
    lr_start_sub_transaction("think time1","t1");
    lr_think_time(10);
    lr_end_sub_transaction("think time1",LR_PASS);
    lr_start_sub_transaction("think time2","t1");
    lr_think_time(10);
    lr_end_sub_transaction("think time2",LR_PASS);
       lr_end_transaction("t1", LR_AUTO);
 
输出:
 
Action.c(8): Notify: Transaction "t1" started.
Action.c(9): Notify: Transaction "think time1" started.
Action.c(10): lr_think_time: 10.00 seconds.
Action.c(11): Notify: Transaction "think time1" ended with "Pass" status (Duration: 9.9939 Think Time: 9.9892).
Action.c(12): Notify: Transaction "think time2" started.
Action.c(13): lr_think_time: 10.00 seconds.
Action.c(14): Notify: Transaction "think time2" ended with "Pass" status (Duration: 9.9954 Think Time: 9.9906).
Action.c(15): Notify: Transaction "t1" ended with "Pass" status (Duration: 19.9994 Think Time: 19.9798).




本文转自 fish_yy 51CTO博客,原文链接:http://blog.51cto.com/tester2test/137369,如需转载请自行联系原作者
目录
相关文章
Apache JMeter 中的 Latency 和 Load Time
Apache JMeter 中的 Latency 和 Load Time
Apache JMeter 中的 Latency 和 Load Time
|
4月前
|
Linux
Linux命令(60)之time
Linux命令(60)之time
37 1
|
测试技术
|
测试技术 程序员
loadrunner 运行脚本-Run-time Settings-ContentCheck简单设置
loadrunner 运行脚本-Run-time Settings-ContentCheck简单设置
64 0
|
Java 数据库连接 数据库
The sever time reprents more than one tie zoe.
The sever time reprents more than one tie zoe.
91 0
|
网络安全
Jmeter系列(44)- 详解 Elapsed time、Latency、Connect Time的含义
Jmeter系列(44)- 详解 Elapsed time、Latency、Connect Time的含义
280 0
Jmeter 常用函数(7)- 详解 __time
Jmeter 常用函数(7)- 详解 __time
82 0
Jmeter 常用函数(7)- 详解 __time
|
网络协议 网络安全
JMeter: why connect time = 0?
JMeter: why connect time = 0?
192 0
JMeter: why connect time = 0?
|
Python
python中的计时模块:time.time()
以后博客更新在https://oldpan.me 。 time time模块中包含了许多与时间相关的模块,其中通过time()函数可以获取当前的时间。
1854 0