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. These logs are similar to NSLog() and print(), but they have the added benefit of having different verbosity levels and can have associated domains. This lets you filter logs better when analyzing them in the Appelium dashboard.

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

AppeliumTests.logVerbose("Verbose statement")
AppeliumTests.logInfo("Info statement")
AppeliumTests.logWarning("Warning statement")
AppeliumTests.logDebug("Debug statement")
AppeliumTests.logError("Error statement")

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

AppeliumTests.logError("Next button disabled", domain: "Registration")