Forum Discussion

tmahender12's avatar
tmahender12
Frequent Contributor
10 years ago

TimeOut Event Handling

Hi, I have created timeOut event handle and executed the Project test item, the event is triggered only first time error occurs, if the error occurs subsequently the TimeOut Event is not triggered

 

can u please help how to make the event handle repeatedly

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    not sure to understood everything, but :

    - create a project integer variable

    - set it to zero

    - when the event is triggered, increase it

    - use a condition to run a code only for the value = 1 of this variable

    • tmahender12's avatar
      tmahender12
      Frequent Contributor

      i could not get you, my question was how to execute event handler when multiple errors occur, the event handler gets executed only 1 time.

       

      also can u write me the code what  you are thinking

      • tmahender12's avatar
        tmahender12
        Frequent Contributor

        attached screenshot where iam setting TimeOut as 1 min, and executing the project test item by right click->Run Focused Item.

        the Event Handler i wrote is in AssetsError. the event handler is executing only once. during whole project test run. if  same unexpected error occurs the event handler is not executed