About the Warning
TestComplete allows you to manage and run your tested applications directly from the TestComplete GUI and from your tests. It can also launch the tested applications automatically when you start a recording session. (See Running Tested Applications for details.)
In addition, TestComplete tracks the number of running application instances. If your tested application is already running and you are trying to run another instance of it, TestComplete informs you about the running application and does not start the instance. This is done to prevent situations when you record or perform test actions against multiple instances of an application and therefore get incorrect results.
For example, you may see this warning if you are recording a test in parts and have left the tested application open after the previous recording session. The warning may or may not indicate a problem, depending on whether the subsequent test you are recording is supposed to work with an already running application or with a newly started application.
Resolving the Warning
The way you resolve the warning depends on what you are currently doing and what you are trying to achieve.
-
If you are recording a test, follow these tips:
-
If your tested application is already running and you want to record against an already running application, simply ignore this warning and continue recording.
-
If you want to record the launch of the tested application as part of your test, and you get a warning stating that the application is already running, close the running application before you start recording.
Tip: You can close the application without canceling the recording session. To do this, simply pause the recording, close the running application and then resume recording. -
To disable automatic launch of the tested application at the beginning of the recording session, clear the Autorun check box for the application in the TestedApps Editor.
-
-
If you are analyzing the test run log:
-
To avoid this warning in the test run log, make sure your test closes all running instances of the tested application before running it once again. To learn how to manage tested applications from tests, see Working With Tested Applications in Tests.
-
-
If you are manually launching the application from the TestedApps collection:
-
Ignore this warning and work with the already running instance.
-
Note that you can enable TestComplete to launch and work with multiple instances of the tested application. For this purpose, specify the maximum number of simultaneously running application instances in the Count setting of the TestedApps Editor.
See Also
About Tested Applications
Running Tested Applications
Count Property