appium1.0环境搭建:windows下eclipse+python

上一篇 / 下一篇  2014-06-11 14:46:03 / 个人分类:appium

1:android,eclipse,python开发工具,环境都具备
2:下载appium需要的python-client库,并安装

Getting the Appium Python client

There are two ways to install and use the Appium Python client.

  1. Install from PyPi, as 'Appium-Python-Client'.

    pip install Appium-Python-Client
  2. Install from source, via PyPi. From 'Appium-Python-Client', download and unarchive the source tarball (Appium-Python-Client-X.X.tar.gz).

    tar -xvf Appium-Python-Client-X.X.tar.gz
    cd Appium-Python-Client-X.X
    python setup.py install
  3. Install from source via GitHub.

    git clone git@github.com:appium/python-client.git
    cd python-client
    python setup.py install
3:打开下载的appium.exe,且处于launch状态
4:打开eclipse,新建python project,写测试脚本,新手的话,可以引用appium源码中自带的实例
5:启动一个模拟器,版本要17 or higher.
6:开始执行测试脚本,右键run as“Python Run”
7:你就能在模拟器,appium上看到执行过程。



selenium.common.exceptions.WebDriverException: Message: "A new session could not be created. (Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity)" 
出现这个错误,查了一下竟然是emulator没有要测试的app

TAG:

 

评分:0

我来说两句

Open Toolbar