Cleanup Folder Module
Posted: Thu Jun 30, 2011 10:41 am
It is often required to delete a folder or files – created by the system under test during a previously executed test run – to initialize a new test execution. This code module deletes a folder including the files and subfolders in it.
Usage:
Usage:
- Download the "CleanupFolder.cs" file to your computer and import it into your project by right-clicking your project in Ranorex Studio and choose "Add" -> "Existing Item..."
- Add "Microsoft.VisualBasic" to the References of your project by by right-clicking on References and choosing "Add Reference"
- Drag & Drop the module to your test case and define the variables by binding them to a parameter in your test case
Variables:
FolderName (required)
Deletion folder source path name (e.g. "C:/temp")
DeletePermanently
If set to "True" the folder and its contents will be deleted permanently. Default is false.