HP’s Quality Center (QC) is primarily used for it’s defect tracking and test suite management capabilities. More recently they have released a Requirements Management module that is able to tracks requirements.
If you want to query and update the data programmatically, it’s actually quite simple using what they call their “Open Test Architecture” APIs.
- Add a reference to: C:\Program Files\Common Files\Mercury Interactive\Quality Center\OTAClient.dll
To get this dll on your machine, you’ll need to have logged in to the QC web interface and installed the ActiveX objects.
Then you can query all Requirements by using TDAPIOLELib.ReqFactory.NewList(optional filter):
TDAPIOLELib.TDConnection connection = new TDAPIOLELib.TDConnection();
connection.InitConnectionEx(”http://SERVER:8080/qcbin“);
connection.Login(”USERNAME”, “PASSWORD”);
connection.Connect(”QCDOMAIN”, “PROJECT”);
TDAPIOLELib.ReqFactory reqFactory = connection.ReqFactory as TDAPIOLELib.ReqFactory;
TDAPIOLELib.List requirementsList = reqFactory.NewList(”");
foreach (TDAPIOLELib.Req req in requirementsList)
{
// View / Modify the properties
// req.ID, req.Name, etc.
// Save them when done
// req.Post();
}
Querying Defects is much the same, just substitute ReqFactory for BugFactory. Enjoy.
Update: And to create new ones, you have to call reqFactory.AddItem(Nothing) in VB, or req.Additem(System.DBNull.Value) in C#.
