0

I am trying to get the exception description in the test log but its not giving the description.

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

1 Answer 1

1

As you want to write the error details to Details tab of TestComplete log, you should call exception.message property to get the exception cause, or err.stack if you wish to see the whole call stack for easier debugging.

catch(exception){
    Log.Error("Exception", exception.message);
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.