Sub ErrCount()
' ...
' Obtains the total number of errors
' posted to the current test log
ErrCount = Log.ErrCount
' Checks whether there are some errors
If ErrCount > 0 Then
Log.Message("There is(are) " & ErrCount & " error(s) in the test log.")
Else
Log.Message("There are no errors in the test log.")
End If
End Sub
' ...
' Obtains the total number of errors
' posted to the current test log
ErrCount = Log.ErrCount
' Checks whether there are some errors
If ErrCount > 0 Then
Log.Message("There is(are) " & ErrCount & " error(s) in the test log.")
Else
Log.Message("There are no errors in the test log.")
End If
End Sub
No comments:
Post a Comment