Copy Files and Folders Recursively Module

Download and share automation modules and examples.
User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Copy Files and Folders Recursively Module

Post by Support Team » Thu Jul 28, 2011 2:42 pm

It is often required to copy a folder or files – modified by the system under test – to initialize the test data. This code module copies a folder, including the files and subfolders which are part of it to a given location.

Usage:
  1. Download the "CopyRecursiveFilesFolders.cs" file to your computer and import it into your project by right-clicking your project in Ranorex Studio and choose "Add" -> "Existing Item..."
  2. Drag & Drop the module to your test case and define the variables by binding them to a parameter in your test case

    Variables:
    FromLocation
    The source directory.

    ToLocation
    The target directory.
Attachments
CopyRecursiveFilesFolders.cs
Copy Files and Folders Recursively Module
(3.87 KiB) Downloaded 972 times
.
Image