QTP Question --> Test and Requirements --> OTA
Lets say we retrieve a requirement from QC using QTP which is mapped to more than one test, how do we modify the code such that it gives me the names of the tests the requirement is mapped to?
I have the following code so far:
Set ReqFactory = QCConnection.ReqFactory
Set ReqFilter = ReqFactory.Filter
SearchString = "<Req Name>"
ReqFilter.Filter("RQ_REQ_NAME") = SearchString
Set ReqsList = ReqFactory.NewList(ReqFilter.Text)
If ReqsList.Count > 0 Then
Reporter.ReportEvent 0, "REQUIREMENT ID VALIDATION" , ReqsList.Count & " Requirement(s) Found "
Re: QTP Question --> Test and Requirements --> OTA
This is covered in the OTA API documentation (Help -> Documentation Library in QC). If you still have problems post a more complete piece of code.