sinis
2 years agoContributor
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, we have the testlog like this. Whenever the test is passed, I need to log something as sub of TestCompleteUnitTests log. Is this possible?Or is it psossible to rename the log since it is created an ambiguity which testcase has passed and which has failed.
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.