在LR中运行QTP脚本的注意事项

上一篇 / 下一篇  2010-01-19 16:08:17 / 个人分类:LoadRunner

在LR中运行QTP脚本的注意事项

1、QTP的Tools--Options--Run的"Alow other Mercury products to run tests and components"选项要打勾;
2、在QTP脚本中设置事务,Services.StartTransaction "start"与Services.EndTransaction "start"
把需要在LR运行的脚本放在此事务里面;
3、在LR中运行时选择QTP脚本,文件扩展名为.usr的;
4、在LR中运行QTP脚本时,要把QTP关闭;
5、只能在LR的Controller中运行;不能在Virtual User Generator中打开及回放;
6、LR要使用global的license,单单WEB的license不行,会报错;
7、Controller运行中,只能执行1个虚拟用户,大于1个以上的虚拟用户会提示错误;
如果需要运行多个用户,只能在QTP脚本里设置循环及参数化来解决;


TAG: LR QTP qtp

 

评分:0

我来说两句

Open Toolbar