Forum Discussion
jsc
14 years agoRegular Contributor
right now my solution is this:
function GeneralEvents_OnLogError(Sender, LogParams)
{
var MyIssue = KeywordTests.HandlerTest.Variables.issueID;
if (MyIssue == -1)
{
LogParams.Str = "New bug: the region checkpoint failed.";
LogParams.Color = clRed;
LogParams.FontColor = clWhite;
}
else
{
LogParams.Str = "Known bug (issueID = " + MyIssue + "): the region checkpoint failed.";
}
KeywordTests.HandlerTest.Variables.issueID = "-1";
}
In front of checkpoints that correspond to known bugs I have to set a variable manually to a value corresponding to the issue ID.
This works quite fine for me.
Is there any possibility to change the error-level of failed checkpoints via jscript to warning?
In the code above I was not able to do so.
function GeneralEvents_OnLogError(Sender, LogParams)
{
var MyIssue = KeywordTests.HandlerTest.Variables.issueID;
if (MyIssue == -1)
{
LogParams.Str = "New bug: the region checkpoint failed.";
LogParams.Color = clRed;
LogParams.FontColor = clWhite;
}
else
{
LogParams.Str = "Known bug (issueID = " + MyIssue + "): the region checkpoint failed.";
}
KeywordTests.HandlerTest.Variables.issueID = "-1";
}
In front of checkpoints that correspond to known bugs I have to set a variable manually to a value corresponding to the issue ID.
This works quite fine for me.
Is there any possibility to change the error-level of failed checkpoints via jscript to warning?
In the code above I was not able to do so.