Appium the wrong

Source: Internet
Author: User

Very happy recently forum with appium of people a lot more, but also many because do not understand appium cause error after not know where to start.  Here is a simple error-checking guide based on my personal experience, and there is no guarantee that all errors will be resolved, but at least let you know which direction you should be addressing. 1. Read the Appium documentation This is the most important method that many people ignore. Appium's documentation explains how to use appium correctly and what appium do or do it in a special way.  Most of the students who are just getting started can find the answers to the questions in this area. Chinese documentation (translated by testerhome Open Source team, currently in accordance with official documents): HTTPS://GITHUB.COM/TESTERHOME/APPIUM/TREE/MASTER/DOCS/CN English Document: https:// github.com/appium/appium/tree/master/docs/en 2. Read Appium log query Google or stackoverflow appium log by default using the debug level, so the content is rich.  If you know how to read correctly, you can easily find the answer from Google/stackoverflow. PS: It is not recommended to use Baidu.  Baidu search out of the fact that most are testerhome ... Since Appium's main structure is: Android: use ADB to manage devices and install apps, use Uiautomator/selendriod to drive various actions on your app (find elements, click, etc.) IOS: Use instruments to manage devices, Use UIAutomation to drive various operations on the application so Appium log mainly has the following categories: 1, network communication log (with the beginning of the <--symbol): info:--get/wd/hub/status {} info: <--get/wd/hub/status 1.335 ms-104 {"status": 0, "value": {"Build": {"version": "1.3.4", "revision": " C8c79a85fbd6870cd6fc3d66d038a115ebe22efe "}}} This type of log typically occurs when the Appium client communicates with Appium server, recording the original communication information. The general error is only because the following error is performed and then fed back to the upper layer (see HTTP status code for errors). As the aboveThe status code is 200, which is the processing success. 2. Appium server internally handles log (starting with a log level similar to [debug], no other special flags compared to other types of log below): info: [DEBUG] Responding to client with success: {"STA Tus ": 0," value ": {" Build ": {" version ":" 1.3.4 "," revision ":" C8c79a85fbd6870cd6fc3d66d038a115ebe22efe "}}} ... info: [ Debug] Configuring Safari Session Info: [Debug] We ' re on ios8+ so not copying mobile safari app info: [Debug] Creating N EW Appium Session 59F933A1-EE07-45D3-BBEC-CABFE89735D8 Info: [Debug] Removing any remaining instruments sockets info: [D Ebug] cleaned up instruments Socket/tmp/instruments_sock info: [Debug] Setting Xcode folder Such log is the internal log of the Appium server, which appears The highest frequency is used to describe what is being done inside Appium server (invoking other tools, creating sessions, etc.).  If there is an error here and there are no three types of errors, it is a Appium server error. 3. Apple Instruments Log (there is an extra timestamp in the log content.) If you use. App to see, log color is green): info: [Debug] [INST] 2015-03-13 23:31:59 +0000 Debug:evaluation finished info: [debug] [INST] 2015- 03-13 23:31:59 +0000 debug:responding with:info: [Debug] [INST] 2015-03-13 23:31:59 +0000 debug:running System command #1:/applications/appium.app/contents/resources/node/bin/node/applications/appium.app/contents/resources/node_modules/appium/  Node_modules/appium-uiauto/bin/command-proxy-client.js/tmp/instruments_sock 2,{"status": 0, "value": true} ... This type of log is instruments Log,appium just for the convenience of people to see and attached to the Appium log inside.  Please find instruments for this type of log error. 4. Android Uiautomator log (starting with [Uiautomator STDOUT] or [BOOTSTRAP]: info: [Debug] [Uiautomator STDOUT] Instrumentation_ Status:numtests=1 info: [Debug] [uiautomator STDOUT] instrumentation_status:stream= info: [Debug] [Uiautomator STDOUT] Io.appium.android.bootstrap.Bootstrap:info: [Debug] [Uiautomator STDOUT] Instrumentation_status:id= Uiautomatortestrunner info: [Debug] [uiautomator STDOUT] instrumentation_status:test=testrunserver info: [Debug] [Uiau Tomator STDOUT] Instrumentation_status:class=io.appium.android.bootstrap.bootstrap info: [Debug] [Uiautomator STDOUT ] Instrumentation_status:current=1 info: [Debug] [uiautomator STDOUT] instrumentation_status_code:1 info: [Debug] [BOO TSTRAP] [Debug] Socket opened on port 4724 info: [Debug] [BOOTSTRAP] [debug] Appium sockets Server Ready info: [Debug] [BO  OTSTRAP] [debug] Loading json ... This type of log is Uiautomator log. where [Uiautomator STDOUT] is the starting uiautomatortestrunner of Log,[bootstrap] Appium is the log of the Bootstrap tool installed on the device under test (since Uiautomator must be run on the Android system, So Appium made a special uiautomator test case to receive the Appium command on the device under test and execute the command).  Here log error please find Uiautomator (although Bootstrap is also part of the appium, it is generally an error calling the Uiautomator API). 5. Selendroid log (starting with [selendroid]: info: [Debug] [selendroid] mseq=0 msystemuivisibility=0x0 info: [Debug] [selendroid] MSYSTEMDECORRECT=[0,38][480,728] last=[0,38][480,728] This type of log is a log that is handled internally by Selendroid.  Please find selendroid for errors here.  6. Query Appium official issue and discussion groups and testerhome (see these places before Google) according to the error message: issue:https://github.com/appium/appium/issues Discussion group: https://discuss.appium.io/

Appium Error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.