The difference between Appium and Robotium

Source: Internet
Author: User

Appium is implemented based on the Uiautomator framework. The Appium test process is separate from the target application process, so appium cannot directly access the various element properties of the target application for Copy&paste, but only simulates triggering the corresponding event to operate on the target application. This is like the relationship between the touch screen monitor driver and the target application: After the driver monitors the event that the user taps the screen, the driver determines whether the clicked position is a text box, and if so, opens the system keyboard to the user for input.

Robotium is based on the instrumentation framework. The Robotium test process and target application are run as two different threads in the same process. This means that the Robotium test thread is able to access the various element properties of the target application directly, and can access the floating layer, intent and the like. So it doesn't need to trigger any events at all, it can directly modify the corresponding data internally, such as the text box in this example to enter text.

So what are the pros and cons of Robotium and appium in terms of text input alone? I personally think it is possible to consider the following points:

Robotium is direct copy&paste, so the efficiency of course will be higher, especially in the long string input, for example, input an article, if you call the keyboard on the Appium, especially when your Android setting performance is not high, you will obviously feel kaka.

Robotium because there is no need to bring up the keyboard, so it is easy to enter a variety of different languages, and appium is not the same, if the current English and you need to input Chinese, then you have to call the system setting application first to set the language into Chinese, choose Chinese Input method, etc. Then switch to the target app for the input operation.

Appium is more capable of simulating user behavior, while Robotium is biased toward testing the unit test at the lower point of the pyramid (so robotium can test content provider, in addition to the activity of the test target application)

The difference between Appium and Robotium

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.