In this chapter we will cover the following recipes:
Adding a tested application project item
Running a tested application from the script
Terminating a tested application
Killing several instances of a tested application
Closing a tested application
Running a tested application in the Debug mode
Running a tested application under a different user account
Changing tested application settings dynamically from the script
Running external programs and DOS commands
Testing installers – running an MSI file
Introduction
TestComplete can be used for testing different types of applications: desktop, console, web, and web services. In all cases we need to be able to run applications under test in different ways (with different command-line parameters or under different user's accounts), terminate them, and analyze the application's state.
In this chapter we will learn how to work with tested applications in TestComplete. In most cases, a special project item TestedApps is used for this purpose; however, in some cases other approaches may be of better use.