View and manage the device log

On an open device, you can retrieve a specified section of the device's operating log. The log includes valuable data that can help you understand execution problems. By default, Scriptless Mobile retrieves 500 lines. The supported range is 1 to 10,000 lines.

Tip: The device log is also attached to the test report. You can download the device log as a .zip file. For more information, see Single test report (STR).

To learn how to retrieve the device log, watch this video or review the instructions following the video.

To view the device log:

  1. In the widgets pane, click the Device button .
  2. On the Device tab, click Logs.
  3. To ensure that a Result variable is available, in the test editor, do the following:

    1. Click the Configure test variables button. In the Configure test variables dialog box, ensure that you have a variable with type String with a name. If you do not have this variable, do the following:

      1. Click Add New Variable.

      2. Select the variable type as String.

      3. Add a name to the variable.

      4. Click APPLY.

  4. Back in the widgets pane, under Logs, do the following:

    1. (Optional) To specify the number of lines to include in the log, type the number of lines, or adjust the number with the plus and minus buttons.

    2. (Optional) To refresh the log, click the Refresh logs button .

    3. (Optional) To copy the log, click the Copy to clipboard button .

    4. In the Result Variable field, select a result variable.

    5. To add a command with the variable, click ADD TO TEST.

    6. (Optional) At the top, click Back to return to the Device tab.