#14 楼 @zhouxiaoyagirl 你明显写错了啊。
desired_caps['app-activity'] = '.simpleactivity.SplashActivity'
你看看自己的是神马?
#5 楼 @mandy_hit android apk 的 build 可以参考 android 的发布。只要开发的签名就可以了。这是 python 脚本, python 的运行请参考 python 文档。
#6 楼 @mandy_hit assert 是你的验证框架做的啊,和 appium 无关。
这是一个 bug 已知
有必要再顶下此贴,之后新帖会被审核,如果相同问题,将删除整理至同一话题。明明有日志,贴图不贴日志的直接删贴。另外,请大家发帖前,先搜索。
翻翻以前的文章,都有的
使用的是开发者帐号编译的,开发者证书电脑上面也有
运行的时候 app 可以打开,但是闪退了,而且连续好几次闪退。
求救。
下面是 log
info: iOS SDK Version set to 7.0
info: Detecting automation tracetemplate
info: Not auto-detecting udid, running on sim
info: Parsed app Localizable.strings
info: Not setting locale because we're using a real device
info: Not setting iOS and app preferences since we're on a real device
info: Starting iOS device log capture via idevicesyslog
info: Not setting device type since we're connected to a device
info: Creating iDevice object with udid 843bb46631ac5c1408af67ae25a48d3b2e2c4888
info: Couldn't find ideviceinstaller, trying built-in at /Applications/Appium.app/Contents/Resources/node_modules/appium/build/libimobiledevice-macosx/ideviceinstaller
info: Installing app using cmd: /Applications/Appium.app/Contents/Resources/node_modules/appium/build/fruitstrap/fruitstrap install --id 843bb46631ac5c1408af67ae25a48d3b2e2c4888 --bundle /var/folders/89/vz7ytzl53p368skgwxh9tkmw0000gn/T/114231-2055-1v0c7r1/Payload/EcoRobot.app
debug: Creating instruments
info: Instruments is at: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments
info: [INSTSERVER] Instruments socket server started at /tmp/instruments_sock
info: Attempting to run app on real device with UDID 843bb46631ac5c1408af67ae25a48d3b2e2c4888
info: Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate -w 843bb46631ac5c1408af67ae25a48d3b2e2c4888 /var/folders/89/vz7ytzl53p368skgwxh9tkmw0000gn/T/114231-2055-1v0c7r1/Payload/EcoRobot.app -e UIASCRIPT /Applications/Appium.app/Contents/Resources/node_modules/appium/node_modules/appium-uiauto/uiauto/bootstrap.js -e UIARESULTSPATH /tmp/appium-instruments
info: And extra without-delay env: {}
info: And launch timeout: 90000ms
info: [INST STDERR] 2014-03-31 17:00:06.277 instruments[2112:507] Permission to debug com.www.ecovacs.com.EcoRobot was denied. The app must be signed with a development identity (e.g. iOS Developer).
info: [INST STDERR] 2014-03-31 17:00:06.279 instruments[2112:507] Recording cancelled : At least one target failed to launch; aborting run
info: [INST STDERR] Instruments Trace Error : Error Domain=com.apple.instruments Code=1 "Error Starting Recording" UserInfo=0x7fe197257950 {NSLocalizedDescription=Error Starting Recording, NSLocalizedRecoverySuggestion=At least one target failed to launch; aborting run}
Instruments Trace Error : Failed to start trace.
是啊 把这个功能提交到官方去呗
#4 楼 @benlooking 使用安装包了,但是安装包地址也被墙了。 最好就是开 ***, 来更新。
#1 楼 @seveniruby 我向官方反应了这个问题,希望他们能放到我们能拿到的地方,或者我们提供 FTP
#6 楼 @zhouxiaoyagirl 这个问题估计会在下一个版本中修复。你可以跟踪下这个问题。
求人试用!
期待更多的更深入的分享
com.android.settings 把这个加入 blacklist
执行单一 apk:
monkey –p <options> -c <options> -s <seed> <限制语句> --throttle <milliseconds> -v 执行次数> C:\monkey_test.txt
执行 apk 集合:
monkey –pkg-blacklist-file /data/blacklist.txt -c <options> -s <seed> <限制语句> --throttle <milliseconds> -v 执行次数> C:\blacklist_test.txt //执行黑名单以外的应用
或
monkey –pkg-whitelist-file /data/whitelist.txt -c <options> -s <seed> <限制语句> --throttle <milliseconds> -v 执行次数 > C:\whitelist_test.txt //执行白名单的应用
cmds/monkey/src/com/android/commands/monkey/Monkey.java
/**
* Load a list of package names from a file.
*
* @param fileName The file name, with package names separated by new line.
* @param list The destination list.
* @return Returns false if any error occurs.
*/
private static boolean loadPackageListFromFile(String fileName, HashSet<String> list) {
BufferedReader reader = null;
try {
reader = new BufferedReader(new FileReader(fileName));
String s;
while ((s = reader.readLine()) != null) {
s = s.trim();
if ((s.length() > 0) && (!s.startsWith("#"))) {
list.add(s);
}
}
}
#4 楼 @seveniruby 就是 robotium
LICEcap 是用来录制 gif 的,推荐