摘要:
在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腳本里設置循環及參數化來解決;
閱讀全文