background image
<< Creating a new project | Converting existing test sets to projects >>

Adding files to a project

<< Creating a new project | Converting existing test sets to projects >>
Working with Projects
7
Adding files to a project
You can add existing files to a project or create new files to the project.
While we recommend adding all referenced files to your project so that you can easily see and access
the files, and the objects contained within them, referenced files do not have to be included in the
project. Plans and scripts will continue to run, provided the paths that are referenced are still accurate.
To add an existing file to a project
1 If your project is not already open, click Open Project/New Project on the Basic Workflow bar
(Workflows/Basic).
2 On the Project Explorer, select the Files tab, right-click the node associated with the type of file
you want to add, and then click Add File. For example, to add a script file to the project, right-
click Script, and then click Add File.
3 On the Add File to Project dialog, specify the file you want to add to the open project, and then
click Open. The file name, followed by the path, appears under the appropriate category on the
Files tab and is associated with the project via the projectname.vtp file. If files exist on a network
drive, they are referenced using Universal Naming Conventions (UNC).
You can also add existing files to the project by clicking Project/Add File. SilkTest automatically
places the file in the appropriate node, based on the file type; for example if you add a file with a .pln
extension, it will appear under the Plan node on the Files tab.
We do not recommend adding application .ini files or SilkTest .ini files (qaplans.ini, propset.ini, and the
extension.ini files) to your project.
If you add object files (.to, .ino) to your project, the files will appear under the Data node on the Files
tab. Objects defined in object files will not appear in the Global tab. You cannot modify object files
within the SilkTest editor because object files are binary. To modify an object file, open the source file
(.t or .inc), edit it, and then recompile.
To add a new file to a project
1 If your project is not already open, click Open Project/Open Project on the Basic Workflow bar
(Workflows/Basic), select the project to which you want to add a file, and then click Open.
2 On the Project Explorer, select the Files tab, right-click the node associated with the type of file
you want to add, and then click New File. For example, to create a script file associated with the
project, right-click Script and then click New File. The new file opens in the 4Test Editor.
3 Save the file and click Yes when SilkTest asks if you'd like to add the file to the open project.
The file name, followed by the path, appears under the appropriate category on the Files tab
and is associated with the project via the projectname.vtp file. If files exist on a network drive,
they are referenced using Universal Naming Conventions (UNC).
If you chose to create a new test frame file, the .inc file is automatically added to the project; SilkTest
does not prompt you to save it to the project.
You can also create a new file via the File menu; for example, File/New/4Test Script.