您的位置:首页 > 产品设计 > UI/UE

How to generate monkeyrunner build-in help?

2011-04-22 16:47 357 查看
The below script is tested OK on Windows XP

Step1. cmd -> cd C:/android-sdk-windows/tools

Step2. monkeyrunner monkeyrunner_api_ref.py

Step3. Find it monkeyrunner_api_ref.txt in ./tools

Step3. Find it monkeyrunner_api_ref.txt in ./tools

Python代码





#!/usr/bin/env python

from
com.android.monkeyrunner
import
MonkeyRunner

file_ref = open('./monkeyrunner_api_ref.txt'
,
'w'
)

print
>> file_ref, MonkeyRunner.help()

#!/usr/bin/env python
from com.android.monkeyrunner import MonkeyRunner
file_ref = open('./monkeyrunner_api_ref.txt','w')
print >> file_ref, MonkeyRunner.help()
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: