Hi all,
I'm working on a program that tests the API of another program, and then assigns a pass or fail grade to each test. Because there are a large number of tests I have most of the work occurring on a separate thread from the main form, and use a delegate to update a treeview on the main form. The problem I'm having is that I wish to add these nodes one at a time, but if I do so I get duplicates of the root node. Ie:
TestGroup1
-Test1
TestGroup1
-Test2
TestGroup2
-Test1
etc
Can anybody help me with some idea as to how to test that the parent node has already been created and if so then add the child node to that node?
I'm working on a program that tests the API of another program, and then assigns a pass or fail grade to each test. Because there are a large number of tests I have most of the work occurring on a separate thread from the main form, and use a delegate to update a treeview on the main form. The problem I'm having is that I wish to add these nodes one at a time, but if I do so I get duplicates of the root node. Ie:
TestGroup1
-Test1
TestGroup1
-Test2
TestGroup2
-Test1
etc
Can anybody help me with some idea as to how to test that the parent node has already been created and if so then add the child node to that node?