1. Concept differentiation:
1) Ios-uiautomation: With the release of iOS4.0, Apple has also released a test framework called uiautomation, which can be used to perform automated testing on real devices and iphone simulators.
Study site: http://www.51testing.com/html/54/n-843354.html
Http://www.2cto.com/kf/201212/176666.html
2) Android-uiautomator:google provides an automated solution after sdk4.0 Uiautomator:
Advantages: Can be used across the application; it's biological.
Disadvantage: Must sdk4.0 above version; To achieve good, it is best to have development cooperation; Java projects are compiled into jars that require push to the phone to run, which means that log brute force debugging must be printed.
Study site: Http://www.tuicool.com/articles/ERBRVzY
http://blog.csdn.net/chenbang110/article/details/23371597
3) Android-selendriod:selendroid is a UI Automation testing framework for Android native apps. The test was written using the Selenium 2 client API. The selendroid can be used on both the emulator and the actual device, as well as the integration of grid nodes for scaling and parallel testing.
Study site: Http://hao.jobbole.com/selendroid/
2.appium Architecture
1) appium use selendroid under uiautomator,4.1 in Android4.1 or above;
2) Use instrumentation and uiautomator two sets of technologies on Android;
3) Use UIAutomation on iOS
3.Appium Architecture on Android
4.Appium Architecture on iOS
5.Appium Startup parameters:
1) Some optional parameters can be seen through appium-help;
2) parameters can be configured as follows: Listen to IP and port, whether to use Selendroid, configure Android and iOS related parameters, launch the app;
3) Default on 4723 Port accept Webdriver request, default on 4724 port to communicate with Android;
6.Appium Loading process:
1) Call Andorid Abd to complete the basic system operation;
2) Deploy the Bootstrap.jar package to the andriod and launch it;
3) Forward the Android port onto the PC's machine;
4) The listening port on the PC accepts the request and uses the Webdriver protocol;
5) Analyze the command and go through the port of forward to send the Bootstrap.jar packet;
6) Bootstrap accepts the request and sends the order to the uiautomator or the pile-insertion system;
7.Appium Design Concept:
1) Interact with the user using the Webdriver protocol;
2) XPath abstract positioning;
3) The underlying call to the respective platform automation technology;
Capabilities Configuration for 8.webdriver:
1) App: path of local path or network download;
2) Browsername, compatible with selendroid, do not use;
3) Device:ios Android Firefoxos;
4) version:android API version, IOS version;
5) Launch: Whether to let Appium automatically start the app;
6) appactivity-you want to launch the Android Activity name from your app package, it usually needs to be added in front of '. ' (for example: use '. Mainactivity ' rather than ' mainactivity ')
7) apppackage-The package name of the Android app you want to run
Reference URL: http://wenku.baidu.com/link?url=FbswfHp-YmkQKxrTAO61u9OVXp7aBA8TE5YN0hHSV8VkTXGTp1NkK_ Hbeuwfl1rj8n3brxrglq3tuaq_wf06tv9wedlut8fl8fhoxwd6mha
Attach how Appium works: http://blog.csdn.net/jack_chen3/article/details/42679545
Appium basic knowledge of getting Started