The Stores > Files collection contains files used for comparison and verification in tests (see About File Checkpoints and PDF Checkpoints). In the Files editor, you can view and modify the list of files added to the collection.
Below is a sample view of the editor:
To open the editor, do any of the following:
Right-click the Stores > Files node in the Project Explorer (if it is hidden, select View > Project Explorer from the main menu of TestComplete) and choose Edit from the context menu.
Double-click the Files node in the Project Explorer.
In your keyword test, right-click the File Checkpoint operation whose checkpoint data you want to modify in the editor and select Edit Checkpoint Data from the context menu.
For each file in the list, you can view the following:
|Name||The name used to refer to the file from scripts or keyword test operations.|
|File Name||The actual full name of the file (including the path).
Note: This column is hidden by default.
|Size||The file size in bytes.|
|Date||The date the file was last modified.|
|Update||If this check box is selected and the Tools > Options > Engines > Stores > Update files option is enabled, the
You can customize the layout of TestComplete panels and editors to meet your needs better. For example, you can change the Files editor size, position and docking, hide the editor or make it visible. To learn how to customize the TestComplete interface, see Customizing TestComplete.
The Files collection can contain a great number of files. To search for a file in the collection quickly, start typing the file name in the Quick Search edit box at the top of the editor. The editor will filter out the items in the list according to the text you are typing:
To remove the filter, clear the text you have typed, or click the button.
The Preview section on the right displays the contents of the currently selected file with the file name in its header.
The Preview section allows you to view file contents. For information on how to modify file contents, see Modifying Stored Files. For information on how to update file contents, see Updating Stored Files.
To recognize and store the text content of PDF files, you must have the Intelligent Quality add-on installed and enabled in TestComplete and the PDF to Text plugin installed.
In the Files editor, select the File name column of the desired collection element and press the ellipsis button.
In the ensuing dialog, browse for the desired file and click Open.
To enable file updating, select the Update check box of the desired file in the Files editor.
In order for TestComplete to update the file, the global Tools > Options > Engines > Stores > Update files option must be enabled as well.
To disable file updating, clear the Update check box of the desired file in the editor.
For more information on updating files, see Updating Stored Files.
Type a part of the sought-for collection element’s name if the Quick Search edit box of the editor.
The Files editor will filter out the files according to the text you are typing.
To remove the filter, clear the Quick Search edit box or press the button.
Select the desired element in the Files editor.
The contents of the file to which the element refers will be displayed in the Preview section of the Files editor.
Select the desired file in the Files editor (you can use Ctrl- and Shift-click for multiselection).
Right-click the selected file (or one of the selected files) and choose Delete from the context menu or press Delete.
For more information on deleting files, see Deleting Files From the Files Collection.
To save the changes you have made to the Files collection, select File > Save from the TestComplete main menu.
To close the editor without saving the changes, close the editor’s tab and answer “No” when TestComplete asks you to save the changes.