Turn from: http://www.cnblogs.com/nbkhic/p/3803830.html what is Appium?
The following is an introduction from Appium's official website.
Appium is a open-source tool you can use the automate mobile native, mobile web, and mobile hybrid applications on IOS and Android platforms. "Mobile native apps" is those written using the IOS or Android SDKs. "Mobile Web Apps" are Web apps accessed using a Mobi Le browser (Appium supports Safari on IOS and Chrome on Android). "Mobile hybrid apps" has a native wrapper around a "WebView" –a native control that enables interaction with Web content . Projects like Phonegap, for example, make it easy-to-build apps using web technologies that is then bundled into a native Wrapper–these is hybrid apps.
Importantly, Appium is ' cross-platform ': It allows you to write tests against multiple platforms (IOS, Android), using the Same API. This enables a large or total amount of code reuse between IOS and Android testsuites.
We can get some of this information from the above introduction:
- Appium is an open-source mobile automation testing framework;
- Appium can test native, mixed, and mobile Web projects;
- Appium can test the ios,android application (and, of course, Firefox OS);
- Appium is cross-platform and can be used on Osx,windows and Linux desktop systems;
The philosophy of Appium
Appium is designed to meet mobile automation needs according to a certain philosophy. The key points of this philosophy can be stated as 4 requirements:
- You shouldn ' t has to recompile the your app or modify it in the any-on order to automate it.
- You shouldn ' t is locked into a specific language or framework to write and run your tests.
- A Mobile Automation Framework shouldn ' t reinvent the wheel when it comes to automation APIs.
- A Mobile Automation Framework should is open source, in spirit and practice as well as in name!
Appium's philosophy of design is this:
1. No need to automate and recompile or modify the test app;
2. Mobile Automation testing should not be limited to a language and a specific framework, meaning that anyone can use their most familiar language and framework to do mobile automation testing;
3. Do not reinvent the wheel for mobile automation testing and re-write an earth-shattering API, meaning that the API in the Webdriver protocol is good enough to improve it.
4. Mobile Automation testing should be open-source;
Appium's Technical architecture
- Os:apple ' s UIAutomation
- Android 4.2+: Google ' s Uiautomator
- Android 2.3+: Google ' s instrumentation. (instrumentation support was provided by bundling a separate project, selendroid)
The design idea of Appium
We meet requirement #2 by wrapping the vendor-provided frameworks in one API, Thewebdriver api. Webdriver (aka "Selenium Webdriver") specifies a Client-server protocol (known as The json Wire protocol). Given This client-server architecture, a client written in any language can is used to send the appropriate HTTP requests to the server. There is already clients written in every popular programming language. This also means so you ' re free to use whatever Test runner and test framework for you want; The client libraries is simply HTTP clients and can be mixed to your code any. In other words, Appium & Webdriver clients is not technically "test frameworks" –they is "automation Libraries". You can manage your test environment any to like!
We meet requirement #3 in the same way:webdriver have become the de facto standard for automating Web browsers, and is a W 3 C working Draft. Why does something totally different for mobile? Instead we have extended the protocol with extra APIs methods useful for mobile automation.
It should be obvious that requirement #4 is a given–you ' re reading this because Appium is open source.
First, in order to be able to implement the 2nd described in philosophy, that is, mobile automation testing should not be limited to a language and a specific framework; that is, anyone can use their most familiar language and framework to do mobile automation testing Appium chose the design pattern of client-server. As long as the client is able to send HTTP requests to the server, then it is possible for the client to implement in any language, which is how appium and webdriver support multiple languages;
Second, in order to be able to do not for the mobile end of the automated testing and re-invent the wheel, re-write a set of Earth-shattering API, that is, the API in the Webdriver protocol is good enough, to improve on it , this idea, Appium extended the Webdriver protocol without having to go back to a set of implementations. The advantage is that the previous Webdriver API can be inherited directly, the previous webdriver all kinds of language binding can be used, eliminating the effort to develop a client for each language;
The last appium of course is open source, which also achieves the last point in philosophical thinking.
Go: Appium---Mobile automation test