Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invoking QTP on other machine.
#2
Solved: 11 Years, 4 Months ago
You can try this code...

//* Test script to run in Machine A *//

Code:
Dim Process(1)

Machine=Array("Machine_B")    'Computer name of the Machine B

set Controller = CreateObject("WSHController")

For i=0 to UBOUND(Machine)

    Set Process(i) = Controller.CreateScript("D:\StartExecution.wsf", Machine(i))
    Process(i).Execute

Next


For i=0 to UBOUND(Process)-1

    While Process(i).Status<>2

        Wait(2)

    WEnd

Next

//*************//

//*****This Script shuld save in your machineA with 'wsf' extension the the 'D:' ******//
Code:
<package>
<job>
<script language="VBScript">


        Set QTP=Createobject("Quicktest.Application")
        QTP.visible=true
        QTP.launch

        QTP.open "YourScript Path in Machine A"  

        QTP.test.run

</script>
</job>
</package>


Hope this'll help you....Smile

Thanks..
Reply


Messages In This Thread
RE: Invoking QTP on other machine. - by TestMe - 05-15-2009, 03:57 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Could not create Java virtual machine TangShake 2 8,646 10-26-2017, 11:41 AM
Last Post: walshmagger
  machine lock unlock uft_usr 0 1,751 06-21-2016, 09:52 PM
Last Post: uft_usr
  cannot create java virtual machine on QTP 12.02 version richa5685 0 1,965 02-23-2016, 11:18 AM
Last Post: richa5685
  Need to identify whether excel is installed in QTP machine kalyaniR 2 2,565 10-25-2013, 12:45 PM
Last Post: kalyaniR
  Installing QTP -Freeware on Multiple Machine sangi 1 2,800 06-11-2013, 06:13 PM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)