【问题标题】:How to get the customise project list (Lookup) in HP Quality Center using OTA如何使用 OTA 在 HP Quality Center 中获取自定义项目列表(查找)
【发布时间】:2015-10-15 14:16:38
【问题描述】:

我正在尝试使用 OTA API 来获取我的测试对象的属性。其中一些条目具有“查找”类型。这些列表在自定义 -> 项目列表中可用。

我用 CustomizationList 试试运气,但不知何故我被它的孩子卡住了。它只显示条目数而不是完整列表。

...
TestFactory nodeFactory = node.TestFactory;

foreach (dynamic attribute in nodeFactory.Fields){
    //read the attribute
    CustomizationList children = attribute.Property.Root.List;
}
...

有什么想法吗?

【问题讨论】:

    标签: c# alm hp-quality-center


    【解决方案1】:

    经过一番尝试,我自己想出了一个解决方案:

    CustomizationListNode childNode = children.RootNode;
    List cNodes = childNode.Children;
    
    foreach (CustomizationListNode ccNode in cNodes) {
         Console.WriteLine("List Item:" + ccNode.Name);
    }
    

    希望对其他人获取项目列表(Lookup List)有所帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-25
      • 1970-01-01
      相关资源
      最近更新 更多