您的位置首页百科问答

Loadrunner 11 run-time settings运行时设置

Loadrunner 11 run-time settings运行时设置

的有关信息介绍如下:

Loadrunner 11 run-time settings运行时设置

在loadrunner 11中,有一个很重要的设置功能:run-time settings(运行时设置),性能测试最重要的是完全模拟用户的行为,通过对run-time settings的设置可以使运行更人性化。在Vuser和Controller都有run-time settings,都是一样的,小编截图主要是Controller中。

通过如图按钮打开run-time settings界面。

Run logic运行逻辑:

Number of Iterations:迭代次数,不为Init,End设置

Insert Action:插入Action

Insert Action:插入脚本块的功能

Delete:删除

Move Up:向上移动

Move Down:向下移动

Properties:属性

属性中有两种运行模式:

Sequential:在Run下的所有脚本将按照从上到下的先后顺序运行

Random:在Run下所有脚本根据各自设置的比例进行随机选择运行(Run上多了一个%)

Pacing步调:

配置脚本运行中每次interation之间的等待时间,需要在重复做某件事之间插入一个等待时间,就可以通过这个功能来实现。每当出现一次starting iteration或者是ending iteration就会检查一次pacing的设置

As soon as the previous iteration end

默认设置每次迭代之间不等待时间

After the previous iteration ends:

在前一次的iteration的结束时设置,包括fixed(固定等多少时间)和random (随机等某个范围内的时间)

With a fixed/random delay of sec

设置前一次ending iteration到下一次starting iteration之间的时间

At fixed/random intervals,every sec

设置前一次starting iteration和下一次starting iteration之间的时间,所以At是包含前一次iteration执行的时间

Enable logging:启用日志

Send message only when an error occurs

只有当发生错误时候才发送日志信息

Standard log

标准日志

Extended log

扩展日志

Parameter substitution

显示参数的赋值取值

Data returned byserver

显示服务器返回的数据

Advanced trace

高级的追踪

Think Time思考时间:模拟用户等待操作的设置

Ignore think time:不管思考时间

Replay think time:回放思考时间

As recorded:当录制的时候

Multiply recorded think time by:乘法录制思考时间

Use random percentage of recorded think time使用随机的百分比录制思考时间

Limit think time to xx seconds限制思考时间为xx秒

Additional attributes附加属性:可添加额外属性

Argument name参数名

Argument value参数值

Miscellaneous:多种多样

Error Handing:错误设置

Continue on error:出现错误继续

Fail open transaction on lr_error_message失败了就在lr_error_message函数打开事务

Generate snapshot on error错误出现时生成快照

Multithreading进程与线程

进程是指一个虚拟用户用一个mmdrv.exe,线程是指多个用户一起使用一个mmdrv.exe

Run Vuser as a process以一个进程运行虚拟用户

Run Vuser as a thread以一个线程运行虚拟用户

Automatic Transactions自动化事务

事务是用来获得某一行为所消耗时间的函数,默认情况下我们自己定义事务

Define each action as a transaction定义每一个action作为一个事务

Define each step as a transaction定义每一步作为一个事务