We are looking for "logcat" logs, but notice that Appium also provides android bug report data. The first method returns a collection of Strings which represent the logs which Appium provides. The Python client and WebdriverIO call the same methods this way: driver.log_types # note this is a property, not a function Which can be called using the following methods in the Java client: driver.manage().logs().getAvailableLogTypes() Or maybe the only way to assert that our test succeeds is to make sure a particular pattern appears in the logs.Īndroid systems make these logs available using a tool called logcat, and Appium clients can access these logs remotely.īoth Appium and Selenium respond to the following JSON Wire Protocol endpoints: GET /wd/hub /session/:sessionId /log/types Maybe our test failed and we want to see if our app logged an error to the system. An Android device or emulator records detailed system logs, which can sometimes contain information which is pertinent to a test.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |