- Getting Started with Test Suite
- Studio
- Orchestrator
- Testing robots
- Test Manager
Debugging
Examine Appium logs and inspect elements on your device to better understand what has happened during automation.
Use the debug tool to dig into the details of your automation, examining the Appium log output. For example, you might be needing to have a look at low-level server logs to understand what has happened during the executed operations. You can then hover your mouse over an event to see full details (e.g. determine when the connection was created, or when the test had started).
To open the debug panel:
- Start an application in Mobile Device Manager.
- Click the Debug Tool button to expand the panel details.
- Click Log Type and select an option from the dropdown.
- Click Get Logs.
-
(Optional) Click Live Log to retrieve events in real-time.
To configure a location for your logs, open MDM and navigate to Project Setting > Project Level Settings > Logs Path. Consider setting the log path to a shared network drive to expand member access to resources.
You can get one of the following log types, depending on your requirements.
iOS |
Android |
---|---|
syslog: Device logs. |
server: Appium server logs. |
crashlog: Crash logs. |
logcat: Device logs. |
performance: Information about the iOS performance on the device. | |
server: Appium server logs. | |
safariConsole: Safari console logs. | |
safariNetwork: Network requests. |
The following table lists the actions that you can take to manage your debugging logs.
Action |
Description |
Procedure |
---|---|---|
Get Logs |
Retrieve logs. |
|
Open File Location |
Open the location where log is stored. |
Follow the Get Logs procedure and click Open File Location. |
Live Log |
Retrieve events to your log in real-time. |
Android: log cat |
Clear |
Clear the current view. |
Follow the Get Logs procedure and click Clear to remove the log. Alternatively, you can get a different log to clear the panel and move to the next debugging step. |
Use the visual tree tool to view how the page looks like or to see elements that can potentially be automated.
To open the visual tree panel:
- Start an application in Mobile Device Manager.
- Click the Visual Tree button to expand the panel details.
-
Click Inspect Element and then click any element on your device.
The element information is divided into two parts:
- In the 1st border frame, you can look for the tree structure of your elements. Hover the mouse over an entry to highlight its corresponding element on the device.
-
In the 2nd border frame, you can view element details. The information from this panel changes whenever you use the search function.
The following table lists the actions that you can take to view the inspected elements.
Action |
Description |
Procedure |
---|---|---|
Inspect Element |
Inspect elements on the device. |
|
Stop Live Updates |
Stop receiving element info. This option is activated as soon as you click an entry in the tree structure panel. |
To uncheck this option you must first use the Inspect Element tool.
|
Expand All |
Expand all elements. |
|
Collapse All |
Collapse all elements. |
|
Export Page Source |
Export the page source as an XML file. |
|
Search |
Search for element details. |
|