"Application '...' couldn't be started. Starting application timed out after ..." (Win)

Last edited on

Possible Symptoms

1)

The application is being started with a call to the startApplication() function, but after a while Squish produces an error message like this in the IDE's Test Results view.

RuntimeError: startApplication() failed

2)

The application is being started implicitly (because the Settings view's Application Under Test (AUT) panel's Automatically Start the AUT checkbox is checked), but after a while Squish produces an error message like this in the IDE's Test Results view.

Application 'start_aut.bat' couldn't be started. Starting application timed out after 10s. Could not hook into the AUT. You may have to exit the AUT manually.

Possible Cause

The application is being started from a batch file (.bat). This is is supported in Squish for Windows, but prior to Squish 4.1, such batch files must be explicitly executed by the Windows shell (cmd.exe).

Resolution

See Using batch files as AUTs (Windows) .