Micro Focus QTP (UFT) Forums

Full Version: Schedule test set run using OTA
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.