See the video, the logs and the page source of a mobile run
When a mobile run fails, you can now see what the device did. The report of the run now has the video of the session, the device log and the Appium log. It also has a page source viewer that shows the view hierarchy that each action read. Use them to find why an element was not found, or why the app stopped.
Open a mobile run, and go to the Properties tab. Under Execution Diagnostics, the Device files section lists Video, Device log and Appium log.
- View: opens the video or the log in a dialog. In a log, type in Filter lines to show only the lines that contain a text, for example the package name of your app. The dialog shows how many lines match. The copy button copies the whole log.
- Download: saves the file on your computer.
- Processing: the device provider prepares the files after the run. They come a few minutes after the end of the run, and the report updates without a reload. A file that does not come shows Not available.
To see the page source, select a step or an action in the report, and click Page source in the header of the device capture, beside the zoom. On a failed step, it opens the page source of the failed action.
- Hierarchy: the tree of the screen, with the type and the text of each element. Search a text, an id or a type, and select an element to see its attributes.
- Raw: the full XML.
The Device files section is for Android and iOS runs on the devices of the device provider, when the run starts its own device. A run on a device that is already running, or that keeps its device for the next run, has no device files. A log keeps its last 16 MB. Shared links and the run export do not include the device files. Page source is not available for a step that stores none, such as a device rotation. The button is then disabled and its tooltip explains why.
#Sprint36