Folder Operations
The folder TBox Automation Tools->Folder Operations in the Standard subset contains the following Modules:
TBox Copy Folder
The Module TBox Copy Folder allows you to copy a folder to a specific location.
It has the following attributes:
ModuleAttribute |
Description |
---|---|
Source Path |
Path of the folder you want to copy. |
Target Path |
Path of the folder you want to copy the source into. |
Overwrite |
By default, Tricentis Tosca doesn't overwrite existing folders. If you want to overwrite the existing folder, set the value True. |
The TestStep in this example performs the following actions:
Copy and paste a folder to another directory |
TBox Delete Folder
The Module TBox Delete Folder allows you to delete a directory.
It has the following attributes:
ModuleAttribute |
Description |
---|---|
Path |
Path of the folder you want to delete. |
Recursive |
By default, Tricentis Tosca only deletes empty folders. If you want to delete a folder that has content, set the value True. |
If the system can't locate the folder, the execution result shows the following description: Folder <folder name> does not exist. The test result is positive. |
In this example, you delete the folder C:\Temp and all its contents.
Delete a folder |