Forum Discussion

farhanahmed's avatar
farhanahmed
Contributor
14 years ago

Colapsing all nodes in a tree view.

hi

I have a question ,How can we collapse all nodes in a tree view. i am doing script based testing by using Test Complete with VBScript.



and i have one more question in winrunner we use list_check_info to check the properties of the list view is there any function in Test Complete to check the properties of the list view as in winrunner??



Regards

1 Reply

  • Hi,



    How can we collapse all nodes in a tree view. i am doing script based testing by using Test Complete with VBScript.
    The answer depends on the tree view control in question, and it's difficult to answer specifically without knowing what exactly control, class etc you're talking about.



    Some tree view controls have built-in native methods for collapsing all items. For example, standard .NET TreeView has the CollapseAll method for this purpose. If your tree view has a similar method, then you can simply call this method in your test, e.g.:



    Some tree view contols also have keyboard shortcuts for this action. For example, tree views in the TestComplete IDE can be collapsed using Ctrl+Alt+C. If your tree view has a similar shortcut, you can simulate this shortcut using the Keys method:





    If you told us your application type (.NET/WPF/Java/Delphi/etc) and tree view class name, we could give a more definite answer.





    in winrunner we use list_check_info to check the properties of the list view is there any function in Test Complete to check the properties of the list view as in winrunner??
    In TestComplete, you can use property checkpoints and object checkpoints for this purpose.