Forum Discussion
Hi ,
I tried to reload option but no luck...
Here is my XML and JS file...
function LogError(Message, Comments) {
var ImgErr
{
ImgErr
= Sys.Desktop.Picture()
Log.Error(Message, Comments, 300,
"", ImgErr)
ImgErr = null
}
function LogWarning(Message, Comments) {
var ImgWar
ImgWar= Sys.Desktop.Picture()
Log.Warning(Message, Comments, 300,
"", ImgWar)
ImgWar= null
}
function LogException(Message,
exceptionobj) {
Log.Error(Message, exceptionobj)
}
function RGB(r, g, b) {
return r | (g << 8) | (b << 16);
}
Description.XML
<?xml
version="1.0" encoding="UTF-8"?>
<ScriptExtensionGroup
Name = "TC Script Extensions">
<Category Name="Runtime
Objects">
<ScriptExtension Name = "Logger
Object" Author = " QA" Version = "1.0 Beta" HomePage =
"www.qa.com">
<Script Name =
"ResultLog.js" >
<RuntimeObject Name =
"TestResultLogger">
<Method
Name = "LogError" Routine = "LogError">Creates a Test
Result log for Error Reporting.</Method>
<Method
Name = "LogWarning" Routine = "LogWarning">Creates a
Test Result log for Error Reporting.</Method>
<Method
Name = "LogException" Routine = "LogException">Creates a
Test Result log for Error Reporting.</Method>
<Description>
Provides access to the QA custom
Result Logging features.
</Description>
</RuntimeObject>
</Script>
<Description>
Provides access to the QA custom Result
Logging features.
</Description>
</ScriptExtension>
</Category>
</ScriptExtensionGroup>
Related Content
- 10 years ago
- 2 years ago
Recent Discussions
- 19 hours ago