Class: Logger

Logger

new Logger()

Source:

Members

<static> AddDebugLog

Creates a Debug Log message that states an actual value to the log output. This can help you identify which values are being found and returned in your script. All debug logs are appended to a log folder "CR Debug Logs". Having this in your script will create the append log for you.
Source:
Example
 CR.Logger.AddDebugLog("cell", foundCellVar)

<static> AddPrimaryLog

Adds the Primary Log you are trying to validate/show status of
Source:
Example
 CR.Logger.AddPrimaryLog("cell value", ActualCellValueVar)

<static> AddSecondaryLog

Adds the secondary Log you are trying to validate/show status of that confirms the primary log message. For example "Grid row This|That|TheOther exists under columns More|Values|Here."
Source:
Example
 CR.Logger.AddSecondaryLog("cell value", ActualCellValueVar, "reference")

<static> CreateDebugLog

This function is called internally if a debug log is created. It will output the debug logs to TC.
Source:

<static> Finalize

Creates Log Messages by objects found and stored. Call this method at the end before final Log.Message/Error
Source:
Example
 CR.Logger.Finalize

<static> Initialize

Initialize the Logger by setting your overall control. This is done within CR from the binding, so you do not have to use this method.
Source:

<static> SetAction

Sets the type of action/verification message
Source:
Example
 CR.Logger.SetAction("exists", "row", false)