Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JENKINS to QTP Integration Remotely WMI/VBscript help need
#1
Not Solved
Hi I need help to connect remote machine and execute vbscript(test scripts) by opening QTP application.


By using VB Script I have connect one workstaiton to another workstation and I have to open QTP application by uisng QTP application I have to run test script.


Can you please help me .. Because I have no much knowledge about this script..

Code:
strUser = "K003277"


strDomain = "PNKUKDEV"


strComputer ="DV01123"


strPassword = "Pork2013"


Set objSWbemLocator = CreateObject("WbemScripting.SWbemLocator")


Set objWMIService = objSWbemLocator.ConnectServer(strComputer, _


"root\CIMV2", _


strUser, _


strPassword, _


"MS_409", _


"NTLMDomain:" + strDomain)


Dim QTApp = objWMIService.Create("QTPro.exe", null, null, intQTPID)
'set TApp = GetObject(QTApp)
QtApp.Open "C:\Temp\simple_test.vbs", True '


Set qtTest = qtApp.Test


qtTest.Run


Set colProcesses = objWMIService.ExecNotificationQuery _
    ("Select * From __InstanceDeletionEvent " _
            & "Within 1 Where TargetInstance ISA 'Win32_Process'")


Set colProcesses = objWMIService.ExecQuery _
    ("Select * from Win32_Process Where ProcessID = " & intQTPID)


For Each objProcess in colProcesses
    objProcess.Terminate()
Next
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Jenkins Integration Problem Sagar Sheth 3 2,958 03-30-2018, 04:11 PM
Last Post: Rahuls848
  QC-QTP Integration shipu 1 2,544 05-29-2014, 02:08 PM
Last Post: Jay
  qtp vbscript issue nikithak 1 2,355 02-24-2014, 06:42 PM
Last Post: guin.anirban
  QTP vbscript ArrayList strange behavior frankhovin 2 3,193 11-11-2013, 07:12 PM
Last Post: Parke
  Can any of the line in notepad file be appended/updated/modified via QTP(VBScript)? rookie_automator 1 2,599 08-22-2013, 07:13 AM
Last Post: basanth27

Forum Jump:


Users browsing this thread: 1 Guest(s)