当前位置: 动力学知识库 > 问答 > 编程问答 >

c# - How to get comment of bug by TDAPIOLELib(HP Quality Center)

问题描述:

How to get comment of bug by TDAPIOLELib? HP Quality Center Version: 9.2.

I am trying:

var tdc = new TDAPIOLELib.TDConnection();

tdc.InitConnectionEx("https://...");

tdc.Login("xxx", "yyy");

tdc.Connect("zzz", "vvv");

BugFactory bgf = tdc.BugFactory;

foreach (Bug bug in bgf.NewList(""))

{

...

}

But bug do not have Comment property.

There are alternatives(SOAP)?

网友答案:

All bug, or any other QC entity, for that matter, fields can be accessed through the indexer object Item[string fieldName].

In your case, to access the comment use

string bugComment = (string)bug["BG_DEV_COMMENTS"];
分享给朋友:
您可能感兴趣的文章:
随机阅读: