0

I wrote a little tool in VB Script last year to retrieve the TestID with the following code.

Dim TSTestFact = tsObject.TSTestFactory
Dim TestSetTestsList = TSTestFact.NewList("")

For Each tsInstance In TestSetTestsList
            Dim tid As String = tsInstance.ID
            Dim testqcID As String = tsInstance.TestID
            Dim testname As String = tsInstance.Name
            Dim statusOfTest As String = tsInstance.Status
Next

This is working fine. Now, also Defects are available in QC and I need to know a "Defect ID" corresponding to a TestID. Any suggestion how to access the "Defect ID" in Quality Center? Thanks

Chhabilal
  • 1,076
  • 11
  • 22
  • Any hints on any other programming language is also fine. Most important is the way to access "Defect ID". Thanks – Chhabilal Jul 07 '15 at 09:09

1 Answers1

1

Inside your for loop add following logic

Dim tsTest as TSTest = tsInstance
Dim linkFactory as LinkFactory = tsTest.LinkFactory
// From link factory object extract defects which are linked to corresponding test

Thanks,
Gaurav

Gaurav
  • 811
  • 9
  • 21