ResOpenList Function

Action

Creates a new hierarchical level in the results file.

Syntax

ResOpenList (sName)
Variable Description
sName The name of the level as it will appear in the results file. STRING.

Notes

  • Use ResOpenList to start a new hierarchical level. The Print commands that follow it are indented until you close the level with 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 ResOpenListExample ()
	[ ] ResOpenList ("Level 1") // Create a new level
	[ ] Print ("subitem 1") // Add subitems to the level
	[ ] Print ("subitem 2")
	[ ] Print ("subitem 3")
	[ ] ResCloseList () // Close this level
	[ ] // In Results file, you see
	[ ] // [+] Level 1
	[ ] // Clicking on the [+] icon reveals
	[ ] // [-] Level 1
	[ ] // subitem1
	[ ] // subitem2
	[ ] // subitem3