CLI Reference > Workflows and Documents Commands > tm extractattachments
 
tm extractattachments
saves an attachment from a test case result
Synopsis
tm extractattachments [--resultID=sessionID:caseID] [--outputFile=value] [--[no|confirm]overwriteExisting] [--hostname=value] [--port=value] [--password=value] [--user=value] [(-?|--usage)] [(-g|--gui)] [(-F value|--selectionFile=value)] [--quiet] [--settingsUI=[gui|default]] [--status=[none|gui|default]] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=value] [--forceConfirm=[yes|no]] attachment
Description
tm extractattachments saves an attachment from a test case result for later viewing or printing.
Options
This command takes the universal options available to tm commands, as well as some general options. See the options reference page for descriptions.
--resultID=sessionID:caseID
the ID of the test session and test case that you want to extract result attachments from.
--outputFile=value
specifies the name of the file that the attachment is extracted to. If not specified, the name of the attachment is used as the output file.
attachment
specifies the name of the attachment to extract, for example, test_spec.htm. If no attachment is specified, then all attachments for the result are extracted.
* 
If --cwd is not specified, the attachment is saved to the current working directory.
See Also
Commands: tm createresult, tm editresult, tm extractattachments, tm results, tm deleteresult, tm resulteditor, tm stepsresults, tm testcases, tm setresults, tm viewuntested
Miscellaneous: options