[Android] 如何生成 MonkeyRunner API Reference文檔

轉自:http://www.cnblogs.com/lgxqf/archive/2011/09/18/2180643.html


寫一個help.py

然後用命令 monkeyrunner.bat help.py

即可生成help.html

#help.py

from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice

text = MonkeyRunner.help("html");

f = open('help.html', 'w')

f.write(text);

f.close();



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章