0
C# 및 OTA API, 을 사용하여 결함에 대한 새로운 설명을 추가하려고 시도했지만 아무리해도이를 달성 할 수 없었습니다. 버그가 요약, id .. 등의 속성을 가지고 있지만 Comment 속성이 없습니다. 나는 이렇게 시도 :C# (OTA API)을 사용하여 Quality Center 11의 결함에 대한 새 설명 추가
private void UpdateComment(string DefectID)
{
string desc = "";
BugFactory bugFac = (BugFactory)pdl_qc.BugFactory;
TDFilter filter = (TDFilter)(bugFac.Filter);
filter["BG_BUG_ID"] = DefectID;
List def = bugFac.NewList(filter.Text);
string bugComment;
foreach (Bug bug in def) // I know this also I need to modify
{
desc = bug.Summary.ToString(); // Here I get the summary for the Defect ID
bugComment = bug["BG_DEV_COMMENTS"]; // but this return some xml format
}
string newComment = "Investigating further" // something like this
//Now I want to update this new comment for DefectID
}
버그 번호에 대한 새 코멘트를 추가하는 방법에 대한 도움을 받으십시오.
미리 감사드립니다.
감사합니다. @Alex Shnayder. 즉, 완전한 html 태그가 포함 된 변수를 처리하고 다른 모든 태그 (포맷터)에 내 의견을 추가해야한다는 의미입니다. –