问题描述:

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"];
相关阅读:
Top