Forum Discussion
Ryan_Moran
9 years agoValued Contributor
So I thought you could maybe evaluate the message in the log...and you can get to that by:
Project.Logs.LogItem(Project.Logs.LogItemsCount - 1)
And then by digging deep into the log like...
Project.Logs.LogItem(Project.Logs.LogItemsCount - 1).Child(0).Child(0).Data(0).Rows(0).ChildRow(0).ChildRow(0).ValueByName("Message");
Spoiler
Or by using a recursive function to iterate all of the child objects of the log and grab the last message...
BUT the problem is the log message "Script execution was interrupted." is not written until after the OnStopTest event fires.
So I think it's probably easier to figure out where your script stops "Naturally"...
Spoiler
either it's stopping by finishing scripts, or on error
and then have it call a different function to terminate the processes instead of terminating them from the OnStopTest event.
Related Content
- 10 months ago
- 10 years ago
- 3 years ago
Recent Discussions
- 17 hours ago
- 7 days ago
- 10 days ago