Try Set TestSet = TestSetList.item(0) The line before where the error pops up.
Regards, Sanketh ( from my phone ) On 05-Nov-2012, at 3:34 PM, Ankit Gupta <[email protected]> wrote: > I am using TDAPI to connect to QC through vbscript > > below is the code > > > Set QCConnection = CreateObject("TDApiOle80.TDConnection") > QCConnection.InitConnectionEx qcServer > > 'Log on to server > > QCConnection.Login qcUser, qcPassword > QCConnection.Connect qcDomain, qcProject > > > > ' Fetch test set folders > Dim > TestSetTreeManager,TestSetFolderList,TestSetFolderCnt,TestSetFactory,TestSetList,TestSetCnt > > Set TestSetTreeManager = QCConnection.TestSetTreeManager > Set TestSetfolder = TestSetTreeManager.NodeByPath > ("Root\TestSetToExecute") > > Set TestSetList = TestSetfolder.FindTestSets("Sprint 1") > Set TestSet = TestSetList.item(1) > Set scheduler = TestSet.startExecution("") '//error coming at this > line 'Active X cannot create the object > > scheduler.RunAllLocally = True > scheduler.Run > > > > > On Mon, Nov 5, 2012 at 9:58 AM, Sanketh <[email protected]> wrote: > What Object are you using ? QcUtil / TDApiole80.tdconnection > > Are you executing this through QTP or standalone vbs ? > > Can u paste complete code for better debugging ? > > Regards, > Sanketh ( from my phone ) > > > On 05-Nov-2012, at 9:05 AM, Ankit Gupta <[email protected]> wrote: > >> I am getting error 'Active X cannot create object' in the below line while >> creating the scheduler object >> >> >> Set Scheduler = TestSet.StartExecution ( "" ) >> >> >> When the control comes to this step , I can see test scheduler window which >> does not show any test executing .I have also tried with changing the >> parameter to hostname, but still same error persist. >> >> Let me know if any patch is missing for Quality center 11 . machine config >> is 32 bit , Window 7. >> -- >> You received this message because you are subscribed to the Google >> "QTP - HP Quick Test Professional - Automated Software Testing" >> group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/MercuryQTP?hl=en > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
