Appium is an open-source tool for automating native, mobile web, and hybrid applications on both iOS and Android. Appium supports app automation across a variety of platforms, like iOS, Android, and Windows. Each platform is supported by one or more “drivers”, which know how to automate that particular platform.
Appium was designed to meet mobile automation needs according to a philosophy outlined by the following four tenets:
- You shouldn’t have to recompile your app or modify it in any way in order to automate it.
- You shouldn’t be locked into a specific language or framework to write and run your tests.
- You can use any testing framework.
- A mobile automation framework shouldn’t reinvent the wheel when it comes to automation APIs.
- WebDriver model that’s already the standard for web automation.
- Appium is using REST API protocol
Appium is a server written in Node.js. It can be built and installed from source or installed directly from npm.
~ npm install -g appium ~ appium
Verifying the Installation
To verify that all of Appium’s dependencies are met you can use appium-doctor. Install it with:
~ npm install -g appium-doctor ~ appium-doctor
info AppiumDoctor Appium Doctor v.1.4.3 info AppiumDoctor ### Diagnostic starting ### info AppiumDoctor ✔ The Node.js binary was found at: /usr/local/bin/node info AppiumDoctor ✔ Node version is 10.8.0 info AppiumDoctor ✔ Xcode is installed at: /Library/Developer/CommandLineTools info AppiumDoctor ✔ Xcode Command Line Tools are installed. info AppiumDoctor ✔ DevToolsSecurity is enabled. info AppiumDoctor ✔ The Authorization DB is set up properly. info AppiumDoctor ✔ Carthage was found at: /usr/local/bin/carthage info AppiumDoctor ✔ HOME is set to: /Users/josdem info AppiumDoctor ✔ ANDROID_HOME is set to: /Users/josdem/Library/Android/sdk info AppiumDoctor ✔ JAVA_HOME is set to: /Users/josdem/Java/jdk-11.jdk/Contents/Home info AppiumDoctor ✔ adb exists at: /Users/josdem/Library/Android/sdk/platform-tools/adb info AppiumDoctor ✔ android exists at: /Users/josdem/Library/Android/sdk/tools/android info AppiumDoctor ✔ emulator exists at: /Users/josdem/Library/Android/sdk/tools/emulator info AppiumDoctor ✔ Bin directory of $JAVA_HOME is set info AppiumDoctor ### Diagnostic completed, no fix needed. ### info AppiumDoctor info AppiumDoctor Everything looks good, bye! info AppiumDoctor
You can browse a project that shows how to implement Appium here, this project is using this technologies:
- Appium Server
- Appium Java Client
- Junit 5
You can download the code here:
git clone email@example.com:josdem/jugoterapia-appium.git