• 翻翻以前的文章,都有的

  • @sundaxian

    使用的是开发者帐号编译的,开发者证书电脑上面也有
    运行的时候 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

  • #4 楼 @monkey 有可能会关闭的吧? 恢复出厂都可能搞到呢。

  • 执行单一 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 //执行白名单的应用
    
  • #6 楼 @luyi0824 setValue()

  • #1 楼 @syl 以换行分隔。

    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);
                }
            }
        }
    
    
  • 如何申请加薪 at March 23, 2014

    #4 楼 @monkey 。。。。我指的不是时间很短的频繁跳槽,2 年一跳,3 次就够了。

  • Calabash Android 简介 at March 23, 2014

    #4 楼 @seveniruby 就是 robotium

  • Calabash Android 简介 at March 22, 2014

    LICEcap 是用来录制 gif 的,推荐

  • 如何申请加薪 at March 22, 2014

    #2 楼 @jakewendao 我是这样做的,一直跳,然后到一个稳定的满意的薪水,然后就去挑有兴趣的公司

  • 如何申请加薪 at March 21, 2014

    一般公司会有加薪机制吧。跳槽加薪是比较靠谱的。

  • 开发证书出来的,应该可以吧

  • 运行下 appium-doctor 试试看, 另外贴代码和日志请用 代码块

  • android 的 toast 如何得到 at March 20, 2014

    #6 楼 @seveniruby appium 的 uiautomator 不能搞,没有开放 api。 Selendroid 估计可以。

  • android 的 toast 如何得到 at March 20, 2014

    On iOS, the dev team implemented their own version of toast messages. It's a message that appears in a tiny box for a few seconds. If they add the proper labels then it should work.

    On Android, I'm not sure what can be done as it's an upstream uiautomator issue. Maybe there's some way to monitor accessibility events directly?

    UIautomator 的确不支持。