Micro Focus QTP (UFT) Forums
Schedule test set run using OTA - 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: Schedule test set run using OTA (/Thread-Schedule-test-set-run-using-OTA)



Schedule test set run using OTA - baluonline - 11-17-2012

Hi,

I am getting issue with StartExecution method. When I am executing below code and getting active x error. Please help me to resolve this issue asap. Your help is appreciated.

Error :-
StartExecution - Active x component can not create object

Code :-
Code:
set tdc = createobject("TDApiOle80.TDConnection")
tdc.InitConnectionEx "ALM url"
tdc.login "username","password"
tdc.Connect "domain name","Project name
runWhere = RUN_LOCAL
TestsetID = "401"
Set objShell = CreateObject("WScript.Shell")
Set TSetFact = tdc.TestSetFactory
Set tsList = TSetFact.Item(TestsetID)
Set theTestSet = tsList.Item(1)
Set Scheduler = theTestSet.StartExecution("")    ' ****** Here i am getting an issue.