Archive a file to be later sent to the client as an artifact.
The name of the directory in which logs will be archived. Usuallly this value is the name of the
test suite (Available in the test using this.id
)
The absolute path of the file needed to be archived.
Archive the file as a stream to be later sent to the client as an artifact.
The name of the directory in which logs will be archived. Usuallly this value is the name of the
test suite (Available in the test using this.id
)
The absolute path of the file needed to be archived.
stream of the file
Generated using TypeDoc
Send reports/artifacts from testbot back to client
By default, serial logs (given that the hardware is set up correctly), and the logs from the tests will be sent back to the client that started the test, upon the test finishing. Other artifacts can be sent back to the client using the
archiver
method.The Archiver is imported into each test and hence the methods can be accessed within any test. Check
test.js
to check the imports. To archive a file:To directly archive the output of a command, example:
journalctl
ordmesg
commands. Use thearchiveLogs
helper accessible throughworker
context.Using this method, at the end of the test, any artifacts added to the archive are compressed and downloaded by the client. These are available in the
workspace/reports
directory at the end of the test. This can also be helpful when storing artifacts/reports/logs after a test suite run.