tag:blogger.com,1999:blog-1325622456158645929.post7095795946773038971..comments2023-09-05T06:08:58.034-07:00Comments on SUDHAKAR'S TEST AUTOMATION BLOG: Executing QTP Scripts on a Remote ComputerQtpSudhakarhttp://www.blogger.com/profile/03060104047856902928noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-1325622456158645929.post-75427351177963603232013-04-03T07:29:06.442-07:002013-04-03T07:29:06.442-07:00you need to give qtp test path. not an exe path.you need to give qtp test path. not an exe path.QtpSudhakarhttps://www.blogger.com/profile/03060104047856902928noreply@blogger.comtag:blogger.com,1999:blog-1325622456158645929.post-49821859143350472242013-04-03T06:09:11.168-07:002013-04-03T06:09:11.168-07:00I have a small piece of code as below:
Set QtpAp...I have a small piece of code as below:<br /><br /> Set QtpApp = CreateObject("QuickTest.Application","hyd-rampavan")<br /> QtpApp.Launch<br /> QtpApp.Visible = True<br /> QtpApp.Options.Run.RunMode="Fast"<br /> <br /> QtpApp.Open "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"<br /><br />I get an error as:<br /><br />Cannot open test.<br />Line (13): "QtpApp.Open "C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe"". <br /><br />Please let me know where is the problem in the above script and how to resolve this?<br /><br />Thanks in advance.<br /><br />Regards,<br />Nagaraju.ANagaraju6noreply@blogger.comtag:blogger.com,1999:blog-1325622456158645929.post-77968072353310221282013-04-03T04:24:13.956-07:002013-04-03T04:24:13.956-07:00Well follow below steps to get rid of Permission d...Well follow below steps to get rid of Permission denied error.<br /><br />Part I:<br /><br />Add both machines into the same domain. For the domain users logged into both machines, add these domain users to the Local Administrators group on the QTP machine. This is required for Windows to authenticate the remote user executing the tests against the DCOM objects. <br /><br />Part II:<br /><br />On the Testing Tool client machine configure Windows Firewall to allow Port 135 for DCOM:<br /><br />1. Select Start -> Control Panel -> Windows Firewall.<br /><br />2. Navigate to the Exceptions tab.<br /><br />3. Configure the Remote Agent to be allowed under "Programs and Services." Configuration should be done for QTP as given below:<br /><br />QuickTest Professional Remote Agent (path: :\Program Files\Mercury Interactive\QuickTest Professional\bin\AQTRmtAgent.exe) <br /><br />4. Click on and add the DCOM TCP port 135 to the Exceptions list. The list of "Port Assignments for Commonly-Used Services" is provided in the URL below:<br /><br /> <br /><br />Part III: (NOT ALL STEPS HAVE BEEN COMPLETED, SOME EXTRA USERS)<br /><br />Modify DCOM Security Properties:<br /><br />1. Select Start -> Run and enter dcomcnfg.<br /><br />2. Navigate to Console Root -> Component Services -> Computers -> My Computer.<br /><br />Note: If Windows Security Alert dialog window appears, click on or .<br /><br />3. Right-click on My Computers and select "Properties."<br /><br />4. Navigate to the Default Properties tab.<br /><br />5. Make sure the Default Impersonation Level is "Identify."<br /><br />6. Click .<br /><br />7. Navigate to the Defualt COM Security tab.<br /><br />8. Under Access Permissions, click on . The Access Permission dialog window appears.<br /><br />9. Click on . The Select Users or Groups dialog windows appear.<br /><br />10. Click on .<br /><br />11. Click on .<br /><br />12. Add the following groups and users from the local machine <br /><br />Administrator<br /><br />Administrators<br /><br />Authenticated User<br /><br />Anonymous Logon<br /><br />Everyone<br /><br />Interactive<br /><br />Network<br /><br />System<br /><br />13. Click .<br /><br />14. Add the following groups and users from the domain:<br /><br /><br /><br /><br /><br />15. Click .<br /><br />16. Give "Local Access" and "Remote Access" permissions to the groups and users.<br /><br />17. Click .<br /><br />18. Under Access Permissions, repeat steps 9-17 for .<br /><br />19. Under Launch and Activation Permissions, click on . The Launch Permission dialog window appears.<br /><br />20. Repeat steps 9-15.<br /><br />21. Enable "Local Launch," "Remote Launch," "Local Activation," and "Remote Activation" permissions to the groups and users.<br /><br />22. Click .<br /><br />23. Repeat steps 20-22 for . <br /><br />Part IV: (for QTP only)<br /><br />1. While still in the Component Services window, navigate to Console Root -> Component Services -> Computers -> My Computer -> DCOM Config.<br /><br />2. Look for the following.<br /><br />AQTRmtAgent<br /><br />QuickTest Professional Automation<br /><br />TlpRmtServer<br /><br />3. For each of these DCOM applications, right click and select .<br /><br />4. Under the Identity tab, select . This will allow the DCOM application to authenticate the process against the logged in Windows user and run the process in that security context.<br /><br />5. Next, go to the Security tab.<br /><br />6. For both the and , select . This will use the Default security settings as we did in Part III.<br /><br />7. Click Apply, then OK to commit the changes.<br /> Nagaraju6noreply@blogger.comtag:blogger.com,1999:blog-1325622456158645929.post-8396087464178282452012-10-09T02:11:18.207-07:002012-10-09T02:11:18.207-07:00No on has replied for 'Permission denied' ...No on has replied for 'Permission denied' error simply posting same DCOM settings in every web site, if any one knows please post the answer for I am struggling for more than a weekAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1325622456158645929.post-64125358721435025512011-07-14T03:13:23.330-07:002011-07-14T03:13:23.330-07:00I followed the above procedure and i still get the...I followed the above procedure and i still get the following error<br />"Microsoft VBScript runtime error: Permission denied: 'CreateObject'"Vijaynoreply@blogger.com