Appium-android against IOS

Source: Internet
Author: User
Tags appium

Appium-android against IOS

Author: Max.bai

Time: 2014/10

Appium-android against IOS


Appium support for Android also supports iOS. But there is a very big difference between the two, I use appium one months, just started to be Android, followed by iOS. So it was a lot harder for iOS to be proactive than Android, and it turned out that the two models had a certain difference.

(It may be that my Mac's base is too poor) to describe the difference between the two in my understanding of the superficial description.



Appium Android working mode (such as the following experience but my experience on Windows. Mac only uses iOS, if you say wrong, please correct me):
The process is probably for example the following:
1. Android device has been turned on (including the real machine and the simulator, the real machine has been connected to the computer, of course, drivers are indispensable.

。。 )
2. Appium Open (command line open at the same time need to set IP and Port,appium server also opened at the same time)
3. Click Launch. Appium boot when connected to Android device, in addition to setting IP and port, here do not do whatever settings (what app, browser. API Version Number ... ) will be able to successfully open the Appium
Appium server initiates a direct connect device.


Self-active use case run time to connect 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 differences, I say separately
iOS emulator steps such as the following:
1. Open appium (command line runs directly at the same time need to set IP and Portappium even if it is started.) GUI may also need to click Launch)
2. Click Launch to start the Appium server in addition to setting IP and port. Nothing else is required (the command line opens with the IP and port parameters)
Appium server does not connect no matter what the emulator, the running case is to open the appropriate simulator and install the app according to the Caps

iOS Real-computer:
1. Connect the computer to the real machine
2. Appium open (the command line runs directly appium even if it is started.) True machine need-u parameter set true machine Uuid,gui may also need to click Launch)
3. Click Launch. Starting Appium Server In addition to setting the IP and port (the command line opens with the IP and port parameters), you need to set the real machine's UUID (and of course, other associated caps also need to be set). Appium need to connect to the real machine when booting



So here's the problem (don't think it's crooked.) 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 number ...) )
The answer is Inspector, and Inspector is the same as you run the use case. 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 folder, 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 against IOS

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.