NODEJS,NPM appium Win7 installation process (Python)

Source: Internet
Author: User
Tags appium

Nodejs installation process:
1. Download Windows Installer (. msi), http://nodejs.org/download/, double-click Install
2, the command line input node-v display version number node-v0.10.35, indicating the successful installation
Note: Node NPM is an integrated

Appium Online Installation

(1) Enter cmd command line

(2) Input command: NPM install-g appium or
NPM--registry http://registry.cnpmjs.org install-g appium (recommended this, NPM's domestic image)
Note:-G global parameters

Note: Fq download more reliable

(3) Wait for the update to complete

(4) After installation, check if the Appium is installed successfully.

Go to cmd command line, enter Appium
Tip: Socket.io started instructions are installed.

(5) Check whether the environment required for Appium is OK (this step is important)
Enter cmd command line, enter Appium-doctor, the following prompt appears, all Checks were successful, indicating that the environment is successful.

(6) Install Apache Ant (This step saves)
to install Apache Ant (http://ant.apache.org/bindownload.cgi). Unzip the folder and add the path to the environment variable.
Variable: ant_home value: D:\AutoTest\ant-1.9.4
Set path:%ant_home%\bin;
Test if Ant is successfully installed, go to cmd command line: Enter ant, if not specified Build.xml will output: Buildfile:build.xml does notexist! Build failed
(7) Install Apache Maven (This step saves)
Download Maven (http://maven.apache.org/download.cgi), unzip the folder, and add the path to the environment variable.
Variable m2_home value: D:\AutoTest\maven-3.1.1
Set path:%m2_home%\bin;
Test if MAVEN is successful, run cmd, enter mvn-version If successful, environment information such as MAVEN version appears.

Installation: Python+webdriver Environment
The first step: Install Active-python, double-click the executable file, directly installed by default.
Step Two: Install Selenium webdriver
1. Open cmd to directory D:\Python27\Scripts
2. Command: Pip install Selenium (pip install Selenium-i http://pypi.douban.com/simple (with domestic address))
3. Open the Python shell or Idel interface, enter the from selenium import Webdriver If the error does not indicate that you have installed selenium for Python successfully.
4. Install Appium-python-client: (This step is important, must)
Enter cmd, enter: Pip install appium-python-client
When all of the above is installed, the final example is to perform the test:
1. Open ADT, create an emulator, and launch the Android emulator.
2. Start Appium in cmd
Input: Appium
3. Open a different cmd terminal window. Switch to the instance code path and execute the android_contacts.py file.

PS: Also refer to: https://testerhome.com/topics/653

NODEJS,NPM appium Win7 installation process (Python)

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.