NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
This can be achieved simply via the construction of a LIST OF STRING and a "While loop". By placing the basic path into a string variable and then appending each node in turn, we can then pass this full string to the Pick() method of the TreeView class.
The following code is an example using the sample application provided with SilkTest, given the tree structure as detailed in the following image. The TestApp can be found at: Start -> Programs -> SilkTest -> Sample Applications -> TestApp
[-] testcase pseudoTraverse() appstate none [ ] //Borland [ ] //Example code only [ ] [ ] List of String lsNodeList [ ] String sPathToNode [ ] String sFinalpath [ ] Int iCount = 1 [ ] [ ] lsNodeList = {"Node_1", "Node_2", "Node_3", "Node_4", "Node_5"} [ ] sPathToNode = "/root/child/" [ ] [ ] Print(lsNodeList) [ ] Print(sPathToNode) [ ] [ ] [-] while (iCount
PsudoTreeSelect.inc