Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue with "Test run scheduler": Unable to clear the scheduler list
#1
Not Solved Exclamation 
Hi,

There is an issue with the "Test run scheduler" that we are currently facing.
Any help is really appreciated Smile

Details about the issue:

We are using a VBS file to initiate QTP scripts execution.
The issue we are facing is the scheduler lists junk script names in the list every time we start a fresh execution.
Since we are dealing with scripts count of more than 100 every time the list in the scheduler grows in number due to listing of junk scripts that we executed in previous execution. Due to this QTP eventually crashes.

We are trying to find a way we could clear the scheduler list before every fresh execution. But for the TSScheduler object there seems to be no methods available to do this. So please let me know if you are aware of any ways to clearing the scheduler list.

The script used is similar to the one mentioned below:

Code:
set tdc = createobject("TDApiOle80.TDConnection")
tdc.InitConnectionEx "http://qcURL/qcbin/"
tdc.login "yourUserName","yourPassword"
tdc.Connect "yourDomain","yourProject"

Set objShell = CreateObject("WScript.Shell")
Set TSetFact = tdc.TestSetFactory
Set tsTreeMgr = tdc.TestSetTreeManager
Set tsFolder = tsTreeMgr.NodeByPath("Root\Formal Tests\YourTestDirectory")
Set tsList = tsFolder.FindTestSets("Your TestSet name. This is case sensitive!")

Set theTestSet = tsList.Item(1)
Set Scheduler = theTestSet.StartExecution("")
Scheduler.RunAllLocally = True
Scheduler.run

Set execStatus = Scheduler.ExecutionStatus

Do While RunFinished = False
execStatus.RefreshExecStatusInfo "all", True
RunFinished = execStatus.Finished
Set EventsList = execStatus.EventsList

For Each ExecEventInfoObj in EventsList
  strNowEvent = ExecEventInfoObj.EventType
Next

For i= 1 to execstatus.count
  Set TestExecStatusobj =execstatus.Item(i)
  intTestid = TestExecStatusobj.TestInstance
Next
Loop


Thanks,
Arun S
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to clear the contents of datatable(Local or Global sheet) during runtime? srinibarati 3 13,457 11-27-2016, 10:10 PM
Last Post: EbbyNader
  Scheduler brucebruce 3 3,209 09-23-2015, 07:14 AM
Last Post: supputuri
  Application Issue on selecting value from weblist using UFT 12.1 on run sunilkgupta 0 2,282 01-01-2015, 08:22 PM
Last Post: sunilkgupta
  Unable to Run the Script aalladi 6 10,690 05-14-2014, 07:09 AM
Last Post: Manjusha
  Schedule test set run using OTA baluonline 0 3,690 11-17-2012, 02:44 AM
Last Post: baluonline

Forum Jump:


Users browsing this thread: 4 Guest(s)