Categories
Rational Quality Manager

Broken Back Links to DOORS and DNG

When linking to requirements, the links are not always formed correctly. In these cases the link is visible from RQM but not from DOORS or DNG.

To address this first enable Back Link Checks via the preferences window:

Then

Ensure the bottom option is selected.

You can now return to a traceability view within RQM (for example browse Test Cases, if you now add the “Validates Requirements” column to the view, the Back Links check will be performed and a broken link symbol displayed when an issue is found. Note this can take some time to actually display.

Using the action menu on the broken link symbol enables the link to be repaired.

Categories
DOORS 9

Load In Link Source Modules with DXL

In DXL, when looking at an objects links, only out links will return a valid object unless the source module is open. This function takes an object and the full name of a link module. It iterates through the in links that use this link module and ensure that the source module is open.

//------------------------------------------------
//  loadInLinkSourceModules()
//------------------------------------------------
/*
 * Ensure the source modules for all in-links (through 
 * the specified link name) are loaded
 */
void loadInLinkSourceModules(Object o, string strLinkName) {
	ModName_        modNameSource		= null
	ModuleVersion	ModVerSource		= null
	Object		oSource			= null
	Link		l
	LinkRef		lr
	string		strLinkModName		= ""

	for lr in all (o <- strLinkName) do {
		modNameSource = module( sourceVersion lr)
		if (!null modNameSource) {
			if ((!isDeleted modNameSource) && (null data(sourceVersion lr))) {
				load((sourceVersion lr), false)
			}
		}
	}
} // loadInLinkSourceModules()