Forum Discussion

jdemmers's avatar
jdemmers
New Contributor
3 years ago

Orders example project. How to handle confirmation dialog for failed test.

Currently doing some test with the Orders example project. "C:\Users\Public\Documents\TestComplete 15 Samples\Desktop\Orders\C#\bin\Release\Orders.exe"   Tutorial works fine. Tutorial is for a Des...
  • jdemmers's avatar
    3 years ago

    Got it working by adding an event handler for the OnStop event.

    function GeneralEvents_OnStopTest(Sender)
    {
      if (Sys.WaitProcess("Orders", 2000).Exists)
      {
        Sys.Process("Orders").Terminate()
      }
    }

     

    If there is a better solution feel free to post it.