LoadRunner

How to change input soap request as per test data in loadrunner?

♀尐吖头ヾ 提交于 2019-12-08 12:03:20
问题 I am working with one soap request where we need to pass,single data in one parameter and in 2nd iteration we need to pass multiple test data in same input request.Please help me how to change input soap request as per test data,please find below soap requests for single and multiple requests. Single Request: <ReqDtls> <vReqs> <amount>1.00</amount> <cardNo>8897654778999</cardNo> </Reqs> <cardType>caredit</cardType> </ReqDtls> Multiple Requests:In same soap input requests,it is changing

Loadrunner Analysis: How can the 90th percentile be higher than the average?

筅森魡賤 提交于 2019-12-07 18:50:09
问题 A bit confused. I have a few Loadrunner Analysis from a report I've run. I'm new to testing. My understanding of the 90th percentile is that, given that it takes the 90th percentile and leaves out the outliers, it presents a truer picture. Although I'm looking at two different reports and in both, the 90th percentile response time is higher than the average response time given in the Summary Report. How can that be possible? I'm looking at the graph of transaction response times (Percentile)

loadrunner测试同时监控服务器资源

懵懂的女人 提交于 2019-12-07 12:36:18
楔子:测友们总是再问lr测试同时怎么监控服务器的资源!---发生在胡胡测试群中的故事 本人秉着说错了无所谓--咱改! 大不鸟挨砖的态度写下这篇文章! hp loadrunner的监控已经做的很好了,可以监控多种资源,譬如: 1.unix(linux)服务器资源(需要在unix服务器安装rstatd守护程序==) 2.监控windows服务器资源(需要对所监控的服务器有相应的访问权限) 3.apache资源(需要动态加载一个apache的库对监控作为支持) 4.welogic资源(需要在服务器端安装jdk 修改xml权限配置==) 还有好多,用lr监控服务器资源 优点:可以实时查看并能记录到analysis中而且能和其他资源合并比较。 缺点:存在一点的延时,优点中的“实时”也就找洞别见人了!耗费资源:rstatd守护程序比较 好资源,且稳定性不好,容易死掉,自己实测遇到N次,找运维、开发讨论多次无果果断放弃使用。---这些缺点主要针对unix资源监控,因为我用的比较多! 推荐监控方式。 1.windows资源监控 可以使用自带的性能计数器。 优点:可以导出监控log,在analysis中导入数据生成图表。 缺点:感觉麻烦。 2.spotlight for windows(这个比较喜欢 还有for oracle、for linux不同的版本) 3.unix(linux)监控工具-

Loadrunner使用小技巧

风格不统一 提交于 2019-12-07 10:02:21
1、网络带宽问题 对web进行压力测试时,通常百兆网络是不够的,当网络带宽不够的时候server端没有足够压力。用loadrunner所在的windows的性能管理器看一下网络利用率就知道了。 2、Vuser脚本的检查 Loadrunner提供了方便的脚本录制功能,但由于录制时可能出现的操作错误,vuser访问一些不存在的资源。去除某些与压力测试无关的东西。否则可能会出现Loadrunner测试结果有误或压力上不去的情况 3、Runtime setting 在创建Loadrunner scenario时,每台机器的vuser的runtime settings都应该分别设置并检查,不能只对第一个vuser的runtime settings进行设置。通常你会关掉think time,以便能用较少的机器达到较大的压力。另外,如果返回页面里包含了一些访问其他资源的链接比如图片服务器,这时应关掉 download non-html resources。 4、没有检查返回页面 当server端出错时应用程序有可能返回错误信息,但对HTTP来讲仍是成功的响应,返回码为200 OK. 这样在Loadrunner就被记为成功的transaction。于是,server端出错越多,Loadrunner测出的性能越好。解决办法:开启并检查应用的错误 日志 ;或者启用Loadrunner的返回内容检查功能

Common Errors with Java Scripts in Controller

无人久伴 提交于 2019-12-07 04:14:12
"22994 : Error:Unable to create Java VM" This error usually means that the PATH and the CLASSPATH environment variables are not set properly. Delete ini file for Vugen: a. Shutdown Vugen. b. Go to "Window install directory" and look for vugen.ini. Delete the file. LoadRunner will recreate new configuration file when VuGen is launched. c. Launch VuGen and run the script again. "22997 Java Vuser Compilation failed" Make sure that LoadRunner and the Java environment are set up properly. 1. Ensure the "jdk install dir"\bin and "LoadRunner Install dir"\bin directories are in the PATH environment

loadrunner跑场景的时候出现:Abnormal termination, caused by mdrv process termination

主宰稳场 提交于 2019-12-06 14:26:40
1.问题 loadrunner跑场景的时候出现:Abnormal termination, caused by mdrv process termination。 备注:我使用的是RTE协议录制的脚本。 2.一些资料 2.1关于mdrv.exe意外终止的可能出现情况说明 Hi, Users facing this mdrv process abnormal termination can try one of these options found from one of the LR articles. The Loadrunner vusers are run by a process called 'mdrv.exe'. Whenever this process encounters errors due to various reasons it may terminate. Some of the possible reasons are as follows The Host machine ( Load generator) is running too many Vusers as a result of which it system resources are being maximized. ( i.e. Consistent over 90% CPU

Loadrunner Analysis: How can the 90th percentile be higher than the average?

懵懂的女人 提交于 2019-12-06 13:02:41
A bit confused. I have a few Loadrunner Analysis from a report I've run. I'm new to testing. My understanding of the 90th percentile is that, given that it takes the 90th percentile and leaves out the outliers, it presents a truer picture. Although I'm looking at two different reports and in both, the 90th percentile response time is higher than the average response time given in the Summary Report. How can that be possible? I'm looking at the graph of transaction response times (Percentile) and the last 10% shoot up, therefore telling me that taking the 90% should see a lower response time.

linux下安装loadrunner(LoadGenerator)

拜拜、爱过 提交于 2019-12-05 20:05:58
1. 在 HP 的官方网站上下载 LoadRunner9.5 的 Linux 安装程序 [ T7177-15009.iso ] ,安装文档 [ hp_man_LRIG9.50_01_pdf.pdf ] ; 安装程序包括 Hp 、 Ibm 、 Linux 、 Solaris 系统的支持( LR9.0 对应安装文件为 [ TLRNUX900WC_00.zip ] )。 2. 安装包的处理 : 1. ZIP 解压: unzip TLRNUX900WC_00.zip 2. 挂载 ISO : mkdir /mnt/LoadRunner ; mount -t iso9660 -o loop T7177-15009.iso /mnt/LoadRunner 3. 开始安装 ,以 LR9.5 为例: /mnt/LoadRunner/Linux/installer.sh 按提示操作,直接 Next 到完成。 4. 添加用户和环境变量 : useradd -g 0 -s /bin/csh higkoo cat /opt/HP/HP_LoadGenerator/env.csh > /etc/.login cat /opt/HP/HP_LoadGenerator/env.csh >~higkoo/.cshrc touch ~root/.rhosts ~higkoo/.rhosts 5. 检查运行环境

一、loadrunner脚本录制及回放

痴心易碎 提交于 2019-12-05 04:31:57
录制及回放的注意点: 1、测试系统教复杂时,正确的划分action,对监控的每一个业务模型和操作,起到重要作用 2、录制完成后,先进行编译(改动脚本之后检查下有没有语法错误):工具栏Vuser下有一个compile(Shift+F5) 3、编译完成后,进行回放:单步执行(人工一步一步执行)的方式:按F10或Vuser下面的Run step by step 4、所有手动添加的语句后面都有分号,不确定可以先编译下找到错误 步骤:比如登录一个系统后注销登录 一、录制: 1、打开url,Action选择Vuser_init——打开工具后,选择录制的url,以及Record into Action选择Vuser_init初始化脚本(Vuser_init在整个脚本中只运行一次) 2、访问到url页面之后,Action切换到Action,可以自己点击右边的按钮给action修改个名字,也可以录制成功之后修改action名字 3、登录页面输入用户名、密码后点击登陆按钮时,Action也选择action——为了区分,新增一个action进行录制,输入用户名密码后点击登陆按钮 4、退出登录按钮时,切换到Vuser_end——点击退出登录按钮(Vuser_end在整个脚本中也只运行一次) 二、回放 1、编译(检查下有没有语法错误):工具栏Vuser下有一个compile(Shift+F5)

LoadRunner如何监控Linux下的系统资源

一笑奈何 提交于 2019-12-04 22:51:59
关于LoadRunner监控Linux系统资源,大致分为以下步骤: 1、在监控Linux之前我想阐述的观点是,Liunx系统机制与windows大致相同,要监控并得到他的相关参数必须需要得到它的同意,这就是操作系统,所以你必须有足够的权限和方法才能获得,关于Linux在LR中也相关添加区域,与windows享有同等的地位。在windows中需要开启许多许多权限,以及一些远程访问的进程,当前在Linux中也不例外,在Linux下有一个进程是必须的,那就是系统守护进程rpc.restat,相信守护进程大家并不陌生,通常在Linux系统的引导的时候启动的很多服务,这些服务就是守护进程,而且它脱离于终端在后台运行的。 所以首先要查看系统是否开启了rpc服务,通过命令rpcinfo -p来查看 如上图可以看到,如果开启了四个rstatd服务就说明,该rpc守护进程服务启动是成功的。如果没有该服务,就需要手动安装了 下载地址: http://heanet.dl.sourceforge.net/sourceforge/rstatd/ 安装:一次执行--tar -xzvf rpc.rstatd-4.0.1.tar.gz //解压安装包 cd rpc.rstatd-4.0.1 //进入到rpc.rstatd目录中 ./configure //配置rc.rstatd安装 make //编辑rc