点赞
—— 来自 TesterHome 官方 安卓客户端
@doctorq
我想问下,Jenkins 在执行 bat 脚本时,设备已识别,但是无法执行,是怎么回事?
12-13 17:35:39 W/DeviceManager: Fastboot is not available.
Android CTS 4.4_r0
Non-interactive mode: Running initial command then exiting.
Using commandline arguments as starting command: [run, cts, --plan, Monkey]
12-13 17:35:39 I/ConfigurationFactory: Loading configuration 'cts'
12-13 17:35:39 I/DeviceStateMonitor: Waiting 30000 ms for device YT910D90AU shell to be responsive
12-13 17:35:39 I/ManagedDeviceListener: Device connected YT910D90AU
12-13 17:35:39 I/DeviceManager: Detected new device YT910D90AU
12-13 17:35:40 I/CommandScheduler: Scheduling 'cts' on 'AndroidDevice'
12-13 17:35:41 I/CommandScheduler: Waiting for invocation threads to complete
12-13 17:35:41 I/LogRegistry: Saved log to C:\Windows\TEMP\tradefed_global_log_6242512099387051107.txt
12-13 17:35:41 I/CommandScheduler: All done
请按任意键继续. . .
12-13 17:35:41 W/DeviceManager: Fastboot is not available.
Android CTS 4.4_r0
Non-interactive mode: Running initial command then exiting.
Using commandline arguments as starting command: [run, cts, --plan, Monkey]
12-13 17:35:41 I/ConfigurationFactory: Loading configuration 'cts'
12-13 17:35:41 I/DeviceStateMonitor: Waiting 30000 ms for device YT910D90AU shell to be responsive
12-13 17:35:42 I/DeviceManager: Detected new device YT910D90AU
12-13 17:35:42 I/ManagedDeviceListener: Device connected YT910D90AU
12-13 17:35:42 I/CommandScheduler: Scheduling 'cts' on 'AndroidDevice'
12-13 17:35:43 I/CommandScheduler: Waiting for invocation threads to complete
12-13 17:35:43 I/LogRegistry: Saved log to C:\Windows\TEMP\tradefed_global_log_4300395381232860371.txt
12-13 17:35:43 I/CommandScheduler: All done
请按任意键继续. . .
[workspace] $ cmd /c call C:\Windows\TEMP\hudson2657637810539007819.bat
@doctorq 你好,代码中【 mWSRPATH】这个参数的实际值 是在哪里配置的呢?
private void generateMonkeyReslutTxt(MonkeyReporter reporter) {
if (mWSRPATH == null || mMonkeyResultPath == null) {
return;
}
File monkeyResult = new File(mMonkeyResultPath);
String url = mWSRPATH + File.separator + reporter.getmDir()
+ File.separator + "index.html";
try {
if (! monkeyResult.exists()) {
monkeyResult.createNewFile();
}
FileUtil.writeToFile(mDeviceSerial + "," + url + "\n", monkeyResult);
.....
}
}
@doctorq 我把源码中的 MonkeyReporter.java 下的 mDir 字段改成固定的字符串,将原来的时间命名文件夹换成固定的,再导出两个 jar 包替换原来的 jar 包,运行后为何没起作用呢?