Forum Discussion

sinis's avatar
sinis
Contributor
2 years ago
Solved

TCUnit Test TestLog

 I am using TCUnitTest and the result will be logged into TestComplete when an exception occurs in Visual Studio. But I need to add a comment when the testcase is passed. Is it possible. Now, ...
  • rraghvani's avatar
    2 years ago

    You could use Log.Enabled Property to output your required message if a test pass or fails - use that in conjunction with your variable i.

     

    Also, you should try and use Camel case, when defining your functions e.g. GenericFunctionToWrite() - also the function name needs to be meaningful.