ResPrintList Function

Action

Creates a hierarchy in the results file.

Syntax

ResPrintList (sName, lSubItems)
Variable Description
sName The name of the item as it will appear in the results file. STRING.
lSubItems The list of subitems that will be indented under sName in the results file. LIST OF ANYTYPE.

Notes

  • ResPrintList creates a hierarchy in the results file, where sName is the level name, and lSubItems are the subordinate items under sName.

  • ResPrintList is equivalent to the following statements:
    ResOpenList (sName)
    ListPrint (laSubItems)
    ResCloseList ()
  • When you view the results file, the item sName is initially collapsed, indicated by the [+] icon next to it. You can expand sName to reveal the indented items under it.

Example

[-] testcase ResPrintListExample ()
	[ ] 
	[-] LIST OF ANYTYPE lSubitems = {...}
		[ ] "subitem1"
		[ ] "subitem2" 
		[ ] "subitem3" 
	[ ] 
	[ ] ResPrintList ("Level 1", lSubitems)
	[ ] 
	[ ] // In Results file, you see
	[ ] 
	[ ] // [+] Level 1
	[ ] 
	[ ] // Clicking on the [+] icon reveals
	[ ] 
	[ ] // [- ] Level 1
	[ ] 
	[ ] // subitem1
	[ ] 
	[ ] // subitem2
	[ ] 
	[ ] // subitem3