????monkeyrunner2-?????????????
???????????? ???????[ 2015/11/4 14:35:30 ] ????????monkeyrunner2 ??????????
????????monkeyrunner
??????????????????monkeyrunner????????????????????monkeyrunner???????????????????????monkeyrunner??????????????/???SDK????????????????????????? ?????????????monkeyrunner???????и????????????????Python????; ???????????????????????
????????????monkeyrunner??????
????monkeyrunner -plugin <plugin_jar> <program_filename> <program_options>
??????1??????????????
??????1 monkeyrunner??????????
????monkeyrunner???????
??????????????monkeyrunner???????API?ο???
????monkeyrunner help.py <format> <outfile>
??????Щ???????
????<???>????????????????????HTML??HTML?????
????<OUTFILE>??????????·??????????
???????monkeyrunner????
???????????????Java????????д???monkeyrunner API???????????????.jar???????????????????monkeyrunner API???????????????????е????????????????????????monkeyrunner??????
???????????????monkeyrunner??????monkeyrunner?????? -plugin <plugin_jar>????????????? ??1??
????????????????????????????????monkeyrunner?? MonkeyDevice??MonkeyImage??MonkeyRunner??com.android.monkeyrunner??????monkeyrunner API????
?????????????????????????Android SDK??????????????????com.android.app?????????monkeyrunner???豸????????·??????API?????????á?
?????ò???????
???????.jar????????????????????????????????????????????????????? MonkeyRunnerStartupRunner????.jar??????嵥?????????????????е??????????????????????????ν????????????????????????
????<jar jarfile = "myplugin" basedir = "${build.dir}" >
????<manifest>
????<attribute name = "MonkeyRunnerStartupRunner" value = "com.myapp.myplugin" />
????</manifest>
????</jar>
?????????monkeyrunner?????л???????????????? com.google.common.base.Predicate <PythonInterpreter> ?????磬???????????????????????Щ??????
package com.android.example;
import com.google.common.base.Predicate;
import org.python.util.PythonInterpreter;
public class Main implements Predicate<PythonInterpreter> {
@Override
public boolean apply(PythonInterpreter anInterpreter) {
/*
* Examples of creating and initializing variables in the monkeyrunner environment's
* namespace. During execution?? the monkeyrunner program can refer to the variables "newtest"
* and "use_emulator"
*
*/
anInterpreter.set("newtest"?? "enabled");
anInterpreter.set("use_emulator"?? 1);
return true;
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11