Forum Discussion

NK00010010's avatar
NK00010010
Occasional Contributor
11 years ago

Error line in test log doesn't redirect me to the line of error source when I double-click on it.

Hi all. Help me please with:

 

From the TC tutorial:

Searching for the Cause of an Error:

  • To view the test command that was running when the error occurred, double-click the error message in the log. TestComplete will open the test editor and highlight the test command. Explore the test to understand what it performed when the error occurred.

But in my case when I double-click on error line I get redirect to the line: Log.Error("Exception", exception.description)

of my main routine:

 

function Main()
{
try
{

}
catch(exception)
{
Log.Error("Exception", exception.description);
}
}

 

What I'm doing wrong? (Test Complete 10.50.2702.7)

2 Replies

  • TestComplete shows the command that posted error message to the test execution log.

    I can recommend you to temporarily remove/comment try-catch statement, then run your test and if the error will occur again then TestComplete will show you the run-time error message and the corresponding script line.

    • jmcpeek's avatar
      jmcpeek
      Contributor

      With the error row selected in your log file, go to the Call Stack tab at the bottom. It'll give you the sequence of methods called prior to the error. This is helpful when the error occurs in a generic function. The top row will be the same location you get when you double click the error row in the log, the next row in the Call Stack will be the method that called the method that errored, and so on.