Forum Discussion

zwergnaeschen's avatar
zwergnaeschen
New Contributor
2 months ago

Process "crashed" and test fails when closing the application in test

Hi all,

We use TestComplete 15 to perform regression testing on our Delphi desktop application. We have a simple test:

  • open the application
  • short wait follows
  • close the application

Testcomplete will fail the test stating the "TestApp.exe" process crashed and test execution is interrupted.

Closing the application via X or through the 'Main Menu - Exit' results in the same error. The Sys.WaitProcess method also didn't help. We have also attempted to close it using the .Close() method.
Maybe I'm placing the Sys.WaitProcess method in the wrong spot. I would be very grateful for a code snippet (JavaScript) and any help.

thx.

2 Replies