Forum Discussion

mcp111's avatar
mcp111
Contributor
7 years ago

How to verify if an application closed using Testcomplete

In my application, if I press Cancel button it closes.

How to verify this in an automated way?

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3

    Hi Partha,

     

    Untested sample pseudo-code:

    oButtonCancel.Click();

    Delay(10000); // 10 seconds to let application to close

    if (Sys.WaitProcess('<TestedProcess>', 500).Exists)

      // process did not exit