Adding Requirements via API
I'm trying to add a requirement in QualityCenter via API.
After connecting to the server I try to execute following code:
<font class="small">Code:</font><hr /><pre>Set reqFac = tdc.ReqFactory
Set newReq = reqFac.AddItem(Null)
newReq.Name = "TestReq"
newReq.Post </pre><hr />
The last method (Post) throws an error.
Ther err.description is: "Failed To Post Req".
What am I doing wrong?
Thanks in advance!
regards | me
Re: Adding Requirements via API
Instead of reqFac.AddItem(Null) try reqFac.AddItem(-1)
Let me know if this resolves your issue