Forum Discussion

hencyr's avatar
hencyr
Contributor
15 years ago

errors on two different machines

Hello,

I have got an issue with testComplete.

I am testing an application on two different machines (Windows server 2003 32 bit )

I am using the same testComplete script (C# script)

The application is installed on the two machine, but when the test fails on one of the machine,

it seems that one of the controls name is not recognized on that machine and I don't know why?

Is there any problem with the name mapping ?

Does anybody have an idea about this problem?

Thanks.

1 Reply

  • Hi Cyril,


    To help us investigate the problem, please follow the steps below:


    1. Insert the following routine call in your test before retrieving the problematic object (change the process name):


    LogAppStructure(Sys.Process("MyProcessName"))


    Here is the LogAppStructure routine code:




    function LogAppStructure(obj)

    {

      var count, i, Str;

      var params = new Array();

      params.push("WndClass");

      params.push("WndCaption");

      params.push("Index");

      params.push("VisibleOnScreen");

      params.push("Exists");

      params.push("Visible");

      params.push("FullName");

      params.push("ClrFullClassName");

      Str = "";

      for (var i = 0; i < params.length; i++) {

        if (IsSupported(obj, params))

          Str += params + " = " + VarToStr(eval("obj." + params)) + "\r\n";

      }  

      Log.AppendFolder(obj.Name, Str);

      for (var i = 0; i < obj.ChildCount; i++) {

        LogAppStructure(obj.Child(i));

      }

      Log.PopLogFolder();

    }


    2. Execute your test and reproduce the "Object not found" problem. The LogAppStructure function will post the entire structure of the tested application to the test log, and you will be able to see how objects are recognized right before the problem occurs.

    3. If you fail to find the cause of the problem by using the test log, zip your entire TestComplete project suite folder along with the log of the test execution and send me the archive via our Contact Support form (http://www.automatedqa.com/support/message). Make sure that messages in your log correspond to correct actions in the latest version of your test.