Micro Focus QTP (UFT) Forums
How can we run QTP on virtual machine at scheduled time through VB script. - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: How can we run QTP on virtual machine at scheduled time through VB script. (/Thread-How-can-we-run-QTP-on-virtual-machine-at-scheduled-time-through-VB-script)

Pages: 1 2


RE: How can we run QTP on virtual machine at scheduled time through VB script. - vanibandla - 08-21-2012

Can anyone help me on this same topic but different issue .....

when i use the same script (mentioned above in this post) for a real machine it works fine but when i try to use the same script for VM i get error permission denied 'create object'
i am using remote desktop for both the machines and I have also changed the Dcomcnfg setting for both but still its not working for VM ....
Please help

Thanks


RE: How can we run QTP on virtual machine at scheduled time through VB script. - vinod123 - 08-21-2012

Code:
Dim App
Set App = CreateObject("QuickTest.Application")
App.Launch
App.Visible = True
Dim QTP_Tests(3)
QTP_Tests(1) = "F:\QTP Projects\urltesting"
Set res_obj = CreateObject("QuickTest.RunResultsOptions")
For i = 1 to UBound (QTP_Tests)
App.Open QTP_Tests(i), True
Set QTP_Test = App.Test
res_obj.ResultsLocation = QTP_Tests(i) & "\Res1" ' Set the results location
QTP_Test.Run res_obj, True
QTP_Test.Close
Next
App.Quit
Set res_obj = nothing
Set QTP_Test = nothing
Set App = nothing



RE: How can we run QTP on virtual machine at scheduled time through VB script. - vanibandla - 08-22-2012

Can someone please help on this... Its very urgent ...
Thanks


RE: How can we run QTP on virtual machine at scheduled time through VB script. - vinod123 - 11-23-2012

this is because of full permissions are not given for the user where u are running qtp