Contributions
- 2.8KViews0likes0Comments
- 2.8KViews0likes0Comments
- 2.8KViews0likes0Comments
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?3.2KViews0likes8CommentsRerun keyword test in OnLogError script
Hello, How can I rerun current test, if I receive a specific error in log? I created event handler on Log error and it has following code, but it doesn't work: procedure GeneralEvents_OnLogError(Sender; LogParams); var TestItems2: OleVariant; begin if LogParams.MessageText = 'Unable to terminate' then begin TestItems2:= Project.TestItems.Current.Name; KeywordTests.TestItems2.Run(); end; end;Solved1.9KViews0likes5Comments