Appium Environment Construction and genymotion Simulator installation under Mac OS

Source: Internet
Author: User
Tags install node appium

Description: The native Mac has been installed with: Python3, JDK, node. js, Selenium

Appium Environment Construction

STEP1: Installing the Appium Python client library1, command: Pip install appium-python-client

This package is dependent on selenium and requires a selenium library for communication.

If you find that selenium is not installed, the selenium is installed automatically

* Because the latest version of selenium and Appium are incompatible, make sure to install the 3.3.1 version of Selenium

(1) View Selenium version:

SELENIUM.__VERSION__ (Note that there are two underscores here before and after version)

(2) If the version is not 3.3.1
Pip Uninstall Seleniumpip Install selenium==3.3.1 (the installed version will be uninstalled when installed)
STEP2, installing Appium server (JS-based) (to install node. JS first) method One: node. js & NPM
NPM install-g Appium

*node.js can be understood as JS interpreter, when the installation node comes with NPM,NPM equivalent to Python pip, is the package management tool

* Not recommended: This method installation process is too slow, there may be strange problems during the installation process, it is not recommended to use this method to install

view version after node. JS installation succeeds:
Node-v

installation process:
NPM install-g Appium

Intercept the error at the beginning of the execution of this command:

There are various warning in the middle: the hint that NPM needs to be upgraded:
NPM i-g NPM

Reinstall: method Two: Appium Desktop

Includes the node. JS Environment, all packaged, and also contains the source code for Appium server

Project Address: Https://github.com/appium/appium-desktop

: Https://github.com/appium/appium-destop/release/latest

Install EXE file: Appium-desktop-setup-1.5.0-ia32.exe

The installation speed is also very slow, after the installation will generate an icon on the desktop (download is too slow to abandon this method)Step3, installing adroid Studio:Android app automation, Appium Server relies on Android SDK website: https://developer.android.com/studio/index.html official Chinese website: https:// developer.android.com.google.cn Download and install Android Studio (also an IDE) the first boot is slower because you need to download some resources from the network https:// developers.google.cn, select and click Android File at the bottom of the page larger (2G), it is recommended or install the entire Android Studio can also choose to install only command-line tools

* Installation path: Do not have spaces on windows, except for the space between the words of Android Studio itself, Windows to set environment variables, will use the ADB,

C:/tools/android/sdk/platform-tools

First Open: *HAXM will greatly increase the speed of the virtual machine, and when you open Android Studio you have been installed to select the phone's Android system click on Finish will download the corresponding version of Android system selected from the Internet Click to create a virtual device, select the phone model selection Phone corresponding operating system image, click Download, agree to the agreement all the way next down, the download process is also slower download complete: Click to run:STEP4, installing the JDKUse the latest JDK (download install not to repeat)STEP5, installing the simulatorInstall the Android phone Simulator: The AVD manager that comes with Android Studio (a simulator for Android Device Manager)

Start Android Studio and start the virtual machine more trouble, you can start directly with the following command (Windows to add the/users/alisa/library/android/sdk/tools path to the environment variable)

Command: Emulator @avd_name launch Android Studio directly (I tried this method did not start successfully)

to view the name of the virtual machine:

Emulator @Nexus_5X_API_26

* This command can be added to the batch command, it is more convenient, not every time you run Android studio,android Studio is more expensive resources (the author did not kiss)genymotion Simulator:Download genymotion:https:/www.genymotion.com, click Resource->fun Zone

Must register (mailbox activation) in order to download, download the personal version , use this simulator when using this account to login

Genymotion on Windows is dependent on virtual box's

* Recommended, start faster

Install Genymotion:Open: Error prompting when installing genymotion: Download Virtual box:https://www.virtualbox.org/wiki/downloads Install virtual BoxWhen you open a compressed package: Click on the box to continue the installation failure: installation Failure Reason:

Status: Virtual Box opens the interface and also has icons in the application

Baidu looks for the cause of this problem: VirtualBox Install kernel extensions (Kernel extenstion) when installing, and the new security features of MacOS 10.13 High Sierra Prevent external kernel extensions from being installed, so the installation is always blocked by the system. (This machine is also the 10.13 version of the system)

Workaround:

+ = Enter System Preferences-"security and privacy-" general, click Allow, similar to the following interface:

Installation Successful Start installing GenymotionStart: SelectPersonal UseAgreement: Click Close to click Yes to add the device: Select the Android version and device model, (Android 8.0 and Samsung Galaxy S8) to download the system image of the device corresponding to the download process may be slow: Download completed, the installation successful interface display device: * Another way is to install the local OVA file, but the premise is to choose the corresponding model (the author has not tried)After the download is complete, you need to configure the resolution, the default value of the resolution is CPU-intensive, resulting in a run-time comparison card (with a delay), the resolution is reduced, such as 720x1280 startup double-click to run or click Start on the Mac on the virtual machine resolution low will appear after the interface layout is not normal: (cause unknown) Back to the default resolution is normal: (the default is English, you can modify the language in the virtual machine)

Appium Environment Construction and genymotion Simulator installation under Mac OS

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.