摘要:
在LR中運(yùn)行QTP腳本的注意事項(xiàng)
1、QTP的Tools--Options--Run的"Alow other Mercury products to run tests and components"選項(xiàng)要打勾;
2、在QTP腳本中設(shè)置事務(wù),Services.StartTransaction "start"與Services.EndTransaction "start"
把需要在LR運(yùn)行的腳本放在此事務(wù)里面;
3、在LR中運(yùn)行時(shí)選擇QTP腳本,文件擴(kuò)展名為.usr的;
4、在LR中運(yùn)行QTP腳本時(shí),要把QTP關(guān)閉;
5、只能在LR的Controller中運(yùn)行;不能在Virtual User Generator中打開及回放;
6、LR要使用global的license,單單WEB的license不行,會報(bào)錯;
7、Controller運(yùn)行中,只能執(zhí)行1個虛擬用戶,大于1個以上的虛擬用戶會提示錯誤;
如果需要運(yùn)行多個用戶,只能在QTP腳本里設(shè)置循環(huán)及參數(shù)化來解決;
閱讀全文