appium + robotframework + python environment to build

appium + robotframework environment to build steps (Windows systems appium automated testing, test only applies to Android machine; ios machine after appium need to build environmental testing in mac)

Step structures, divided into three parts:

A, RF environment to build

robotframework to build, the reference micro-channel public number: RobotFramework

order

Installation package name

installation method

download link

Remark

1

python

1.exe file, simply double-click the default installation

2. After the installation is provided Python environment variables: the "D: \ Python27" and "D: \ Python27 \ Scripts" environment variable added to "the PATH" item (note between environmental variables with ";" apart)

https://www.python.org/downloads/release/python-2713/

According to the computer-digit download, I downloaded the 64-bit python2.7.13.msi file (the latest version); This version has built-pip python

2

wxPython

exe file, download the default installation

https://sourceforge.net/projects/wxpython/files/wxPython/3.0.2.0/

To download the PC-digit, python wxPython consistent with the version number; eg, I need to download a wxPython3.0-win64-3.0.2.0-py27.exe

3

robotframework

Command line installation:

pip install robotframework

no

pip already included in python, you do not need to re-download, you can directly use

4

robotframework-ride

Command line installation:

pip install robotframework-ride

no

After successful installation, the command-line input directly ride.py check whether the installation was successful

5

robotframework-appiumlibrary

Command line installation:

pip install robotframework-appiumlibrary

no

Other required libraries, can be installed directly through the pip install

 

Robotframework successful installation check (Reference: http://www.blogjava.net/lijun_li/archive/2016/10/25/431926.html ):

1. Configure ride to desktop shortcut:

1) Create a shortcut, right-click on the desktop, the pop-up menu, select New - Shortcut, and then enter the command line, C, type in the location of the object: \ Python27 \ pythonw.exe -c "from robotide import main; main () "Note" C: \ Python27 \ pythonw.exe "is a python installation path, the path you need to replace a directory of Python; note the double quotes in English.

2) Click Next, type a name for the shortcut you want to create, click Finish, see the icon representation has been built.

3) display unhappy, robot icon icon to be replaced, you need to right-click on the shortcut - Property, click the "Change Icon", found in the browser in the directory F: \ Python27 \ Lib \ site-packages \ robotide \ widgets, which has a after robot.ico icon (everyone to own the same path to the installation directory to find it) vote for it, point to open, and then determine on it after determining, double-click the icon to enter the ride operation page

Under 2.cmd command ride.py, can successfully enter the ride page robotframework successful installation instructions

Two, Android environment to build

order

Installation package name

installation method

download link

Remark

1

JDK

Double-click the installation and configuration environment variable:

1. JAVA_HOME

2. CALSSPATH:

.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar; 

3.path:

%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;

https://www.java.com/zh_CN/download/manual.jsp

 Android is a Java language development, I would like first of all to develop Android applications requires Java environment, so, we first need to install the Java environment

2

SDK

Download and install, configure the environment variables:

1. ANDROID_HOME:

D:\android-sdk

2.path:

;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;

http://developer.android.com/sdk/index.html

Android SDK provides you the API libraries and development tools to build, test, and debug applications, Android. Simply put, Android SDK can be seen as a software development and for running Android applications.

3

Andrews simulator

Download and install recommended night God simulator

https://www.yeshen.com/

Simulate real machine, speed comparable to the speed of the real machine

Three, appium environment to build

order

Installation package name

installation method

download link

Remark

1

node.js

exe file, double-click installation, after installing environment variable node set, the C: \ Program Files \ nodejs (using its own path) in the environment variable "the PATH" item (note between environmental variables with ";" apart)

http://nodejs.org/download/

Detecting whether the installation was successful:

Cmd command window, enter npm

2

appium

cmd command line:

npm install -g [email protected]

Configuration environment variable:

1. APPIUM_HOME;

D: \ Appium \ Appium \ node_modules (according to their installation path configuration)

2.path:

%APPIUM_HOME%\.bin

no

Download version of appium 1.5

3

Appium-python-client

1. Download and install

2. command to install:

Pip-python-client install epochs

https://pypi.python.org/pypi/Appium-Python-Client/0.24

 

Check after successful installation: cmd input appium-doctor

This, appium + robotframework has been successfully installed.

Guess you like

Origin www.cnblogs.com/jodie2019/p/12424674.html