Appium interface Running Process:
1. Start an HTTP server: 127.0.0.1:4723
2. Initialize the test Code Setup () to create a Session object on the HTTP server
3. Start calling ADB, locate the device on the connection, set the device ID
4. Wait for the device to be ready to respond to commands
5. Turn on Logcat log monitoring
6. Save the generated apk attribute information file Strings.json to the device/data/local/tmp directory
7, read the APK installation situation
8, port mapping, sent to Appium httpserver content, after httpserver directly to the device
Forward tcp:4724 tcp:4724
9, the Appiumbootstrap.jar package to the device's/data/local/tmp directory
10, install unicodeime-debug.apk to the device
11, install settings_apk-debug.apk to the device
12, install unlock_apk-debug.apk to the device
13. Kill All Uiautomator processes
14, Run bootstrap---uiautomator runtest ***.jar–c ......
15. Open Appium socket server on port 4724
16. Load JSON, wake-up client
17. Submit command to Appium
18. Start the device, unlock the screen, and prepare to receive command
19. Return the response results to the client
20. Execute test Code
21. Turn off log monitoring
22. Close the client link
23. Close UIAutomation
24. Clean up Android objects
25. Clean Appium Session
Appium interface running process (combined with log analysis)