Android Monkeyrunner 生成API引用文档

来源:互联网 发布:大数据 智能交通 编辑:程序博客网 时间:2024/05/01 13:34

环境:windows

1.编写python脚本help.py

# Imports the monkeyrunner modules used by this programfrom com.android.monkeyrunner import MonkeyRunner, MonkeyDevicetext = MonkeyRunner.help("html");f = open('help.html', 'w')f.write(text);f.close();

2.把脚本放到sdk\tools目录下

3.命令行到此sdk\tools目录下执行命令:

 monkeyrunner help.py


4.执行完毕生成对应help.html文档。


参考出处:

http://stackoverflow.com/questions/4396408/where-is-the-help-py-for-androids-monkeyrunner

原创粉丝点击