send
is used to copy Teuton reports into remote machines.
start do
export
send copy_to: :host1
end
send
instruction must be execute afterexport
. Reports must be generated before send them, of course.host1
, label that identify remote host. This information must be configured into config file.send copy_to: :host1
, copy every case resport file into temp directory on remote hosthost1
.
Option | Action | Description |
---|---|---|
copy_to | send copy_to: :host1 | Copy report into default directory of remote machine host1 . |
prefix | send copy_to: :host1, prefix: "example_" | Case report will be save into default directory on every host host1 , named as example_case-XX.txt . |
dir | send copy_to: :host1, dir: "/home/obiwan" | Reports will be saved into "/home/obiwan" directory in remote machine host1 . |
If you export several files using differents output formats, you will use several export
orders. Then when invoke send
order, this will send the last exported file.
In this example we export html and txt files, but only send txt to remote hosts:
start do
export format: :json
export format: :txt
send copy_to: :host1
end
If you want to send every exported output file, then do like this:
start do
export format: :html
send copy_to: :host1
export format: :txt
send copy_to: :host1
end
Example 1: send case-01-txt
file to default folder of remote remote host.
play do
show
export
send copy_to: :host1
end
Result:
Example 2: send report file to "./Desktop" folder of remote host.
play do
show
export
send copy_to: :host1, dir: "./Desktop"
end