loadrunner学习---Run-time Setting设置

VugenRun-Time Setting是用来设置脚本运行时所需要的相关选项。

Run logic运行逻辑Number of Iterations          迭代次数,即重复运行次数。(注意后面参数做数据的时候要注意到迭代次数,比如迭代5次,就不能只做3个数据

                              Insert Action            插入Action,使脚本清晰明了。(插入action也可以在录制的时候添加,把不同操作分到不同的action里面,便于观察脚本

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

               As soon as the previous iteration end            默认设置前一次iteration和后一次iteration之间不等待时间(迭代之间不等待的话用时会比较短

               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执行的时间

Log日志Send message only when an error occurs         只有当发生错误时候才发送日志信息

 

                Standard log       标准日志

                Extended log       扩展日志

 

                Parameter substitution        显示参数的赋值取值(脚本参数化之后可以使用,一般强化脚本时候选择

 

                Data returned by server        显示服务器返回的数据(一般强化脚本时候选择

 

                Advanced trace          高级的追踪(不清楚用途,一般不选择

think_time思考时间通过这个来设置模拟用户等待操作的实现,由于Loadrunner回放脚本是全速进行的,而真正的用户的操作并不会如此迅速,所以要通过添加等待时间的方式,在脚本的运行过程中模拟用户的等待操作,实现这个操作的函数是lr_think_time()

 

               Ignore think time       忽视思考时间( 忽视思考时间不断迭代的话对服务器的压力会比较大,压力测试的时候可能用到

 

               Replay think time        回放思考时间

 

             As recorded 当录制的时候

 

             Multiply recorded think time by xx Xx秒乘以录制的思考时间

 

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

 

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

 

Preference优先设置

            Checks检查

 

            Enable image and text check       打开图片和文本检查(设置检查点时一定要打开

 

           Generate web performance graphs设置回放时是否监控页面性能计数

 

           Hits per second and http codes        每秒点击次数,HTTP的代码

           Pages per second(html mode only)       每秒页面响应数(只有网页模式)

 

           Response bytes per second          每秒响应的字节数

 

           Advanced高级的

 

          Winlnet replay instead of sockets(windows only)        使用winlnet的引擎回放脚本(只有windows使用),默认使用socket端口的方进行回放

 

          File and line in automatic transaction names          文件和行自动添加一个唯一的事务名

 

          Non-critical resource errors as warnings            资源文件如果出错,我们不以warnings提醒的方式出现,而直接出现error。

 

          Save snapshot resources locally         在本地保存抓图的资源

 

          Set advanced options          设置高级选项,提供了对HTTP请求的所有设置选项

 

 

 

 

 

 

 

 

 

 

 

 

猜你喜欢

转载自www.cnblogs.com/losemywaycl/p/9210615.html