Log support for the framework and test cases.
Inheritance Hierarchy
ArtOfTest.WebAii.CoreLog
Namespace: ArtOfTest.WebAii.Core
Assembly: ArtOfTest.WebAii (in ArtOfTest.WebAii.dll) Version: 2018.1.116.0 (2018.1.116.0)
Syntax
The Log type exposes the following members.
Properties
Name | Description | |
---|---|---|
FileName |
Full file name of the log file. Empty if Settings.CreateLogFile = false
| |
LogLocation |
The log location on disk the log files are stored. Empty if Settings.CreateLogFile = false.
| |
Text |
Log file contents. This is a snap shot the Log file contents runtime.
|
Methods
Name | Description | |
---|---|---|
CaptureBrowser(Browser) |
Captures a visual snap shot of a specified browser instance and logs it to the log location.
Default path is C:\WebAiiLog, supported only if Settings.CreateLogFile is set to true
and the Manager is initialized with test settings (add test settings to the test project).
Not available in quick execution (no settings file).
| |
CaptureBrowser(Browser, String) |
Captures a visual snap shot of a specified browser instance and logs it to the log location.
Default path is C:\WebAiiLog, supported only if Settings.CreateLogFile is set to true
and the Manager is initialized with test settings (add test settings to the test project).
Not available in quick execution (no settings file).
| |
CaptureBrowser(Browser, String, Boolean) |
Captures a visual snap shot of a specified browser instance and logs it to the log location.
Default path is C:\WebAiiLog, supported only if Settings.CreateLogFile is set to true
and the Manager is initialized with test settings (add test settings to the test project).
Not available in quick execution (no settings file).
| |
CaptureDesktop |
Captures the entire desktop to the log location.
Default path is C:\WebAiiLog, supported only if Settings.CreateLogFile is set to true
and the Manager is initialized with test settings (add test settings to the test project).
Not available in quick execution (no settings file).
| |
CaptureDesktop(String) |
Captures the entire desktop to the log location with custom prefix to the file name.
Default path is C:\WebAiiLog, supported only if Settings.CreateLogFile is set to true
and the Manager is initialized with test settings (add test settings to the test project).
Not available in quick execution (no settings file).
| |
CaptureDesktop(String, Boolean) |
Captures the entire desktop to the log location with custom prefix to the file name.
Default path is C:\WebAiiLog, supported only if Settings.CreateLogFile is set to true
and the Manager is initialized with test settings (add test settings to the test project).
Not available in quick execution (no settings file).
| |
CaptureWindow(WpfWindow, String) |
Captures a visual snap shot of a specified wpf window instance.
Default path is C:\WebAiiLog, supported only if Settings.CreateLogFile is set to true
and the Manager is initialized with test settings (add test settings to the test project).
Not available in quick execution (no settings file).
| |
CaptureWindow(WpfWindow, String, Boolean) | ||
Dispose |
Dispose of this object.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize |
Destructor
(Overrides ObjectFinalize.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
WriteLine(String) |
Write a line to the log file.
| |
WriteLine(LogType, String) |
Log information to the event log.
|
Events
Name | Description | |
---|---|---|
LogWrite |
This event is invoked everytime a Log.WriteLine is invoked. External frameworks
can attach to this event to capture logs from this framework to help unify their logging.
|
See Also