Forum Discussion

lucieneven's avatar
lucieneven
Contributor
14 years ago

how to find line of error in Log Report

Hello,



I have a generic question about Log Report. Enclosed are two screenshots, one is information when clicking Memo, other is information when clicking Table. The thing is i can't find error was raised on which line of script. That helps me to debug the code.



btw, i run the script using testexecute. That's why i can't access to the script directly from there.



Please shed some light here, thanks,



Lucien


  • Hi Lucien,


    Since TestExecute does not allow modifying tests, you cannot access test commands or script code from test results that TestExecute displays in Internet Explorer.


    However, you can copy the project that you run with TestExecute to the machine where TestComplete is installed and open it with TestComplete. You will get access to the test results and can jump to test commands that posted messages to the log.

  • Hi Margaret,



    I understand that TestExecute only can execute the script, and it sounds reasonable if copy the project to the machine where TestComplete is installed.



    I just tried it on after opening this project and its report in the TestCompleteHowever, and i noticed that double click any error message won't bring me jump to the script. Unlike if i open a "local" project and its report and double click the message.



    As can be seen from enclosed 2011-12-09 9-26-43 AM.png, i tried it on in all the logs, it just doesn't work for me.



    Just for the information: this project has been copied from 1st machine where TestComplete is installed to the 2nd machine where TestExecute is installed. Nothing else has been done there unless TestExecute execute and noticed the running error. As said, now i need figure out why project can be run successfully on host machine instead of 2nd machine.



    Please take a look and advise, thanks!



    Lucien
  • Hi Lucien,


    You cannot jump to the script code if the computer where TestExecute is installed (where you run the test) does not have the script debugger installed. To solve the problem, install the script debugger on this computer and try running the test again. Then, open the project with TestComplete and try jumping to the script from the test log.


    As for the causes of the "Ambiguous Recognition of the Tested Object" problem, please read http://smartbear.com/support/viewarticle/18855/ in the online documentation.