帮助文档非常详细,赞!
阿拉伯语就是从左往右读的,所以 android 系统在显示这类语言时,就会自动居右展示。
run cts --plan Monkey --p packagename --a activityname
赞!
具体地址在哪?
公司屏蔽了 taobao.com~~~
想想还有很多支持者,testerhome 应该会越来越好。
#7 楼 @wcy19881213 #8 楼 @mads nodejs 现在最高版本是 0.12.7,我安装了依然报错版本低。原因是安装的 appium 中自带了 nodejs,并不使用安装的最新版本,到 appium 目录下替换 nodejs 相关文件就 OK 了。或者修改 appium 目录 nodevars.bat 文件里面的内容。
好贴,我最开始用 re-sign.jar 也有这样的问题,没有深究,改用 jarsigner 了。
留言
qq:492497451
差点看成《移动测试大圣归来》
spoon 中有这样一段代码,可以参考
/** Download all screenshots from a single device to the local machine. */
private void pullScreenshotsFromDevice(IDevice device) throws Exception {
// Screenshot path on private internal storage, for KitKat and below.
FileEntry internalDir = getScreenshotDirOnInternalStorage();
logDebug(debug, "Internal path is " + internalDir.getFullPath());
// Screenshot path on public external storage, for Lollipop and above.
FileEntry externalDir = getScreenshotDirOnExternalStorage(device);
logDebug(debug, "External path is " + externalDir.getFullPath());
// Sync device screenshots to the local filesystem.
// TODO only pull from one location, based on android version of device
logDebug(debug, "Pulling screenshots from external dir on [%s]", serial);
String localDirName = work.getAbsolutePath();
adbPull(device, externalDir, localDirName);
logDebug(debug, "Pulling screenshots from internal dir on [%s]", serial);
adbPull(device, internalDir, localDirName);
logDebug(debug, "Done pulling screenshots from [%s]", serial);
}
private void adbPull(IDevice device, FileEntry remoteDirName, String localDirName) {
try {
device.getSyncService()
.pull(new FileEntry[] {remoteDirName}, localDirName,
SyncService.getNullProgressMonitor());
} catch (Exception e) {
logDebug(debug, e.getMessage(), e);
}
}
private FileEntry getScreenshotDirOnInternalStorage() {
String appPackage = instrumentationInfo.getApplicationPackage();
String internalPath = "/data/data/" + appPackage + "/" + SCREENSHOT_DIR;
return obtainDirectoryFileEntry(internalPath);
}
private static FileEntry getScreenshotDirOnExternalStorage(IDevice device) throws Exception {
String externalPath = getExternalStoragePath(device) + "/" + SCREENSHOT_DIR;
return obtainDirectoryFileEntry(externalPath);
}
private static String getExternalStoragePath(IDevice device) throws Exception {
CollectingOutputReceiver pathNameOutputReceiver = new CollectingOutputReceiver();
device.executeShellCommand("echo $EXTERNAL_STORAGE", pathNameOutputReceiver);
return pathNameOutputReceiver.getOutput().trim();
}