Legacy | Get device log

  • Command: device

  • Subcommand: log

  • Supported Platforms: Native (legacy), UFT (legacy), Selenium, Appium

    All commands must be executed using the same framework. Sharing the execution ID between different frameworks is not possible. This means that if you work with a Selenium/Appium driver, you need to call the commands using the Selenium/Appium driver (or, in the case of Reporting commands, through the Reporting SDK that works with the driver) and not as part of a UFT test or another framework.

  • Supported OS: Android, iOS

Description

Retrieves the latest tail number of lines from the operating system log on the device. The device log contains valuable data that can help understand execution problems.

Parameters

Name Value Default Description
deviceID*     The device for this command.
tail     The number of lines to retrieve from the log. Effective values are in the range of 0-1000
variable     The variable to receive the operating system log.

* Mandatory parameter

Request & Response

Copy

Request

https://mycloud.perfectomobile.com/services/executions/john@perfectomobile.com_controller_16-11-02_12_21_16_829?operation=command&securityToken=<your_token>&command=device&subcommand=log&param.deviceId=6370E775&param.tail=20
Copy

JSON response

{
    "reason":"Success",
    "timer.elapsed":"32",
    "returnValue":"[ 11-02 08:48:10.937   879: 3540 D/SSRM:m   ]\n
        SIOP:: AP = 240, PST = 232, CUR = 450\n
        [ 11-02 08:48:11.497   879: 1304 E/Watchdog ]\n
        !@Sync 46\n
        [ 11-02 08:48:13.327   281:  281 E/SMD      ]\n
        DCD ON\n
        [ 11-02 08:48:16.327   281:  281 E/SMD      ]\n
        DCD ON\n
        [ 11-02 08:48:18.467   879: 1610 D/BatteryService ]\n
        !@BatteryListener : batteryPropertiesChanged!\n
        [ 11-02 08:48:19.327   281:  281 E/SMD      ]\n
        DCD ON\n
        [ 11-02 08:48:20.997   879: 3540 D/SSRM:m   ]\n
        SIOP:: AP = 240, PST = 233, CUR = 450\n
        [ 11-02 08:48:22.327   281:  281 E/SMD      ]\n
        DCD ON\n
        [ 11-02 08:48:25.327   281:  281 E/SMD      ]\n
        DCD ON\n
        [ 11-02 08:48:28.327   281:  281 E/SMD      ]\n
        DCD ON\n",
    "testGridReportUrl":"https://mycloud.reporting-stg.perfectomobile.com?externalId[0]=john@perfectomobile.com_controller_16-11-02_12_21_16_829",
    "description":"Success",
    "timer.system":"0",
    "completed":"true",
    "flowEndCode":"SUCCEEDED",
    "executionId":"john@perfectomobile.com_controller_16-11-02_12_21_16_829",
    "timer.ux":"32",
    "singleTestReportUrl":"https://mycloud.perfectomobile.com/nexperience/singletest/report/?reportRepositoryKey=PRIVATE:controller/161102/controller_16-11-02_12_21_16_829.xml&ownerId=john@perfectomobile.com&sharingCode=e967892e-5541-4b12-aa04-dc039ed8908f",
    "reportKey":"PRIVATE:controller/161102/controller_16-11-02_12_21_16_829.xml",
    "timer.device":"32"}