JTreeTester.actionSelectPath

maggie7
2009-02-07
2013-05-20
  • maggie7
    maggie7
    2009-02-07

    Hi there,

       In one of my testcase, I need to select several objects from a JTree in a JDialog. I have used JTreeTester.actionSelectPath to do that. It works fine for the first object to be selected, but failed for the second object, always complainning tree path cannot be found, but I know that the path I am giving is correct. If I add some delay between these two selects, it passed. This makes me wonder if this is related to JTree rendering in scrolling JTree to find the tree node. Which property can we configure here to make it work consistently? Thanks.

       -min