Skip to content

Console Logs

These logs are very similar to logs done inside the app, except that they belong to your UI tests and will be attached next to each test failure report.

Use Appelium logs in your UI tests with the following methods:

1
2
3
4
5
6
AppeliumTests.Log.v("Verbose message")
AppeliumTests.Log.d("Debug message")
AppeliumTests.Log.i("Info message")
AppeliumTests.Log.w("Warning message")
AppeliumTests.Log.e("Error message")
AppeliumTests.Log.a("Assertion message")

all the logging levels allow you to pass an optional tag for even better granularity:

AppeliumTests.Log.i("Next button disabled", "Registration")

Logcat Logs

In addition to standard Appelium logs, AppeliumTests will automatically record all Logcat logs and attach them to each test failure. You can control this behavior by using AppeliumTests.Builder.setLogcatCaptureEnabled(true|false).