Export Options

Parameter Description
username=USERNAME CloudTest user name
password=PASSWORD CloudTest password
url=URL CloudTest URL to connect
httpproxyhost=SERVER HTTP proxy server name (optional)
httpproxyport=PORT HTTP proxy port (optional)
type=TYPE The type of the repository object to export. Valid types are: composition , messageclip , result , playlist , target , transition , monitor , user , and tenant .
name=NAME The name of the result object to export.
id=ID The id of the result object when a composition completes execution.
dependencies=[yes|no] Specifies whether to include objects upon which the object being exported depends.
start=STARTDATE The start date for exporting monitor data (optional). Must be of form MM/dd/yyyy or MM/dd/yyyy HH:mm:ss .
end=ENDDATE The end date for exporting monitor data (optional). Must be of form MM/dd/yyyy or MM/dd/yyyy HH:mm:ss .
file=FILE The file to write the output format to (optional). If the 'file' option is omitted, then XML output will be written to the command line (standard out).
format=FORMAT The format to write is either XML (default) or CSV (for result). If the 'format' option is omitted, then the XML output will be written to the command line (standard out).
resultSource=SOURCE Specify the result source whenever specifying a widget to export (to XML only). This corresponds to the widget data source (i.e.the Export box, Data Source field selections, such as Clip Details, Collection Details, etc.) to write. The resultSource can be one of the following:

resultBasic – same as the Export box, Data Source selection, Basic Information resultClipDetails – same as the Export box, Data Source selection, Clip Details resultClipElementAggregates – same as the Export box, Data Source selection, Clip Element Aggregate resultClipElementDetails – same as the Export box, Data Source selection, Clip Element Details resultClipElementPropertyAggregates – same as the Export box, Data Source selection, Clip Element Properties resultClipAggregates – same as the Export box, Data Source selection, Clip Aggregate resultCollectionAggregates – same as the Export box, Data Source selection, Collection Aggregate resultCollectionDetails – same as the Export box, Data Source selection, Collection Details resultCompositionElementPropertyAggregates – same as the Export box, Data Source selection, Composition Element Properties resultEvents – same as the Export box, Data Source selection, Event Source resultFundamentalSummary – same as the Export box, Data Source selection, Fundamentals Summary resultPageAverageDurations – same as the Export box, Data Source selection, Page Average Durations resultPageCompletions – same as the Export box, Data Source selection, Page Completions resultTimeAggregates – same as the Export box, Data Source selection, Time Aggregate resultTimeAggregatesErrorsOnly – same as the Export box, Data Source selection, Error Aggregate resultTrackAggregates – same as the Export box, Data Source selection, Track Aggregate resultTransactionAverageDurations – same as the Export box, Data Source selection, Transaction Average Durations resultTransactionCompletions – same as the Export box, Data Source selection, Transaction Completions resultURLAggregates – same as the Export box, Data Source selection, URL Aggregate

analytics=[true|false] True to export monitor data rather than the repository object

Exporting repository objects such as the parts of a test requires the default XML format. Format is typically omitted unless exporting to CSV. When doing so, use format=CSV and then also specify resultSource (e.g. the widget whose data will be exported for the given result).

For example, to export the composition named "/Load Tests/Comp 1" to a file called cmp1.xml:

scommand cmd=export type=composition name="/Load Tests/Comp 1" file=cmp1.xml \ username=bob password=secret url= http:// <CloudTest URL>/concerto

In another example, we will use scommand to retrieve composition results and export them in CSV format for spreadsheet display:

scommand cmd=export username=bob password=secret type=result file=myexport.csv name="/Directory/CompositionName/ResultNameDemo" format=csv resultSource=resultTimeAggregates