Copy
Copy files to the DUT. Over SSH, the step writes the files with SFTP, so the SSH server on the DUT must offer SFTP.
| Attribute | Type | Required | Default | Description |
|---|
cmd | const | Yes | copy | Command Name |
name | string | Yes | | Name to uniquely identify the teststep. This name will show up in reports, logs and the WebUI |
transport | TransportObject | No | | Additional transport options |
options | OptionsObject | No | | Additional command options |
parameters | CopyOptions | Yes | | Options passed into the copy cmd |
Copy Options
| Attribute | Type | Required | Default | Description |
|---|
source | string | Yes | | Source Location of the file to copy to the DUT. |
destination | string | Yes | | Destination Location of the file to copy to the DUT |
recursive | bool | No | false | Copy recursively |
variable | string | No | | Specifies the name of the variable in which to store the destination path. |
permissions | string | No | preserve | File permissions for the copied file/directory. Can be octal mode (e.g., 0755, 0644) or preserve for source permissions. |
owner | string | No | | Owner of the copied file/directory. Can only be UID (e.g., 1000). |
group | string | No | | Group of the copied file/directory. Can only be GID (e.g., 1000). |
Copy Example
cmd: copy
name: Copy some tooling to DUT
transport: *transport
parameters:
source: "[[storage.my-tooling]]/tool"
destination: /tmp/tool
recursive: true
variable: toolpath
permissions: "0755"
owner: 1000
group: 1000