Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Running QTP w/ Vbs file from remote computer
#1
Not Solved
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
Reply
#2
Not Solved
have you provided local administrative credentials on the remote machine to the command line?
Reply
#3
Not Solved
If you mean when I run psexec do I use the -u username -p password parameters than yes I did
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  how to run multiple QTP scripts from QC on different remote machines urksp 1 6,289 09-07-2011, 03:20 PM
Last Post: rameshrise3

Forum Jump:


Users browsing this thread: 1 Guest(s)