Kateryna
10 years agoContributor
Timer doesn't work after starting keyword test from the script
Hello,
I have script that starts specified keyword test using KeywordTests.MyTest.Run() method.
In this keyword test I run script where I start Timer like this:
Utils.Timers.Cear;
Utils.Timers.Add(65000,'TestSetUp.TimerRoutine', true);
That runs procedure in the same script test:
procedure TimerRoutine;
begin
Log.Error('Test stopped on timer');
Runner.Stop(true);
end;
When I run my keyword test by itself - everything works well and I receive message in log. Bug if I start it from the script - Timer doesn't work and there is no message in the log.
Anyone have any ideas?
I have script that starts specified keyword test using KeywordTests.MyTest.Run() method.
In this keyword test I run script where I start Timer like this:
Utils.Timers.Cear;
Utils.Timers.Add(65000,'TestSetUp.TimerRoutine', true);
That runs procedure in the same script test:
procedure TimerRoutine;
begin
Log.Error('Test stopped on timer');
Runner.Stop(true);
end;
When I run my keyword test by itself - everything works well and I receive message in log. Bug if I start it from the script - Timer doesn't work and there is no message in the log.
Anyone have any ideas?