Saving and restoring user settings

In TestComplete there are three types of customizable settings:

  • Settings of the TestComplete itself (various parameters that influence regimes of work with TestComplete are available in the Tools | Options menu)
  • Interface settings
  • Project settings (in the Tools | Current Project Properties menu)

The first two types of the settings are easy to save and restore at any time.

How to do it...

The following steps should be performed to save and restore settings:

  1. In order to save the settings from the Tools | Options menu, opt for the Tools | Settings | Export Settings menu item, and in the opened window signify which settings you would like to save and the name of the file to save them into; then, click on the Export button.
  2. To upload the settings saved earlier, opt for the Tools | Settings | Import Settings menu item, and in the opened window opt for the file of the settings and click on the Import button. All the settings will be uploaded in the same format they had been initially saved in.
  3. To save the settings of the external view (panels and toolbars), opt for the View | Desktop | Save Desktop As menu item and input the name of the file which you would like to save the settings of the external view.
  4. In order to upload the previously saved settings, opt for the View | Desktop | Load Desktop menu item, and select the earlier saved file, and then click on the Open button. All the settings of the interface will return to the earlier saved variation.

How it works...

Depending on the type of settings, they will be saved into the file with different extensions (.desktop for the settings of the interface and .acnfg for the settings of the program). If you're working on different computers and wish to work everywhere with the same habitual selection of settings, you can implement this, but also make it so it only takes a couple of seconds to restore previous settings on other computers. The same can be done after TestComplete has been re-installed or in case these files are stored in the source control along with the project suite; updating local copy of the project affects TestComplete's appearance.

There's more...

Sometimes, it comes to pass that by experimenting with the re-positioning of various panes or control panels, you cannot restore their initial positions. In order to resolve this problem, there are respective options View | Desktop | Restore Default Docking (restoring initial view of the panes and panels) and View | Toolbars | Restore Default Toolbar (restoring toolbars).

These two options can sometimes become a point-of-care rescue if you have no saved settings.

Although we have no method to save and upload settings of a separate project, we can clone the existing project (it will be copied completely, including its settings), and then remove the unnecessary elements from the new project.

To clone a project, right-click on its name and opt for the Clone Project menu. Then, enter the name and path for the new project and click on the OK button.

Apart from this, we can assign the initial settings of the project (that is, the settings by default). This can be done via the Tools | Default Project Properties menu option.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.144.108