去年我在VBScript中编写了一个小工具,用以下代码检索TestID。
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
这很好用。现在,QC中也有缺陷,我需要知道与TestID对应的"缺陷ID"。如何访问质量中心的"缺陷ID"有什么建议吗?感谢
在for循环中添加以下逻辑
Dim tsTest as TSTest = tsInstance
Dim linkFactory as LinkFactory = tsTest.LinkFactory
// From link factory object extract defects which are linked to corresponding test
谢谢,
Gaurav