)"(因为网址会经常变化,多关注官网 http://brew.sh)安装完以后 ,输入 brew -v 查看版本:Homebrew 1.1.0Homebrew/homebrew-core (git revision 1a39; last commit 2016-11-07Description successUse it to install pytho3.5Direct input to brew install python3.5Enter Python3 after successful installationThe ability to enter the Python edit page is a successful installation5. Install pip into the python3.5
Official website:http://appium.io/NPM Installation:NPM install-g Appium Appium-doctorAppium app DownloadHTTPS://bitbucket.org/appium/appium.app/downloads/1. Install Java and Android environments, and configure environment variables. You can search the tutorial online or refe
Recently in the study of Android automation related content, belonging to the small white one, some problems encountered in the study, there are some learning notes through the blog park down ~ because it is to see some web tutorials, so the content is only as a personal note, by the way to some and I like the small white joint learning ~ ~ (because it was installed before, so the process does not have pictures, a bit boring, but step by step, it can be configured successfully ~)About the instal
Appium Environment Construction
Installation of the SDK:
1. Download, install the SDK, adt configure the Android environment variable: http://developer.android.com
2. Find Windows:installer.exe in the inside
3. Install the default selectable disk
To configure the SDK system variables:
1. Right-click My Computer--Properties--advanced--environment variables2. New
To start the installation:1, first build the Android development environment (Eclipse+jdk+android SDK package +LEVEL17 or above version API)2.SetANDROID_HOMEThe system variable is your Android SDK path, and the tools and platform-tools two directories are added to the system's path path. Because the bread here contains some execution orders .3.installationnode. js, available tohttp://www.nodejs.orgdownload the relevant operating system version4.install
1. Installing the JDK(1) JDK will be installed two times, once is the JDK, the second time is the JRE.(2) environment variable configuration:Add Java_home variable, value:JDK installation pathAdd Classpath variable, value: .; %java_home%\lib\tools.jar;%java_home%\lib\dt.jarModify the path variable, plus this sentence %java_home%\bin;(3) command line Input Java command to detect if installation is successful2. Installing ADT(1) Website: http://tools.android-studio.org/index.php(2) environment var
A Installation
Install DMG, you can download appium-1.4.0.dmg or to find rtx I want, file too large can not add attachments.
Appium provides a doctor that runs Appium-doctor
If there is a problem, Fix it when you enter Y, you can automatically guide the installation.
If you test only io
Appium installation of the environment and the pit along the journeyinstallation of the first step environmentL JAVAJDK Installation and configuration of environment variables I'm not going to tell you this. Online tutorials are all, search for a install itL ANDROIDSDK Installation is also the case I am the direct installation of studio, directly installed the SDKL node. js installation Download, URL: http:
the installation path.After the installation is complete, check that the node version installation is successful: Enter cmd, enter node-v, you can see the version number, indicating success.3) Install ADT, configure environment variables: Http://developer.android.com/sdk/index.html?hl=skDownload Adt-bundle-windows-x86-20140321.zip, directly decompression can.Configure the environment variables, set the android_home system variable to your Android SDK
Tags: png build times you encounter Appium find can't RorUse the cnpm install-G appium command to mount the Times error:Gyp err! Configure ErrorGyp err! Stack Error:can ' t find Python executable "C:\Python\python. EXE ", you c aset the PYTHON env variableThere is a problem with python from the wrong prompt, but there is no problem with the configuration of the
Due to the Appium operation permissions problem, can not be run under sudo, resulting in apt-get installation is not smooth, so have to find another way, and then found a solution through Google.One. Ubuntu 14.04 64bit installation.This is very simple, needless to say, the next Ubuntu14.04 on the internet image, burning into a CD-ROM, or make a U disk boot, the next installation can be.Two. Installation of Appium
/writing-running-appium/caps.cn.md
2. Driver common methods and precautions
1) Common methods:Driver. Hidekeyboard ();//Hide keyboard driver. Backgroundapp (60);//60 seconds after the current application is placed in the background to driver. Lockdevice (3); Lock screen//Open an activity in the current app or launch a new app and open a activitydriver. StartActivity ("Com.iwobanas.screenrecorder.pro", "com.iwobanas.screenrecorder.Recorde
Install Appium client:CMD under input command: Pip install appium-python-clientPycharm Next Simple example, open calculator---Calculate 5+6=?-> off calculator with Appium drive Android emulatorFrom Appium import WebdriverDesired_c
Reference Tutorial: Appium Beginner (5)--python-client Installation and testingWriting Appium automated test scripts using the Python language1. Install PythonVisit the official website of Python: https://www.Python.org/Always point to next until finish.Configure environment variables: My Computer-Properties-Advanced system settings-environment variables-System v
Thanks to this friend's total: 52624417, turn up question 1. Error:failed to start an Appium session, Err was:Error:Requested a new session but one is in progressThe previous session was not closed, and then you ran the test instance and did not set the overwrite.Solve:1. Re-stop the Appium service and turn on the Appium service2. Set cover session in Genarel set
following commandruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"6. NodeIt's convenient to have a brew installation node.brew install node7. NPMguowenxie-macbookair:~ guowenxie$ npm -v2.0.0-alpha-58. AppiumYou can now start installing Appiumguowenxie-macbookair:~ guowenxie$ appium -v1.2.09. WDNPM I
Io.appium.java_client.android.AndroidDriver. (androiddriver.java:73)Cause of the problem, Appium server side upgrade to 1.6.5, Appium the sub-module under the installation directory \appium\node_modules\appium-uiautomator2-driver folder Uiautomator2 below 2 Essential Android APK files:appium-uiautomator2-server-debug-
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.