0

我正在尝试提取“在周期中检测到”字段的 QC 缺陷部分中可用的可能值。

我尝试为“缺陷状态”执行此操作,我能够提取值 Resolved、Open、Assigned....

我尝试提取状态值的代码如下:

Set cust = QCConnection.customization
Set custlists = cust.Lists
Set custlist = cutslists.List

Set custlist = custlists.List("Bug Status")  'it is listing complete bug status values not specific 'to the project
Set listrootnode = custlist.RootNode
Set listchildren = listrootnode.Children
For Each listname In listchildren
MsgBox (listname.Name)   'Assigned, deferred, cancel...... all are displayed
Next

但是在这里我需要将 Bug_status 替换为与在循环字段中检测到相关的内容。所以我需要帮助找出这个自定义列表的名称......

4

1 回答 1

1

i was able to get list of cycles avaiable in QC project. Here is the code:

Set cycles = UserForm9.QCConnection.CycleFactory ' here CycleFactory, a method in QC API will help ' you get complete list

So Bug status is a customization list.

And Cycles is not customized list but could be extracted by CycleFacotry method.

于 2013-12-09T06:57:16.223 回答