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.

AttributeTypeRequiredDefaultDescription
cmdconstYescopyCommand Name
namestringYesName to uniquely identify the teststep. This name will show up in reports, logs and the WebUI
transportTransportObjectNoAdditional transport options
optionsOptionsObjectNoAdditional command options
parametersCopyOptionsYesOptions passed into the copy cmd

Copy Options

AttributeTypeRequiredDefaultDescription
sourcestringYesSource Location of the file to copy to the DUT.
destinationstringYesDestination Location of the file to copy to the DUT
recursiveboolNofalseCopy recursively
variablestringNoSpecifies the name of the variable in which to store the destination path.
permissionsstringNopreserveFile permissions for the copied file/directory. Can be octal mode (e.g., 0755, 0644) or preserve for source permissions.
ownerstringNoOwner of the copied file/directory. Can only be UID (e.g., 1000).
groupstringNoGroup 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