Path Naming Template Functions

When you store multiple paths, it is important that you can tell test cases apart. Use the provided template functions in the Path Template dialog to generate unique path names, and optionally, also descriptions.
ard31
When you store multiple paths (test cases), you generate path names for them by combining literal text and template functions. Examples: “Test Case {Path No} of {Total No}” generates paths names such as “Test Case 1 of 100”, “Test Case 2 of 100”, etc.
You can use the following Path Functions to generate Path Name and Path Description (Header and Footer):
  • {First Block} Returns the name of the first block, excluding the Start block.
  • {Middle Block} Returns the name of a block in the middle of the path.
  • {Last Block} Returns the name of the last block, excluding the End block.
  • {Steps Total} Returns the total number of steps in this path, not counting Start and End blocks.
  • {Paths Total} Returns the total number of paths for the current optimization. Example: {Path No}/{Total No}.
  • {Path No} Returns the sequential number of this path. Ensures unique path names. Example: {Path No}/{Paths Total}.
  • {Next} Returns a sequential number. Ensures unique path names.
  • {Blocks} Returns an existing block name that you want to include in the path name. Select the Block from the list.
  • {Edges} Returns an existing edge name that you want to include in the path name. Select the Edge from the list.
  • {Decision Outputs} Prompts you for a number n and returns the concatenated names of the first n decisions and their chosen outputs. Entering 1 returns the first decision, 2 returns the first and second decisions, and so on. Example: “Test Case {Decision Outputs}{2}” generates path names such as “Test Case TradeCurrency=EUR VestingCurrency=GBP”,  “Test Case TradeCurrency=YEN VestingCurrency=USD”, etc.
You can use the following Flow Functions to generate Path Name and Path Description (Header and Footer):
  • {Flow Title}
  • {Flow Author}
  • [Flow Description}
  • {Location Path}
  • {ARD Hub URL}
  • {Flow Link}
  • {Version ID}
  • {Documentation}
  • {Source Edit}
  • {Environment}
  • {Audit}
You can use the following Block Functions when generating the Path Description Body:
  • {Block Name} Returns the block name.
  • {Block Extended Name}
  • {Block Description} Returns the content of this block’s description field.
  • {Block Extended Description}
  • {Decision Output} Returns the chosen output edge in this path for a Decision block. For a Process block, it always returns an empty string.
  • {Block No} Returns the sequential number of this block. Ensures unique block names. Example: “Block {Block No} of {Blocks Total}”
  • {Blocks Total} Returns the total number of blocks in the path. Example: “Block {Block No} of {Blocks Total}”.
  • Block Type
You can additionally use the following Block Functions when generating the Path Description Body if you have defined these fields in the Block Properties:
  • Black Box
  • Complexity
  • Data Nodes
  • Data Sensitivity
  • Expected Results
  • Notes
  • Observability
  • Probability
  • Requirement IDs
  • Block Status
  • Test Importance
  • Virtualization Parameters
The Path Description is the concatenation of the Path Description Header, followed by the Path Description Bodies for each unfiltered block in the path, followed by the Path Description Footer.
Path Description Example
  • Header:
    This is path {Path No} out of {Paths Total}.
  • Body:
    Decision {Block No} with name "{Block Name}" and description "{Block Description}" selects "{Decision Output}".
  • Footer:
    This path ended in state {Last Block}.
Generates for example the following path description:
This is path 4 out of 12. Decision 1 with name "Choose day" and description "date stamp" selects "2020-01-15". Decision 2 with name "Preferred time" and description "time slot" selects "10:00-12:00". Decision 3 with name "Choose location" and description "office name" selects "Head Office". This path ended in state "No appointment available".