Forum Discussion
CBleunven
13 years agoContributor
Hi to all,
I've delayed a bit this question for other priorities but I need now to come back on it.
Use of job was unsuccessful. I go on another direction with Runner and start a method asynchronously but it is not successful too with the following code:
What I observed is that script doesn't continue in the GeneralEvents_OnLogError method until the create issue is ended, and so the saved Log with the Issue tracking is not complete.
Is there another way to solve this problem, as it is better, I guess that the Log saved with the issue include the error ?
Thanks for help,
Christophe
I've delayed a bit this question for other priorities but I need now to come back on it.
Use of job was unsuccessful. I go on another direction with Runner and start a method asynchronously but it is not successful too with the following code:
function GeneralEvents_OnLogError(Sender, LogParams)
{
CallResultObj = Runner["CallObjectMethodAsync"](aToolToWriteLog, "createIssue", LogParams);
}
function createIssue(LogParams)
{
delay(10000);
var message = LogParams["Str"];
var priority = LogParams["Priority"] / 100;
var severity = "3 - Medium";
var buildNumber = "3";
var description = LogParams["StrEx"];
var logPath = "C:\\Temp\\Log.mht";
var t = Log["SaveResultsAs"](logPath,lsMHT);
var item = IssueTracking["TemplateN2"](message,priority,severity,buildNumber,description);
item["AttachFile"](logPath);
}
What I observed is that script doesn't continue in the GeneralEvents_OnLogError method until the create issue is ended, and so the saved Log with the Issue tracking is not complete.
Is there another way to solve this problem, as it is better, I guess that the Log saved with the issue include the error ?
Thanks for help,
Christophe
Related Content
- 2 years ago
- 5 years ago
Recent Discussions
- 4 days ago
- 4 days ago