老李推荐:第8章5节《MonkeyRunner源码剖析》MonkeyRunner启动运行过程-运行测试脚本

老李推荐:第8章5节《MonkeyRunner源码剖析》MonkeyRunner启动运行过程-运行测试脚本


MonkeyRunner在准备好AndroidDebugBridge和DeviceMonitor等服务之后,就基本上是解决了和目标设备通信的问题了,那往下需要做的就是把测试脚本运行起来了。

178   public static void main(String[] args) {

179     MonkeyRunnerOptions options = MonkeyRunnerOptions.processOptions(args);

180

181     if (options == null) {

182       return;

183     }

184

185

186     replaceAllLogFormatters(MonkeyFormatter.DEFAULT_INSTANCE, options.getLogLevel());

187

188     MonkeyRunnerStarter runner = new MonkeyRunnerStarter(options);

189     int error = runner.run();

190

191

192     System.exit(error);

193   }

194 }

代码8-5-1 MonkeyRunnerStarter - Main


你可能感兴趣的:(软件测试开发)