Executing QTP Scripts on a Remote Computer, Can we record an application running on a remote machine using QTP
When by default you execute the QTP scripts on a local machine then automation object model provides a facility option to run QTP scripts also on a remote machine
Using CreateObject(“QuickTest.Application”), function you provide the permissions to run QTP scripts on local machine.
So to run the scripts on the Remote Machine we required to use:
Set qtApp = CreateObject(“QuckTest.Application”,”Name of Remote Machine”)
So before using this code you need to confirm that the distributed COM (DCOM) properties of Configuration of remote system are allowing you to access the system for executing the Quick Test Professional Automation.
Following are the steps to set the DCOM Configuration Properties on Remote system:
1. The system where you want to use this automaton script, Choose
Start -à Run Now Run dialog will open in front of you
2. Enter DCOMCNFG and then click on OK. Now Component Services window or Distributed COM Configuration Properties dialog box will opens (Operating system dependable) and The Available list of COM applications will be displayed on computer.
3. From the list select the QuickTest Professional Automation and then open the dialog box for properties for the application. (Now Right Click and choose properties or click on the Properties button, it will be depend on your operating system)
4. Click on Security tab from the Automation Properties dialog box or QuickTest Professional.
5. Now select the custom option and then click Edit from the launch permissions section.
6. Now use Remove and Add options to choose the network group or users for which you like to deny or allow the permission to access Quick Test Professional via an automation script.
7. Who can edit the QTP configuration options through automation script you just need to repeat the steps 5 and 6 for the permissions of configuration section to choose the groups or the users.
8. Now click on the Identity tab and choose the interactive user from the QTP automation properties dialog box.
9. Now save the QTP automation properties settings on clicking on OK button.
10.Now again click on OK to close the Component Services window or the distributed COM Configuration Properties dialog box.
|
||
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
Virtual Objects with Example in QTP |
Cross Platform Testing |
|
|
|
QTP TESTING STEPS | How to Record a QTP Script |
|
||
|
|
|
|
No comments:
Post a Comment