Thread Rating:
  • 1 Vote(s) - 1 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Invoking QTP on other machine.
#1
Solved: 11 Years, 4 Months ago
Hi,
Please go through the following scenerio and tell me the solution.

There are two machines A and B
macine A have all the scripts and related functionality, and does not have QTP.

machine B have only QTP installed.

I want to invoke QTP from A and run test cases on B.

I have tried
Code:
set obj = CreateObject("QuickTest.Application","Machine BName")

but it gives an error : Permission Denied 'CreateObject'
error no. 800A0046
Reply
#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


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

Forum Jump:


Users browsing this thread: 1 Guest(s)