Page tree
Skip to end of metadata
Go to start of metadata

Last updated: May 04, 2020 09:31

Note: This information is not relevant for Smart Reporting data in the latest Perfecto UI. For Smart Reporting data, you should use the Smart Reporting Public API

The <reportKey> is the report identifier returned by the Legacy | Start New Script Execution, the Legacy | Get Script Execution Status, or the Legacy | Get Script Executions List operations.

Request syntax

https://mycloud.perfectomobile.com/services/reports/<reportKey>?operation=attachments&securityToken=value[&optionalParameter=value]

Parameters

NameTypeDefaultDescription
securityToken*string
A unique cryptographic key assigned to an authorized user.
userstring

Deprecated. The name of the user running the operation.

Note: Going forward, all authentication requires a security token. For information on obtaining a security token, see Generate security tokens.

passwordstring

Deprecated. The password for the user.

Note: Going forward, all authentication requires a security token. For information on obtaining a security token, see Generate security tokens.

typestring
The attachment type.
Values: video, image, network, monitor, log.
By default all the types are returned.
adminbooleanfalsetrue - allows admin users to get the list of attachments of a execution report owned by other automation users.
ownerstring

The username of the report owner.

This parameter is used in conjunction with the admin parameter to determine the location of reports stored in PRIVATE repositories.

For example, if an admin user wants to get the list of attachments of a report for an execution owned by the user execUser, and the reportKey is PRIVATE:myReport.xml, specify the parameters as admin=true and owner=execUser. The attachments of the report named myReport.xml stored under the execUser user's PRIVATE area will be returned.

* Mandatory

Response

The response includes a list of links to the attachments organized per device in the report. For each device the following information may be included:

NameDescription
idThe device Id.
imagesList of image files included in the report
videosList of video files included in the report
networkList of network readings for the device in the report.
monitorVitals information of device.
logLog file from device device.

Example


Request format
https://mycloud.perfectomobile.com/services/reports/myTest_15-11-23_07_32_33_1564.xml?operation=attachments&securityToken=<your_token>
JSON Response
{
    "devices":[
		{ 
			"id":"BA8AEBEDAAF5F73CFBCFF4DFE4F6C07608058394", 
			"images":["images\\BA8AEBEDAAF5F73CFBCFF4DFE4F6C07608058394_16_57_15_50_act.jpeg"]
		},
		{ 
			"id":"CB511ECSMS", 
			"images":["images\\CB511ECSMS_16_57_16_51_act.jpeg"],
			"networks":["network\\CB511ECSMS_15_47_12_3_act.shunra"]
		} 
	],
    "info":{ 
		"creationTime":{ 
			"formatted":"2013-12-18T15:49:24+00:00", 
			"millis":"1387381764136"
		}, 
		"modelVersion":"2.19.0.0"
	} 
}