Forum Discussion

mdudley's avatar
11 years ago

TC 10.0 performance issue when using FindChild to get object proerties

I have scripts that were written in TC9 .1 for testing an application developed using TFS2010. The development of the application has moved to TFS2013 so we upgraded to TC10.0. We are seeing a large performance issue when using the FindChild method call. It seems to take 2 to 3x the time we saw with TC9.1 and TFS 2010???

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor
    I believe the changes in TC10 that "possibly" affected your performance were changes to make the refresh parameter (defaulted to true) actually work. So the refresh of the FindChild, Find, FindAll methods could be the performance hit you are seeing. More than likely you are going to want the refresh working vs. having it work faster and possibly miss objects , properties, etc. What I would suggest doing is narrowing down your FindChild search criteria by specifying a process, form, and/or setting the number of child objects to be searched(using the Depth parameter) to a lower number. If you absolutely want it to work like previous versions try specifying no refresh like so:



    TestObj.FindChild(PropNamesPropValuesDepthfalse)

                                                      ^

                                                      ^

                                                      ^

                                                      ^