Skip to content

Instantly share code, notes, and snippets.

@HQMIS
Created December 30, 2012 06:40
Show Gist options
  • Select an option

  • Save HQMIS/4411289 to your computer and use it in GitHub Desktop.

Select an option

Save HQMIS/4411289 to your computer and use it in GitHub Desktop.
AndroidViewClient 使用记录
#! /usr/bin/env monkeyrunner
# Script Name: androidviewclient.py
# Author Email: huangqimin@baidu.com
# Note:
# 1、 主页:
# https://github.com/dtmilano/AndroidViewClient
# 2、 例子
# https://github.com/dtmilano/AndroidViewClient/blob/master/AndroidViewClient/examples/envsetup.sh
import sys
try:
sys.path.append("C:\AndroidViewClient\AndroidViewClient\src")
except:
pass
print sys.path
from com.dtmilano.android.viewclient import ViewClient
C:\Documents and Settings\huangqimin>"E:\Program Files\tools\monkeyrunner.bat" C
:\androidviewclient.py
['lib\\monkeyrunner.jar:C:\\', 'E:\\Program Files\\tools\\lib\\Lib', 'E:\\Progra
m Files\\tools\\lib\\jython.jar\\Lib', '__classpath__', '__pyclasspath__/', 'C:\
\AndroidViewClient\\AndroidViewClient\\src']
C:\Documents and Settings\huangqimin>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment