Forum Discussion

googleid_111826's avatar
googleid_111826
Contributor
11 years ago

TC 10.30. Utils.Timers problem

After updating to TC 10 all timers in script start working incorrect. I got error message. See screenshot.



I used next code in TC 9 and it was OK:




Sub TestTimers




    'Take screenshots each second


    Set Timer1 = Utils.Timers.Add(1000, "Unit1.TakeScreenshotOnTimer", True) 



    'Stop timer after 10 screenshots


    Set Timer2 = Utils.Timers.Add(10000, "Unit1.KillTimers", True) 


     


    Log.Message "Playback is stopped"


        


End Sub


 


Function TakeScreenshotOnTimer


      Call Log.Message ("Taking screenshot...", , , , Sys.Desktop.ActiveWindow)


End Function    


 


Function KillTimers


      Call Utils.Timers.Clear


End Function 



Test Execute 10 start timer and can't stoped till the END OF ALL PROJECT TESTED!.



Anybody help me how can I taking pack of screenshots after spesify interval.



Also I've found mistake in Help. See screenshots.



Thanks, 

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)
    Hi Maxim,

     


    I've heard about a similar issue in TestComplete. I suggest that you contact our TestComplete Support team and describe the issue you face - they can provide you with the patch to fix the issue.