Process "crashed" and test fails when closing the application in test
Hi all,
I recently migrated my Testcomplete 14 tests to 15 and am currently running Version: 15.49.6.7 x64.
We are using Testcomplete to regression test our desktop applications and have recently upgraded our desktop application to use Java 17.
The execution plan consists of several tests with the application called "Workbench". The way of working will most likely look familiar:
- open the "Workbench" application (to get a clean sheet)
- create or open a project
- execute the test
close the project that has just been tested - close the "Workbench" application
- next test
- open the "Workbench" application
- create or open a project
- execute the test
- close the project
- close the application
Now, when I do a full run,let's say the execution plan has four tests to run, the following happens:
Test 1 executes, the application is closed by Testcomplete and Test 2 executes, the application is closed , test 3 and 4 run but after issuing the final close "Workbench" command (after executing test 4), Testcomplete will fail the test stating the "Workbench.exe" process crashed and test execution is interrupted.
However, in my opinion, the process didn't "crash" but was terminated by Testcomplete on account of the execution plan (which it did 3 times succesfully with the same nametest "CloseApplication". There are built in delays in that test to ensure the process has fully completed, but that doesn't seem to help.
Any ideas?
If you have closed the application via the menu option File -> Close, the applications closes but the process remains. Then ideally you should have a Sys.WaitProcess Method that checks the process, before continuing with the remaining tests