Micro Focus QTP (UFT) Forums

Full Version: Running QTP w/ Vbs file from remote computer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
have you provided local administrative credentials on the remote machine to the command line?
If you mean when I run psexec do I use the -u username -p password parameters than yes I did