Appium-android vs IOS
Author: Max.bai
Time: 2014/10
Appium-android vs IOS
Appium support Android also support iOS, but there is a big difference between the two, I use Appium one months, the first is Android, back to use iOS, so iOS automation is more difficult than Android, later found that the two models have a certain difference. (It may be that my Mac's base is too poor) to distinguish between the two, as I understand the superficial description.
Appium Android Working mode (the following experience is just my experience on Windows, only iOS on Mac, if there is a mistake, please correct me):
The process is probably as follows:
1. Android device has been turned on (including the real machine and simulator, the real machine has been connected to the computer, of course, drivers are not ... )
2. Appium Open (command line open while Appium server is also turned on)
3. Appium is connected to Android device at startup, there is no setting (what app, browser, API version ...). , IP and port still need to be set) can successfully open Appium
Appium server initiates a direct connect device.
Automation use case when connected to Appium server, just tell appium I want to test what app ... Like the Caps
Appium IOS operating mode:
IOS and Android are different, the simulator and the real machine have a difference, I say separately
The iOS emulator process is as follows:
1. Open appium (command line execution Appium Even if it is started, the GUI may need to click Launch)
2. Start Appium Server In addition to setting the IP and port, there is no need to set the other (command line opened with the IP and port parameters)
Appium server does not connect to any emulator when it is turned on, the execution case is to open the corresponding simulator and install app according to caps
iOS Real-computer:
1. Connect the computer to the real machine
2. Appium open (command line directly execute Appium even if it is started, the real machine needs the-u parameter set the real machine Uuid,gui may also need to click Launch)
3. Start Appium Server In addition to setting the IP and port (command line opens with IP and port parameters), you need to set the real machine uuid (of course, there are other associated caps also need to set), Appium need to connect to the real machine when booting
So here's the problem (don't think about it, it's not blue shit ...) )
When you open Appium server, what settings are not, the GUI so many settings are what to use? (What app, browser, API version ...) )
The answer is Inspector, Inspector is the same as you do the use case, you need to tell the server what your caps are.
The Android SDK has tools that can be used to identify the UI, Uiautomationview, in the SDK directory, so appium Android Inspector can not.
The IOS SDK does not know if there is a similar tool, so I still use Appium inspector to catch the object.
The above are personal experience, if there are errors, hope that we discuss together.
Appium-android vs IOS