Message - Unable to run the tested application.

Applies to TestComplete 15.73, last modified on March 04, 2025

The Tested Application project item allows you to launch your tested applications directly from TestComplete and your tests. However, if TestComplete is unable to run a tested application for some reason, it displays this message informing you about the problem. This topic describes possible causes of the problem and its solutions.

Common Problems and Solutions

Application is not found

Make sure that the application’s executable file exists on the disk and that its path is spelled correctly. If the application resides in a network share, make sure that this location is available.

If the test project is shared among multiple computers, specify the application path using variables or similar methods, so that the path is computer-independent. For more information, see Avoiding Computer-Specific Settings.

Application must be run as an Administrator

The problem can occur if –

  • User Account Control (UAC) is enabled,

  • and the tested application requires administrator privileges,

  • and TestComplete is running without administrator privileges.

To resolve the problem, you must run TestComplete with administrator privileges as explained in Using TestComplete With Administrator Privileges. In this case, TestComplete will launch your tested application with administrator privileges as well.

The specified file is not an executable file

(Simple, RunAs and Debug modes only.) TestedApps require an executable file to run -- .exe, .com, .bat or .cmd. This is different from the Windows command prompt, where you can type an arbitrary file name (text file, audio file, Control Panel applet, and so on) and Windows will open that file in its associated application.

To open an arbitrary file by using TestedApps, add its associated application as a TestedApp and specify the file name as a command-line argument. For example, to open a text file in Notepad:

Application: notepad.exe

Command-line parameters: C:\MyFile.txt

To run Java, AIR and ClickOnce applications, use the corresponding type of tested applications.

To open web pages, use the Run Browser keyword test operation or the Browsers.Item(...).Run(url) scripting method.

Invalid command-line arguments

Make sure that the specified command-line arguments are valid, listed in the correct order and are not duplicated. Try running your tested application with these arguments from the Windows command prompt and see if it works.

For information about the command-line syntax of your tested application, please refer to its documentation.

Working folder does not exist or is inaccessible

(Simple, RunAs and Debug modes only.) Make sure the Working folder exists, is spelled correctly, and you can access it from Windows Explorer.

Note: If the Working folder is not set, TestComplete will use the folder where the application’s executable is located.
Not enough permissions

The user account (either the one that TestComplete is running under or the one specified in the RunAs mode parameters) does not have enough permissions to launch the specified application. For example, this account may not have access to the application’s folder. To resolve the problem, ask your system administrator to grant that user account the necessary permissions.

Application was terminated unexpectedly during the startup

Check Windows Event Viewer or the application log for any errors and contact the application developers to troubleshoot the problem.

Note that you can trace application exceptions and capture process dumps with TestComplete. For more information, see Tracing Exceptions, Crashes and Freezes in Tested Applications.

Problems Specific to the RunAs Mode

When trying to run the tested application in RunAs mode (that is, under another user account), the problem can also occur in the following cases.

Missing or incorrect login, password or domain

Make sure you have specified all three values -- Login, Password and Domain. Letter case may be important.

This account must have a non-empty password. The RunAs mode does not support accounts with empty passwords.

If this is a local (non-domain) account, specify the computer name as the domain name.

Tip: To verify that the user account information is correct, try logging on to your computer using this account.
Secondary Logon service is not running or disabled

The Secondary Logon service is required to run applications under another user account. Make sure this service is enabled and running:

  • Open the Control Panel | Administrative Tools | Services applet.

  • Locate the Secondary Logon service in the list.

  • Right-click the service and select Properties from the context menu.

  • In the Properties dialog, set Startup type to Automatic and click OK.

  • Right-click the service and select Start or Restart from the context menu.

Problems Specific to ClickOnce Applications

The specified application deployment manifest (.application) or shortcut (.appref-ms) is not found

Make sure that the manifest or shortcut exists and that its path is spelled correctly. If the manifest resides in a network share, make sure that this location is available.

If you launch the application via an .appref-ms shortcut, make sure that its path is valid for the current computer. The Start menu and desktop shortcut paths include components specific to the user and the Windows version, so if you copied the test project from another computer the shortcut path may become invalid. To avoid the problem, copy the shortcut to a common folder location, or launch the application using a deployment manifest instead. See Avoiding Computer-Specific Settings.

Application takes too long to start

Increase the Wait timeout value specified for the application in the TestedApps editor.

No Internet connection

The specified ClickOnce application is launched from an URL, but the computer has no Internet connection. To resolve the problem, make sure that the computer has a working Internet connection. Check whether the network cable is connected to the computer and whether you can open web sites (for example, https://smartbear.com).

See Also

About Tested Applications
Running Tested Applications
Run Modes and Parameters
Testing Applications Running Under Another User Account
Avoiding Computer-Specific Settings

Highlight search results