• appium 出错,大神来看下 at 2015年04月17日

    #5 楼 @mzl19860128 build-tools 建议装多一个 19(4.4)以上的。

  • appium 出错,大神来看下 at 2015年04月17日

    应该是升级没完全吧。你有把 sdk manager 里标记可以升级的 Tools 都升级了吗?

  • #8 楼 @mildshark 我也没别的意思,只是想告诉你这个问题你直接看原文地址就知道答案了。
    原文在 Google Tester Blog 上,testerhome 也有转载过原文。

  • Appium autoLaunch 问题 at 2015年04月17日

    #5 楼 @kilmer :thumbsup: 研究通了后面分享一下吧!

  • Appium 目前没有你提到的类似 robotium 的方法,而且后面也不一定会有,因为它要遵循 webdriver API 规范,目前规范里没有你提到的这个方法。

    你可以封装一下,自己做个 scrollToSide 出来啊。

  • Appium autoLaunch 问题 at 2015年04月17日

    另外,麻烦加一下头像。。。

  • #6 楼 @mildshark 我有注明原文地址,你可以看看。

  • Appium autoLaunch 问题 at 2015年04月17日

    #2 楼 @kilmer 代码的注释里已经说得够清楚了

    // if user has passed in desiredCaps.autoLaunch = false
    // meaning they will manage app install / launching
    

    翻译过来就是:如果用户设置了 desiredCaps.autoLaunch = false,那么这意味着他们会负责管理应用的安装/启动。

    这是 autoLaunch 本身的设计目的,不是 bug 。

  • Appium autoLaunch 问题 at 2015年04月17日

    autoLaunch 配置为 false 是设计给手动 launch 被测应用这样的场景使用的(例如我测试场景下的被测应用需要跳转到另一个指定应用,因此需要安装两个应用,这时候默认只安装被测应用这种设计就不够用了)。手动 launch 的相关文档:
    https://github.com/appium/appium/blob/89dbea6bcbbe17498206f61aeee243592ac7ac5d/docs/cn/writing-running-appium/appium-bindings.cn.md#%E5%90%AF%E5%8A%A8-launch

    autoLaunch 的默认值是 true

  • appium.app Inspector 启动方法 at 2015年04月17日

    #10 楼 @mildshark 模拟器没问题啊。只是模拟器的名字和 iOS 版本要对应起来。否则会找不到模拟器。
    举个例子,有个模拟器 iPhone 6 ( 8.3 Simulator )
    你必须选择 deviceName: iPhone 6, 然后 platformVersion: 8.3 ,否则可能起不来(它会自动把 deviceName 和 platformVersion 组合起来成为 iPhone 6 ( 8.3 Simulator )

  • 官网示例代码里面文件名带有 sauce 的都是给 sauce lab( Appium 背后的公司,拥有可以通过 appium 脚本进行测试的企业级测试云)用的。
    你使用不带有 sauce 的示例代码就好了。

    PS:麻烦下次发帖时遵循论坛排版要求,不要把所有内容揉在一起,看起来很不专业也不便于阅读。

  • #1 楼 @seveniruby 嗯。其实 google 自己的测试指南 也提倡 UIAutomator 用来做跨应用,Expresso 做单应用。

  • android 真机测试遇到问题 at 2015年04月16日

    #10 楼 @mzl19860128 嗯,经他提醒确实你的 uiautomatorviewer 版本比较低(高一点的左上角应该有 4 个按钮),有可能是这个问题。
    你升级后再试试?

  • android 真机测试遇到问题 at 2015年04月16日

    #6 楼 @mzl19860128 这么奇怪?你确定你新找的手机是 Android 4.4.2 ?你再换台手机试试?
    API 18 以上应该都有的。

  • android 真机测试遇到问题 at 2015年04月16日

    在 stackoverflow 找到一个比较靠谱的答案:

    the explanation is android 4.3 has the id component in uiautomatorviewer. Android versions less than API level 18 will not be able to interact with the resource-id of the element.

    只有 API level 18 (4.3) 以上的 UIAutomator 才能使用 resource-id

    http://stackoverflow.com/questions/21399503/real-device-vs-emulator-uiautomator-does-not-show-resource-id-for-the-app

  • appium.app Inspector 启动方法 at 2015年04月16日

    #6 楼 @lsz7741brew install ideviceinstaller 试试? build-in 的那个貌似用不了。

  • android 真机测试遇到问题 at 2015年04月16日

    给多一些信息啊,例如模拟器的 Android 是什么版本,真机是什么版本,没有 id 这一项具体是什么情况(发个有 id 的和没 id 的 UIAutomatorViewer 截图对比一下)?

    UIAutomator 不需要 root 的。

  • #1 楼 @cissysnail 另外,根据你的 logcat ,问题应该出在你的 apk 上。第一个错误提示不是说找不到文件,是说这个动态库指向的链接出错。

    从截图和你的描述上看,你使用的真机和模拟器最大的区别是你的模拟器配置使用 x86 处理器,真机一般使用 arm 处理器,你确定你的 apk 能在不作修改的情况下在 x86 上工作吗?如果不确定,你找个 x86 的真机试试就知道了。

    PS:麻烦改一下标题,你这个是 Android 模拟器,不是虚拟机……

  • #1 楼 @cissysnail 你是不是在前面加了大于号:

    > 之前学习都是用的真机,即使是在...
    

    加了大于号的都会被识别为引用。
    标题应该用井号:

    # title
    
  • appium.app Inspector 启动方法 at 2015年04月16日

    我查到这个相关 issue :
    https://github.com/appium/appium/issues/4216
    里面有一个人提到

    @ShiranDadon was correct about the UDID being incorrect. On my Windows device, I retrieved the UDID from iTunes (not sure where else to get it from on Windows), and iTunes makes all characters in the UDID uppercase. If you use XCode on a Mac to get the UDID, the alphabetic characters are all lowercase (as least for my device).

    By using the uppercase UDID, I am able to reproduce the issue. By using the correct UDID from XCode, the issue is NOT reproducible.

    你试试把 UDID 改为全小写?

    PS:下次贴代码或 log 麻烦用代码块。

  • 这个签名不是在打包的时候设置的,是在应用里的 Provisioning Profile 选项里面设置的。
    你用这个错误信息去 stackoverflow 搜一下就有详细答案了。

  • appium.app Inspector 启动方法 at 2015年04月16日

    #1 楼 @testly 谢谢支持。本来没打算写的,只是最近 Q 群问这个的人比较多,而且让他们先开 session ,大多都不大清楚什么是 session ,所以写一下。

  • 这句话不是告诉你了吗:

    instruments Permission to debug com.xxxx.xxxxx was denied , The app must be signed with a devepoment identity (e.g. iOS Developer)