I propose to create test cases based on following ideas:
- can the tree view be collapsed/expanded?
- are all required items present in the tree view?
- do the detail columns (if any) to the right contain all correct detail data
- are the items in the treeview always the same? Does the content vary depending on actions earlier performed?
- can multiple items be selected?
Basically I would focus on
1) the behaviour of the tree view (not taking into account the data)
2) the correctness of data
3) what's happening after having selected an item. What should the application do next with the selected item?
Michael, at least you stopped before the "hug tree" step...
It obviously depends on the tree you are testing, but I usually find bugs on my trees on places like:
- Drag&Drop / Copy-Paste operations of branches
- Working with deep hierarchies
- Renaming branches
Again, it would help if you'd provide more details, but these things simply jumped to my mind when I ready your question.
1> Delete a Child-item
2> Delete an Parent-Item
3> Rename a Child-item
4> Rename a Parent-Item
5> click + and - sign to verify whether the tree collapses and expands.
6> Try to add new item or sub-item with same name