Forum Discussion

SaravanaKumar_N's avatar
SaravanaKumar_N
Contributor
12 years ago

Test Complete: Child numbers are increased Massively

Hi Guys,



Greetings!!!



We are currently automating an Web Application. It has some panels and TC recognizes it. After logging into application (first action) when we check for the ChildCount of the login page, it shows less than 50. But after performing some operations like opening existing dialogs/drop down options and closing it, it shows the child counts in few hundreds/thousands.



As per my observations is like TC recognizes a Panel when opening a dialog/clicking on certain drop-down. But upon closing that dialog/drop-down options corresponding panel is not removed from the object tree, instead it stays in the tree as dummy object.



Since we use FindChild function to get the exact Panel that opened in Run Time, TC is taking much time to find that Child if there are much Panels. So we are facing the performance issue with the automation project.



I have attached screenshots (ChildCountAt_Login.jpg and ChildCountAfter_SomeOperations.jpg) of the Object Tree.

Please have a look on this and advice me on the same.



Thanks,

Saravana.

4 Replies

  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Saravana,



    Could it be that those Panels are not destroyed but are kept in memory and just are not visible (and may be reused in subsequent operations)? Something like memory leak or/and objects re-use?

    Is the number of child objects decreases after you refresh data in the Object Browser?
  • Alexei Karas,



    Thanks for the reply.

    Yes, the Panels are not destroyed and only few are reused. Also those reused objects are mostly the existing ones that were availalbe on First action (login). But all others that come into use on doing subsequent operations, just stays in and it is not cleared even on Refreshing the Object tree.

    Only upon logging out from the application those panels are cleared.



    Regards,

    ~ Saravana.
  • AlexKaras's avatar
    AlexKaras
    Icon for Champion Level 1 rankChampion Level 1
    Hi Saravana,



    I did not mean that Panels are not destroyed in the Object Browser, but that they are not destroyed in the code of the tested web page. According to your answer, it looks like to be the case and looks like a problem with your tested application. I think that it may be a good idea to talk with your developers and ask for their comments.
  • Alexei Karas,

    Thanks a lot for your suggesttion. Yes, even that may be a cause for this issue, I will check with the developers and will reply back.



    Regards.

    Saravana.