Set TSChildren = TSFolder.FindChildren("")
For Each TSChild In TSChildren
Set TSFactory = TSChild.testSetFactory
Set TSList = TSFactory.NewList("")
'Iterate through all the Test Sets
For Each TestSet In TSList
Set TSTestFactory = TestSet.TSTestFactory.NewList("")
For Each TF In TSTestFactory
k = k + 1
Debug.Print "TC Count: " & k
If TF.Status <> "No Run" Then
Set runF = TF.RunFactory
Set runFilter = runF.Filter
runFilter.Clear
runFilter("RN_EXECUTION_DATE") = ">= " & Date
Set runList = runF.NewList(runFilter.Text)
'filter by execution date
'take nth run list
iRunListCount = runList.Count
totalRunCount = 0
For Each RunItem In runList
Set LnkFact = RunItem.BugLinkFactory
LnkFact.FullLinkage = True 'for step links
For Each Lnk In LnkFact.NewList("")
/* Here my defects are not getting displayed*/
Set MyBug = Lnk.TargetEntity
Next
Next
End If
Next
Next
下一步
使用上面的代码我无法获得测试用例的链接缺陷。
注意:原因是所有缺陷都与测试实例相关联,而不是测试运行。
答案 0 :(得分:0)
试试这个(在C#中):
$info = array('12', '55', '95');
while($row = mysqli_fetch_array($result)){
echo '<tr>';
echo '<td>'.$row['Name'].'</td>';
echo '<td>'.$row['Address'].'</td>';
foreach($info as $age){
echo '<td>' . $age . '</td>';
}
}