spiaire
spiaire

Reputation: 3

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)?

Upvotes: 0

Views: 1581

Answers (1)

romanp
romanp

Reputation: 21

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"];

Upvotes: 2

Related Questions