问题
I want to run the QTP script that resides in my machine from another Machine in the LAN.
Tried doing the following:
DCOM Configuration is done (on the machine where the script has to be run)
Script resides in the Script Initiator machine:
dim qapp
set qapp = createobject("QuickTest.Application","<IP Address")
qapp.launch
qapp.visible = true
Please Help..
回答1:
1) I would first ensure that below script works fine in the machine (without IP address. Just directly try to run this in the remote machine. It should launch QTP/UFT)
dim qapp
set qapp = createobject("QuickTest.Application")
qapp.launch
qapp.visible = true
2) DCOM settings:
- QuickTest Professional Automation
- HP Unified Functional Testing
In DCOM properties for the above applications, under Security tab, give required permissions. I have given full permissions for all users. Under Identity tab, Select 'Interactive User'.
3) User Permissions:
You must have the following file system permissions:
➤ Full read and write permissions for all the files and folders under the folder in which QuickTest is installed
➤ Full read and write permissions to the Temp folder
➤ Read permissions to the Windows folder and to the System folder
You must have the following registry key permissions:
➤ Full read and write permissions to all the keys under HKEY_CURRENT_USER\Software\Mercury Interactive
➤ Read and Query Value permissions to all the HKEY_LOCAL_MACHINE and HKEY_CLASSES_ROOT keys
来源:https://stackoverflow.com/questions/27441643/running-qtp-scripts-on-a-remote-machine-windows-7