TestComplete TreeViewFunctions

Last Updated:

Actions for working with TreeView objects


RJ Implementation: For each command, the 5th parameter "TextValue" must be given as full path with separator "->". Example: "Parent->Child"


[How To Read This Reference]
CaptureTreeDataToFile
TC:NETFLX
Copy the current contents of a tree[branch] to a file.
ClickPartial
TC:NET
Action to click a node according to a partial match of its text value.
ClickTextNode
TC:NETFLX
Action to click a node according to its text value.
ClickUnverifiedTextNode
TC:NET
Action to (almost) blindly click a text node.
Collapse
TC:NET
Action to collapse a node according to its text value.
CollapsePartial
TC:NET
Action to collapse a node according to a partial match of its text value.
CollapseTextNode
TC:NETFLX
Action to collapse a node according to its text value. Use Collapse instead.
DoubleClickPartial
TC:NET
Action to double click a node according to a partial match of its text value.
DoubleClickTextNode
TC:NETFLX
Action to double click a node according to its text value.
DoubleClickUnverifiedTextNode
TC:NET
Action to (almost) blindly activate (double-click) a text node.
Expand
TC:NETFLX
Action to expand a node according to its text value.
ExpandPartial
TC:NET
Action to expand a node according to a partial match of text value.
ExpandTextNode
TC:NETFLX
Action to expand a node according to its text value. Use Expand instead.
RightClickPartial
TC:NET
Action to right click a node according to a partial match of its text value.
RightClickTextNode
TC:NETFLX
Action to right click a node according to its text value.
RightClickUnverifiedTextNode
TC:NET
Action to (almost) blindly right-click a text node.
Select
TC:NETFLX
Action to select a node according to its text value.
SelectPartial
TC:NET
Action to select a node according to a partial match of its text value.
SelectPartialTextNode
TC:NET
Action to select a node according to a partial match of its text value. Performs selection as if CTRL key were held down during selection.
SelectPartialTextNodeSpecial
TC:NET
Holds down either Ctrl or Shift while making an item selection with emulating either a Left or Right mouse click. The Selection is made according to a partial match of its text value.
SelectTextNode
TC:NETFLX
Action to select a node according to its text value.
SelectTextNodeSpecial
TC:NETFLX
Holds down either Ctrl or Shift while making an item selection with emulating either a Left or Right mouse click.
SelectUnverifiedTextNode
TC:NET
Action to (almost) blindly click a text node.
SelectUnverifiedTextNodeRightClick
TC:NET
Deprecated For:RightClickUnverifiedTextNode
SetTreeContainsNode
TC:NETFLX
Sets a user-defined variable with the result of whether a tree contains the provided node.
VerifyNodeUnselected
TC:NET
Action to verify a particular text node is NOT selected.
VerifySelectedNode
TC:NET
Action to verify a particular text node is selected.
VerifyTreeContainsNode
TC:NET
Verify that a tree contains the provided node.
VerifyTreeContainsPartialMatch
TC:NET
Verify that a tree contains the provided node according to a partial match of the node's text value.

TestComplete TreeViewFunctions::CaptureTreeDataToFile
TC:NETFLX

Copy the current contents of a tree[branch] to a file.

The search of the path to the node is expected to be a case-sensitive exact match of each node. Use 'PartialMatchTreeDataToFile' if you wish to specify case-insensitive substring matches for tree nodes.

By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.


Fields: [ ]=Optional with Default Value
  1. File
    The name of the file used to store the tree data.

    The name of the file used to store the tree data. By default, the files will be stored in the active "Test" directory. If you specify a relative path, the path will be relative to the project directory. The directory for a full or relative path must already exist.

  2. [ Branch = ]
    The full name of the tree branch to capture.

    The full name of the tree branch to capture. If omitted, all branches/nodes are captured.

    The search of the path to the node is expected to be a case-sensitive exact match of each node. Use 'PartialMatchTreeDataToFile' if you wish to specify case-insensitive substring matches for tree nodes.


  3. [ IndentMark = ]
    The character(s) to use in the output file to indent the tree nodes from the parent tree branches.

    The character(s) to use in the output file to indent the tree nodes from the parent tree branches. If omitted, a tab character is used.

  4. [ FileEncoding = ]
    Specify a character encoding to be used when saving data to a file. If it is not specified, the system default file encoding will be used. The encoding should be a valid string supported by Java; if it is not valid, the system default file encoding will be used instead.


  5. [ FilterMode = ]
    (Future) Specify a file filter to use to process the text before comparison.


  6. [ FilterOptions = ]
    (Future) Specify filter options to use with the file filter.


Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::ClickPartial
TC:NET

Action to click a node according to a partial match of its text value.

Partial matching is accomplished through case-insensitive substring matching. Each delimited node of the provided TextValue is compared against the object data using this partial match comparison.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process. Only the final node provided in the TextValue hierarchy is evaluated for duplicity. Intermediate nodes are always found on a "first match" basis.


NOTE:
SE2 : Parameter text is case-sensitive substring of the tree node.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text of node to click.

    TextValue is the case-insensitive text of the node to click. Parent-Child relationships are separated by "->" For each level, a text comparison is performed. If the node contains the requested substring anywhere in its text, then that node is considered a match.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::ClickTextNode
TC:NETFLX

Action to click a node according to its text value.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to click.

    TextValue is the case-sensitive text of the node to click. Parent-Child relationships are separated by "->"

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::ClickUnverifiedTextNode
TC:NET

Action to (almost) blindly click a text node.

No attempt is made to verify that the node exists prior to the selection. No attempt to verify the node has been properly selected after the selection.

It should be noted that a click requires the full hierarchical path to the node to be selected. Parent child branches are delimited with '->' as in:
Parent->branch->leaf

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.


NOTE:
SE2 : Implementation verifies the existence of the node, does NOT verify if it is selected.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of the node to be clicked

    TextValue is the case-sensitive text of the node to be clicked

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::Collapse
TC:NET

Action to collapse a node according to its text value.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to collapse

    TextValue is the case-sensitive text of the node to collapse. Parent-Child relationships are separated by "->"

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::CollapsePartial
TC:NET

Action to collapse a node according to a partial match of its text value.

Partial matching is accomplished through case-insensitive substring matching. Each delimited node of the provided TextValue is compared against the object data using this partial match comparison.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process. Only the final node provided in the TextValue hierarchy is evaluated for duplicity. Intermediate nodes are always found on a "first match" basis.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text of node to collapse

    TextValue is the case-insensitive text of the node to collapse. Parent-Child relationships are separated by "->" For each level, a text comparison is performed. If the node contains the requested substring anywhere in its text, then that node is considered a match.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::CollapseTextNode
TC:NETFLX

Action to collapse a node according to its text value. Use Collapse instead.

This command might not function correctly when there are duplicate nodes in the tree. However, we have made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.
RJ Implementation: Works the same as command Collapse.


Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to collapse

    TextValue is the case-sensitive text of the node to collapse
    RJ Implementation:TextValue must be given as full path with separator "->". Example: "Parent->Child"


  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::DoubleClickPartial
TC:NET

Action to double click a node according to a partial match of its text value.

Partial matching is accomplished through case-insensitive substring matching. Each delimited node of the provided TextValue is compared against the object data using this partial match comparison.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process. Only the final node provided in the TextValue hierarchy is evaluated for duplicity. Intermediate nodes are always found on a "first match" basis.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text of node to double click.

    TextValue is the case-insensitive text of the node to double click. Parent-Child relationships are separated by "->" For each level, a text comparison is performed. If the node contains the requested substring anywhere in its text, then that node is considered a match.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::DoubleClickTextNode
TC:NETFLX

Action to double click a node according to its text value.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to double click.

    TextValue is the case-sensitive text of the node to double click. Parent-Child relationships are separated by "->"

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::DoubleClickUnverifiedTextNode
TC:NET

Action to (almost) blindly activate (double-click) a text node.

No attempt is made to verify that the node exists prior to the selection. No attempt to verify the node has been properly selected after the selection.

It should be noted that a click requires the full hierarchical path to the node to be selected. Parent child branches are delimited with '->' as in:
Parent->branch->leaf

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.


NOTE:
SE2 : Implementation verifies the existence of the node, does NOT verify if it is selected.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of the node to be clicked

    TextValue is the case-sensitive text of the node to be clicked

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::Expand
TC:NETFLX

Action to expand a node according to its text value.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to expand

    TextValue is the case-sensitive text of the node to expand. Parent-Child relationships are separated by "->"

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::ExpandPartial
TC:NET

Action to expand a node according to a partial match of text value.

Partial matching is accomplished through case-insensitive substring matching. Each delimited node of the provided TextValue is compared against the object data using this partial match comparison.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process. Only the final node provided in the TextValue is evaluated for duplicity. Intermediate nodes are always found on a "first match" basis.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text of node to match.

    TextValue is the case-insensitive text of the node. Parent-Child relationships are separated by "->". For each level, a text comparison is performed. If the node contains the requested substring anywhere in its text, then that node is considered a match.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::ExpandTextNode
TC:NETFLX

Action to expand a node according to its text value. Use Expand instead.

This command might not function correctly when there are duplicate nodes in the tree. However, we have made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.
RJ Implementation: Works the same as command Expand.


Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to expand

    TextValue is the case-sensitive text of the node to expand.
    RJ Implementation:TextValue must be given as full path with separator "->". Example: "Parent->Child"


  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::RightClickPartial
TC:NET

Action to right click a node according to a partial match of its text value.

Partial matching is accomplished through case-insensitive substring matching. Each delimited node of the provided TextValue is compared against the object data using this partial match comparison.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process. Only the final node provided in the TextValue hierarchy is evaluated for duplicity. Intermediate nodes are always found on a "first match" basis.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text of node to right click.

    TextValue is the case-insensitive text of the node to right click. Parent-Child relationships are separated by "->" For each level, a text comparison is performed. If the node contains the requested substring anywhere in its text, then that node is considered a match.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::RightClickTextNode
TC:NETFLX

Action to right click a node according to its text value.

It should be noted that a right click requires the full hierarchical path to the node to be selected. Parent child branches are delimited with '->' as in: Parent->branch->leaf

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of the node to be clicked

    TextValue is the case-sensitive text of the node to be clicked

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::RightClickUnverifiedTextNode
TC:NET

Action to (almost) blindly right-click a text node.

No attempt is made to verify that the node exists prior to the selection. No attempt to verify the node has been properly selected after the selection.

It should be noted that a click requires the full hierarchical path to the node to be selected. Parent child branches are delimited with '->' as in:
Parent->branch->leaf

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.


NOTE:
SE2 : Implementation verifies the existence of the node, does NOT verify if it is selected.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of the node to be clicked

    TextValue is the case-sensitive text of the node to be clicked

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::Select
TC:NETFLX

Action to select a node according to its text value.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.
RJ Implementation: Works the same as command Click.


Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to select.

    TextValue is the case-sensitive text of the node to select. Parent-Child relationships are separated by "->"

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::SelectPartial
TC:NET

Action to select a node according to a partial match of its text value.

Partial matching is accomplished through case-insensitive substring matching. Each delimited node of the provided TextValue is compared against the object data using this partial match comparison.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process. Only the final node provided in the TextValue hierarchy is evaluated for duplicity. Intermediate nodes are always found on a "first match" basis.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text of node to select.

    TextValue is the case-insensitive text of the node to select. Parent-Child relationships are separated by "->" For each level, a text comparison is performed. If the node contains the requested substring anywhere in its text, then that node is considered a match.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
[How To Read This Reference]

TestComplete TreeViewFunctions::SelectPartialTextNode
TC:NET

Action to select a node according to a partial match of its text value. Performs selection as if CTRL key were held down during selection.


Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text of node to select.

    TextValue is the case-insensitive text of the node to select. Parent-Child relationships are separated by "->" For each level, a text comparison is performed. If the node contains the requested substring anywhere in its text, then that node is considered a match.

Examples:
  • T, WINDOW, AJTree, SelectPartialTextNode, "parent"
    This action selects the "My New Parent" node.


  • T, WINDOW, AJTree, SelectPartialTextNode, "parent->child"
    This action selects the "My Stepchild" node found under "My New Parent".


[How To Read This Reference]

TestComplete TreeViewFunctions::SelectPartialTextNodeSpecial
TC:NET

Holds down either Ctrl or Shift while making an item selection with emulating either a Left or Right mouse click. The Selection is made according to a partial match of its text value.

This keyword can be used to select multiple items.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-Insensitive text (can be a part of whole text) of node to select.

    TextValue is the case-insensitive text (can be a part of whole text) of the node to select.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



  3. SpecialKey
    The special key command used in the row selection. For now, only Control and Shift are supported.


  4. MouseClick
    The type of mouse click needed. For now, only Left and Right are supported.


Examples:
  • T, WINDOW, ATreeView, SelectPartialTextNodeSpecial, "parent", , Shift, Left
    Make mouse-left-click on the first node with the substring "parent"--ignoring text case, in the same time the key 'Shift' is pressed down.


  • T, WINDOW, ATreeView, SelectPartialTextNodeSpecial, "parent", , Control, Left
    Make mouse-left-click on the first node with the substring "parent"--ignoring text case, in the same time the key 'Ctrl' is pressed down.


[How To Read This Reference]

TestComplete TreeViewFunctions::SelectTextNode
TC:NETFLX

Action to select a node according to its text value.

This command might not function correctly when there are duplicate nodes in the tree. However, we have made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.
RJ Implementation: Works the same as command Select.


Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of the node to be selected.

    TextValue is the case-sensitive text of the node to be selected.
    RJ Implementation:TextValue must be given as full path with separator "->". Example: "Parent->Child"


  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
  • T, WINDOW, TreeView, SELECTTEXTNODE, "MyNode"
    Selects the first "MyNode" node on the TreeView object.


  • T, WINDOW, TreeView, SELECTTEXTNODE, "MyNode", 3
    Selects the 3rd duplicate "MyNode" node on the TreeView object.


  • T, WINDOW, TreeView, SELECTTEXTNODE, "MyNode", "Index=3"
    Selects the 3rd duplicate "MyNode" node on the TreeView object.


[How To Read This Reference]

TestComplete TreeViewFunctions::SelectTextNodeSpecial
TC:NETFLX

Holds down either Ctrl or Shift while making an item selection with emulating either a Left or Right mouse click.

This keyword can be used to select multiple items.



Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to select.

    TextValue is the case-sensitive text of the node to select.

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



  3. SpecialKey
    The special key command used in the row selection. For now, only Control and Shift are supported.


  4. MouseClick
    The type of mouse click needed. For now, only Left and Right are supported.


Examples:
  • T, WINDOW, ATreeView, SelectTextNodeSpecial, "Parent", , Shift, Left
    Make mouse-left-click on the first node with the text "Parent" exactly matched, in the same time the key 'Shift' is pressed down.


  • T, WINDOW, ATreeView, SelectTextNodeSpecial, "Parent", , Control, Left
    Make mouse-left-click on the first node with the text "Parent" exactly matched, in the same time the key 'Ctrl' is pressed down.


[How To Read This Reference]

TestComplete TreeViewFunctions::SelectUnverifiedTextNode
TC:NET

Action to (almost) blindly click a text node.

No attempt is made to verify that the node exists prior to the selection. No attempt to verify the node has been properly selected after the selection.

It should be noted that a click requires the full hierarchical path to the node to be selected. Parent child branches are delimited with '->' as in:
Parent->branch->leaf

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.


NOTE:
SE2 : Implementation verifies the existence of the node, does NOT verify if it is selected.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of the node to be clicked

    TextValue is the case-sensitive text of the node to be clicked

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
  • T, WINDOW, TreeView, SelectUnverifiedTextNode, "MyParent->MyBranch->MyNode"
    Single click the first "MyNode" node on the TreeView object.


  • T, WINDOW, TreeView, SelectUnverifiedTextNode, "MyParent->MyBranch->MyNode", "3"
    Single click the 3rd duplicate "MyNode" node on the TreeView object.


  • T, WINDOW, TreeView, SelectUnverifiedTextNode, "MyParent->MyBranch->MyNode", "Index=3"
    Single click the 3rd duplicate "MyNode" node on the TreeView object.


[How To Read This Reference]

TestComplete TreeViewFunctions::SelectUnverifiedTextNodeRightClick (deprecated for: RightClickUnverifiedTextNode)
TC:NET

Skips many pre- and post-verification checks for right-clicks. Deprecated. Use RightClick instead.

We have also made it possible to attempt to select the Nth duplicate item with the optional MatchIndex parameter for those trees which we can properly process.

Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of the node to be clicked

    TextValue is the case-sensitive text of the node to be clicked

  2. [ MatchIndex = ]
    Optional index of the Nth duplicate item to match.

    Allows us to match duplicate item N in a list containing duplicate entries. For example, match the 2nd (or specified Nth) item whose text matches the provided text value.

    The value of the parameter can have 2 forms:

    • A numeric value. Ex: "3"
    • Index prefixed value. Ex: "Index=3"

    If the field parameter data does not match one of these two forms then the data is ignored and the default(first match) is used.



Examples:
  • T, WINDOW, TreeView, SelectUnverifiedTextNodeRightClick, "MyParent->MyBranch->MyNode"
    Single right-click the first "MyNode" node on the TreeView object.


  • T, WINDOW, TreeView, SelectUnverifiedTextNodeRightClick, "MyParent->MyBranch->MyNode", "3"
    Single right-click the 3rd duplicate "MyNode" node on the TreeView object.


[How To Read This Reference]

TestComplete TreeViewFunctions::SetTreeContainsNode
TC:NETFLX

Sets a user-defined variable with the result of whether a tree contains the provided node.

The search of the path to the node is expected to be a case-sensitive exact match of each node. Use 'SetTreeContainsPartialMatch' if you wish to specify case-insensitive substring matches for tree nodes.



Fields: [ ]=Optional with Default Value
  1. Node
    The name of the node to verify.

    The search of the path to the node is expected to be a case-sensitive exact match of each node. Use 'SetTreeContainsPartialMatch' if you wish to specify case-insensitive substring matches for tree nodes.
    RJ Implementation:TextValue must be given as full path with separator "->". Example: "Parent->Child"


  2. ResultVar
    The name of the variable which gets assigned the result.

    The value of 'TRUE' indicates the node was found in the tree, and 'FALSE' indicates that the node was not found in the tree.

Examples:
  • T, Browser, aTreeView, SetTreeContainsNode, "Parent Bank->Branch Banking and Trust", isFound
    Variable isFound will be set to 'TRUE' if the node 'Parent Bank->Branch Banking and Trust' is found in aTreeView. If not found, isFound will be set to 'FALSE'.


[How To Read This Reference]

TestComplete TreeViewFunctions::VerifyNodeUnselected
TC:NET

Action to verify a particular text node is NOT selected.


Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to be verified NOT selected

    TextValue is the case-sensitive text of the node to be verified NOT selected
    RJ Implementation:TextValue must be given as full path with separator "->". Example: "Parent->Child"


Examples:
  • T, WINDOW, TreeView, VERIFYNODEUNSELECTED, "MyNode"
    This action verifies the "MyNode" node on the TreeView object is NOT selected


[How To Read This Reference]

TestComplete TreeViewFunctions::VerifySelectedNode
TC:NET

Action to verify a particular text node is selected.


Fields: [ ]=Optional with Default Value
  1. TextValue
    Case-sensitive text of node to be verified selected

    TextValue is the case-sensitive text of the node to be verified selected
    RJ Implementation:TextValue must be given as full path with separator "->". Example: "Parent->Child"


Examples:
  • T, WINDOW, TreeView, VERIFYSELECTEDNODE, "MyNode"
    This action verifies the "MyNode" node on the TreeView object is selected


[How To Read This Reference]

TestComplete TreeViewFunctions::VerifyTreeContainsNode
TC:NET

Verify that a tree contains the provided node.

The search of the path to the node is expected to be a case-sensitive exact match of each node. Use 'VerifyTreeContainsPartialMatch' if you wish to specify case-insensitive substring matches for tree nodes.



Fields: [ ]=Optional with Default Value
  1. Node
    The name of the node to verify.

    The search of the path to the node is expected to be a case-sensitive exact match of each node. Use 'VerifyTreeContainsPartialMatch' if you wish to specify case-insensitive substring matches for tree nodes.

Examples:
  • T, Browser, aTreeView, VerifyTreeContainsNode, "Parent Bank->Branch Banking and Trust"
    Verify the node 'Parent Bank->Branch Banking and Trust' is found in aTreeView.


[How To Read This Reference]

TestComplete TreeViewFunctions::VerifyTreeContainsPartialMatch
TC:NET

Verify that a tree contains the provided node according to a partial match of the node's text value.

The search of the path to the node is expected to be a case-insensitive substring match of each node. Use 'VerifyTreeContainsNode' if you wish to specify case-sensitive substring matches for tree nodes.



Fields: [ ]=Optional with Default Value
  1. Node
    The name of the node to verify.

    The search of the path to the node is expected to be a case-insensitive substring match of each node. Use 'VerifyTreeContainsNode' if you wish to specify case-sensitive substring matches for tree nodes.

Examples:
  • T, Browser, aTreeView, VerifyTreeContainsNode, "parent->branch"
    Verify that a child node of 'parent' containing 'branch' is found in aTreeView.

    Thus, this could be a match for 'Parent Bank->Branch Banking and Trust'.

[How To Read This Reference]