Use the following approach: ** *Set qtApp = CreateObject(“QuickTest.Application”, “Remote Machine Name”)*
Before using this statement ensure that the Distributed COM (DCOM) Configuration Properties of the remote computer are set to allow you to run QuickTest Professional Automation from your computer. *Steps to Set the DCOM Configuration Properties on Remote Machine* 1. On the computer where you want to run the automation script, choose Start–> Run. The Run dialog box opens. 1. Enter *DCOMCNFG* and click OK. The Distributed COM Configuration Properties dialog box or the Component Services window opens (depending on your operating system) and displays the list of COM applications available on the computer. 2. Select QuickTest Professional Automation from the list and open the Properties dialog box for the application. (Click the Properties button or right-click and choose Properties, depending on your operating system.) 3. In the QuickTest Professional Automation Properties dialog box, click the Security tab. 4. In the launch permissions section, choose the custom option and click Edit. 5. Use the *Add* and *Remove* options to select the network users or groups for which you want to allow or deny permission to launch QuickTest Professional via an automation script. When you are finished, click *OK*to save your settings. 6. Repeat steps 5 and 6 for the configuration permissions section to select the users or groups who can modify QuickTest Professional configuration options via an automation script. 7. In the QuickTest Professional Automation Properties dialog box, click the *Identity* tab and select the *interactive user* option. 8. Click *OK* to save the QuickTest Professional Automation Properties settings. 9. Click *OK* to close the Distributed COM Configuration Properties dialog box or the Component Services window. Regards Shalabh Dixit My QTP Blog <http://shalabhdixit.wordpress.com/> On Wed, Jul 3, 2013 at 7:50 AM, Satnam Singh <[email protected]> wrote: > Hi , > > Consider machine 1 with the following folder structure : > > D: drive. > Automation > TestScript > Function Library > Object Repository > > Now I want to run the automation on Machine 2. > Question 1 - How can we run the automation from Machine2.(Pls share the > sudo code for this) > Question 2 - Can we write a script, for the above situation. > > -- > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "QTP - HP Quick Test Professional - Automated Software Testing" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en --- You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
