ml
9 years agoContributor
OnStopTest & Sys.Shutdown on last Test Item
hello,
i need some help with scripting. i want that my local computer is shutting down when the last project item is finished. i got this so far (i have to name the last test in project items list - not really what i want - it differs which one is last).
procedure shutdown_OnStopTest(Sender);
begin
if (Project.TestItems.Current.Name = 'last_test') then
begin
Sys.Shutdown;
end;
end;