Create Linkk between requirements after import in ALM
Hello Good Day all,
Can any one advice me , if there is any possibility in linking requirements automatically using script .
In one of the project we are importing requirements , After importing is there any way to link requirements
automatically or manually have to link . Please suggest
Thanks & Regards
Do you think you can be a little bit more specific? I'm in the same situation and would love to have requirements linked automatically. I've looked all through the documentation and I still cannot figure it out. My scripts are imported from excel. Requirements are imported from excel. Requirements and Test cases both have a unique field that matches so we know what requirement goes with what test case.
Do you have any step by step instructions or a script I can use to try? I've tried sample scripts online and nothing seems to work.
Linking test cases with Requirements can be done using an excel macro.
Provide the test case id's in the first column of excel sheet.Requirement id's to be mapped in the second column. In the visual basic editor, place the below code. Provide your project details whereever necessary. This code will cover only the requirement id's provided in second column and not the child requirements. If child requirements are also to be mapped , replace False with True in the line of code "testobj.CoverRequirementEx Sheet1.Cells(i, 1), "", False"
Set tdc = CreateObject("tdapiole80.tdconnection")
tdc.InitConnectionEx "<Application URL> "
tdc.Login "<username>," < Password > ""
tdc.Connect "<domain_name>", "<project_name>"
Set testfactobj = tdc.TestFactory
For i = 1 To shee1.Cells(Rows.Count, 1).End(xlUp)
Set testobj = testfactobj.Item(Sheet1.Cells(i, 1))
testobj.CoverRequirementEx Sheet1.Cells(i, 2), "", False
Set testobj = Nothing
Set tdc = Nothing
Try this in any test project before proceeding to Production .