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.
To learn how to retrieve the device log, watch this video or review the instructions following the video.
To view the device log:
- In the widgets pane, click the Device button .
- On the Device tab, click Logs.
-
To ensure that a Result variable is available, in the test editor, do the following:
-
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:
-
Click Add New Variable.
-
Select the variable type as String.
-
Add a name to the variable.
-
Click APPLY.
-
-
-
Back in the widgets pane, under Logs, do the following:
-
(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.
-
(Optional) To refresh the log, click the Refresh logs button .
-
(Optional) To copy the log, click the Copy to clipboard button .
-
In the Result Variable field, select a result variable.
-
To add a command with the variable, click ADD TO TEST.
- (Optional) At the top, click Back to return to the Device tab.
-