Micro Focus QTP (UFT) Forums
Running QTP w/ Vbs file from remote computer - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Interview Questions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Interview-Questions)
+--- Thread: Running QTP w/ Vbs file from remote computer (/Thread-Running-QTP-w-Vbs-file-from-remote-computer)



Running QTP w/ Vbs file from remote computer - Irishman - 06-13-2012

I am trying to run QTP from a remote machine. I use PSexec to run a vbs script file to start up QTP. The problem is even though the vbs script is being run QTP does not run. But if I am on the computer and run the vbs file QTP starts. I am using QTP 11 and the vbs script is:


Code:
Dim obj_QuickTestApp                         ' As QuickTest.Application ' Declare the Application object variable
    Dim strScriptPath                        ' Path of QTP Test To Run    

    ' Open QuickTest
    Set obj_QuickTestApp = CreateObject("QuickTest.Application")     ' Create the Application object
    obj_QuickTestApp.Launch ' Launch QuickTest
    obj_QuickTestApp.Visible = True ' Set QuickTest to be visible

    strScriptPath="c:\InstallNew"
    ' Run The QTP Test
    obj_QuickTestApp.open strScriptPath
    obj_QuickTestApp.test.run

Msgbox "Smoke Test Completed"

    ' Quit QuickTest
    obj_QuickTestApp.Quit
    Set obj_QuickTestApp = Nothing                     ' Release the Application object

Any help will be appreciated


RE: Running QTP w/ Vbs file from remote computer - swathi - 06-13-2012

have you provided local administrative credentials on the remote machine to the command line?



RE: Running QTP w/ Vbs file from remote computer - Irishman - 06-13-2012

If you mean when I run psexec do I use the -u username -p password parameters than yes I did