File list actions
File lists show files in a directory (Files, Work area) or merged file lists containing files from all sub directories ao certain kind (data, actions, expected) in the test suite parent hierarchy. Depending on different file lists, a set of actions is supported shown in the toolbar above the file list.
Sometimes the displayed list is not up to date. In order to update data displayed in the list with current database content, the action may be clicked. For merged lists the collection is re-evaluated.
The function allows inserting a file to the selected directory. A file dialog pops up for selecting a file in the file system. After confirming, the file is copied to the selected directory and added to the file list.
The action creates a new file in the selected directory. In order to enter the file name, a dialog pops up. After entering the name and confirming, en empty file is created in the selected directory.
The action copies the selected file within the selected directory. In order to enter the file name for the copy, a dialog pops up. After entering the name and confirming, a copy of the file is created in the selected directory.
External editors may be called directly via this action. In order to call file editors via file extension, a file association has to be defined in the system. When this is not the case, an ODABA file association may be defined in the ini- or configuration file in. Finally, one may define a test browser file association by adding a section with the extension name and define a variable CALL below, that provides the external editor function call (see FileEntry::Edit() in "TestBrowser Programmer's Guide").
Localizing the file will create a copy of the file in the appropriate sub folder (data, actions or expected) of the current test suite or test case directory. When the file does already exist in this directory, nothing will happen.
The action copies the selected file to the expected directory of the selected test suite or test case. Typically, this action is used for creating expected data files in the expected directory after running the test and expecting the result in the work_area/data directory (Work area).
When the file is owned by the selected test suite or test case directory (merged list) or when the file is a file of the directory, it will be deleted. Other wise, the action does nothing.
When deleting a file displayed via a merged list, the localized version is deleted and a corresponding file owned by the next available file from higher parent test suite will be displayed.