Forum Discussion

automation_ph's avatar
automation_ph
Occasional Contributor
12 months ago
Solved

Which object search strategy is better?

Which is better - Depth-first or Breadth-first?

 

I already scanned through the documentation (link below) and already compared both by running a simple script, but I don't see much time difference.

https://support.smartbear.com/testcomplete/docs/working-with/managing-projects/properties/playback.html 

Any thoughts on which would be better on certain occasions?

  • Best to leave it as default.

     

    If you were to use the Find method; starting from the top most node and searching for a node at the bottom (height tree is 40), that's when you'll see differences. See Binary search tree

1 Reply

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Best to leave it as default.

     

    If you were to use the Find method; starting from the top most node and searching for a node at the bottom (height tree is 40), that's when you'll see differences. See Binary search tree