Forum Discussion

rwestbury's avatar
rwestbury
Contributor
11 years ago

'Search for a Mapped Object Took Too Much Time' Warning

Hello All,



With TestComplete 9.3 we are receiving the above warning message.



The warning is occurring because we have Extended Find objects that are deep enough from the parent that they take more than 3 seconds to find. The only way we have found to increase the timeout from 3 seconds is to increase the Auto-Wait timeout, however, for us this is not an option due to the design of our system. We need Auto-Wait to be set to 0. Is there another way to increase the timeout for the above warning?



If not, is there any way to turn off this warning? We are not worried about how long it takes to find our Extended Find objects. We're more concerned about not having these warnings in the log.



There should definitely be an option to turn off this warning if there isn't one somewhere already.



Thanks,



Robert.

4 Replies

  • You could filter the warning and stop it being logged.



    You need to write a function GeneralEvents_OnLogWarning(Sender, LogParams).
  • tritrieu's avatar
    tritrieu
    Occasional Visitor

    function GeneralEvents_OnLogWarning(Sender, LogParams)

    {

         warningType1 = "expects a different set of parameters. Please update the operation parameters.";

          warningType2 = "Searching for a mapped object took too much time.";

         if (aqString["Find"](LogParams["MessageText"], warningType1) != -1 || aqString["Find"](LogParams["MessageText"], warningType2) != -1)

               LogParams["Locked"] = true;

    }

     

    You can create a event OnLogWarning with function as above. Testcomplete will locked these message