码迷,mamicode.com
首页 >  
搜索关键字:loadrunner    ( 1692个结果
为LoadRunner写一个lr_save_float函数
LoadRunner中有lr_save_int() 和lr_save_string() 函数,但是没有保存浮点数到变量的lr_save_float函数。《lr_save_float() function for LoadRunner》这篇文章介绍了如何写一个这样的函数: http://ptfront ...
分类:其他好文   时间:2016-07-07 22:28:59    阅读次数:233
在LoadRunner中查找和替换字符串
参考《Search & Replace function for LoadRunner》: http://ptfrontline.wordpress.com/2009/03/13/search-replace-function-for-lr/ LoadRunner中没有直接的函数支持查找并替换字符串 ...
分类:其他好文   时间:2016-07-07 22:24:51    阅读次数:183
LoadRunner监控Linux的三种方法
方法一、LR + SiteScope 方法二、使用rstatd包 1、下载rpc.rstatd-4.0.1.tar.gz 2、解压缩 tar -zxvf rpc.rstatd-4.0.1.tar.gz 3、配置 ./configure 4、编译 make 5、安装 make install 6、启动 ...
分类:系统相关   时间:2016-07-07 22:24:46    阅读次数:235
在LoadRunner脚本中实现随机ThinkTime
一般情况下,我们都是通过Run-Time Settings来设置Think Time(思考时间),可以设置回放脚本时忽略思考时间,或者是设置回放随机的一段思考时间。 By default, when you run a Vuser script, the Vuser uses the think t ...
分类:其他好文   时间:2016-07-07 22:23:51    阅读次数:170
在LoadRunner中设置HTTP请求time-out的时间
Error -27728: Step download timeout (120 seconds) has expired when downloading non-resource(s) [MsgId: MERR-27728] LR默认使用120秒作为每一个HTTP请求连接和接收和timeout时 ...
分类:Web程序   时间:2016-07-07 22:20:32    阅读次数:378
LoadRunner测试WebService的3种方式
LR在WebService虚拟用户协议中支持两种方式测试WebService,一种是通过“Add Service Call”的方式,一种是Import SOAP的方式。 Import SOAP的方式需要导入定义好的XML请求文件。 取到WebService返回的XML数据后,可以使用XPath的方式 ...
分类:Web程序   时间:2016-07-07 22:19:35    阅读次数:142
LoadRunner字符串处理 - 补齐字符串
有些时候需要在某个字符串的前面用0补齐,以便满足长度的格式要求。 在LoadRunner中可以封装出一个函数来处理这种问题: /* Function to pad a string to x characters adding the required character at the start ...
分类:其他好文   时间:2016-07-07 22:16:59    阅读次数:151
LoadRunner中调用SHA1算法加密字符串
参考《SHA-1 hash for LoadRunner》: http://ptfrontline.wordpress.com/2010/03/02/sha-1-hash-for-loadrunner/ 包含SHA1算法的头文件sha1.h: /* ************************* ...
分类:编程语言   时间:2016-07-07 22:16:32    阅读次数:262
LoadRunner中如何验证下载的文件大小、统计下载时间、度量下载速度
LoadRunner中的web_get_in_property函数可用于返回上一个HTTP请求的相关信息,包括HTTP请求返回码、下载大小、下载时间等: The web_get_int_property function returns specific information about the ...
分类:其他好文   时间:2016-07-07 21:06:26    阅读次数:211
loadrunner 添加token关联
1、token是服务器返回的一个值, 用于验证身份。 因此需要在response body中查找第一次出现token的地方。 2、token是登录时候返回的,因此需要在登录的请求那里找。 3、切换到树图,找到响应的登录操作 3、添加关联之后,脚本中会增加一个语句,它出现在登录之前。 ...
分类:其他好文   时间:2016-07-03 23:18:27    阅读次数:2940
1692条   上一页 1 ... 85 86 87 88 89 ... 170 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!