Click or drag to resize

Log Class

SIC Test Log Helper. Can a test case protocol write to the Debug/Output window and to a file.
Inheritance Hierarchy
SystemObject
  SIC.Test.HelperLog

Namespace:  SIC.Test.Helper
Assembly:  SIC.Test.Helper (in SIC.Test.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public class Log

The Log type exposes the following members.

Constructors
  NameDescription
Public methodLog
Constructor with parameter. Create Protocol object (filename: result directory + test name + time stamp + .txt)
Top
Properties
  NameDescription
Public propertyGetTimeStamp
Gives today date and time as formatted yyymmddhhmmss
Public propertyName
Test name (compose: Test + test name + on + time stamp (example: Test: TestNumberDivide on 20170616144141)
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Private methodGetValue
Gives value from object data field
Public methodCode exampleIsTrue(Boolean, String, String, String)
Check to be condition has true.
Public methodCode exampleIsTrue(Exception, Object, String, String)
Exception handling
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodResult
Write test result (IsTrue).
Public methodTestEnd
Test end (stop watch)
Public methodTestStart
Test start (stop watch)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodWrite
Writes object Text and clean up text.
Public methodWrite(String)
Text writes to Debug window and/or to protocol file.
Public methodWrite(StringBuilder)
Call method Write(String)
Public methodWrite(String, String)
Write text and value. Example: Value A: 5
Public methodCode exampleWrite(Object, String, String)
Writes two fields from a data object (a label field and a value field)
Public methodWriteT(ListT)
Writes a one dimensional list
Public methodCode exampleWriteT(ListT, String, String)
Writes a list of data items
Public methodWriteTitle
Write a new line and a title in uppercase
Top
Fields
  NameDescription
Public fieldText
Text object for method Write without parameter
Top
Extension Methods
  NameDescription
Public Extension MethodGetObjectToBytes
Convert an object to byte array
(Defined by Extensions.)
Public Extension MethodIsNumber
Check is value a number
(Defined by Convert.)
Public Extension MethodToHTMLDisplay(DataGrid, TempDataDictionary)Overloaded. (Defined by Extensions.)
Public Extension MethodCode exampleToHTMLDisplay(String, DataGridDataTypes, String, String, String, String, TempDataDictionary)Overloaded.
Gives HTML code for display.
(Defined by Extensions.)
Public Extension MethodToHTMLEditor(DataGrid, TempDataDictionary, String)Overloaded. (Defined by Extensions.)
Public Extension MethodToHTMLEditor(String, DataGridDataTypes, String, String, String, TempDataDictionary, Boolean, String, DataPlacements, String, String)Overloaded.
Gives HTML code for Input field
(Defined by Extensions.)
Public Extension MethodCode exampleToHTMLHidden(String)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodToHTMLHidden(DataGrid)Overloaded.
Gives HTML code for hidden data
(Defined by Extensions.)
Public Extension MethodXMLWrite
Gives XML string from data item
(Defined by Helper.)
Top
Remarks
Application see documentation SOWI Framework - Testing

Note about test stop watch: does not logs between method TestStart and TestEnd because it distorts the test duration.

See Also