测试之家
  • 社区
  • 问答
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • 注册
  • 登录
新手
seveniruby (思寒_seveniruby)
第 104 位会员 / 2013-10-20
534 篇帖子 • 5031 条回帖
2990 关注者
0 正在关注
11 收藏
专注, 专业, 专心
打赏支持
GitHub Public Repos
  • AppCrawler 1203

    基于appium的app自动遍历工具

  • HogwartsSDET11 34

    霍格沃兹测试学院11期测试开发班学员演练

  • Hogwarts_10 22

  • JavaSDET2 18

    霍格沃兹测试学院Java定向班第二期演练 https://testerh.ke.qq.com/

  • Geek_AppAutomationTesting 14

    极客时间教材与资料

  • AppiumDemo8_Android 12

    第八期演练

  • bashgems 11

    一个增强bash的工具,提供一些函数封装并预加载到shell中提高工作效率

  • appium_online_9 9

  • Geek_AppAutomationTest... 8

    本项目为极客时间与霍格沃兹测试学院的思寒老师共同维护的App自动化测试课程的相关源代码

  • ServiceTestingVip1 6

    霍格沃兹测试学院定向班第一期实战

More on GitHub
  • 個人信息
  • 個人專欄
  • 帖子
  • 回帖
  • 收藏
  • 正在關注
  • 關注者
  • appium 定位问题讨论帖 at 2013年12月27日

    #28 楼 @spikeshen 呵呵,解决了.edittext 继承自 textview, 支持我上面列举的方法.
    第一个坑是 ctrl+v 对应的 event 其实是 meta_ctrl_mask+v, 好几个 ctrl 相关的 event, 当时没测试这个.

    第二个坑是搜狗输入法, 搜狗输入法会截获 ctrl+v, 会让你的输入变成了 v. 所以需要切换为系统默认的输入法.

    两个大坑
    另外 appium 是支持发送 keyevent 的. 我会补充对应的测试用例给官方. 不容易啊.

  • appium 定位问题讨论帖 at 2013年12月27日

    #28 楼 @spikeshen 我看了下 editview 的代码, 是支持的

    public boolean onKeyShortcut(int keyCode, KeyEvent event) {
            final int filteredMetaState = event.getMetaState() & ~KeyEvent.META_CTRL_MASK;
            if (KeyEvent.metaStateHasNoModifiers(filteredMetaState)) {
                switch (keyCode) {
                case KeyEvent.KEYCODE_A:
                    if (canSelectText()) {
                        return onTextContextMenuItem(ID_SELECT_ALL);
                    }
                    break;
                case KeyEvent.KEYCODE_X:
                    if (canCut()) {
                        return onTextContextMenuItem(ID_CUT);
                    }
                    break;
                case KeyEvent.KEYCODE_C:
                    if (canCopy()) {
                        return onTextContextMenuItem(ID_COPY);
                    }
                    break;
                case KeyEvent.KEYCODE_V:
                    if (canPaste()) {
                        return onTextContextMenuItem(ID_PASTE);
                    }
                    break;
                }
            }
            return super.onKeyShortcut(keyCode, event);
        }
    
  • appium 定位问题讨论帖 at 2013年12月27日

    #28 楼 @spikeshen 我也试过 action_paste 了 也不好用 我在看输入法的实现 还打算读读 edittext 的源码试试

  • Appium 每次都会执行 IOS 用例时都要重新 create new session,重新启动 simulator at 2013年12月26日

    #4 楼 @lihuazhang 他没描述清楚 连测试用例代码都没贴, 不太好下结论.对于简单的应用, 放入 setup 就足够了. 如果是路径很深的, 可以自己设计复用, 可以放入更高层级的 setup 里面,

  • appium 定位问题讨论帖 at 2013年12月26日

    #26 楼 @spikeshen 在文档中翻到了这么一段内容, 貌似是 uiautomator 并没有返回所有的控件, 需要显式的设置标记才可以拿到那个粘贴按钮

    Important: The ability to investigate the view hierarchy from an AccessibilityEvent potentially exposes private user information to your accessibility service. For this reason, your service must request this level of access through the accessibility service configuration XML file, by including the canRetrieveWindowContent attribute and setting it to true. If you do not include this setting in your service configuration xml file, calls to getSource() fail.
    Note: In Android 4.1 (API Level 16) and higher, the getSource() method, as well as AccessibilityNodeInfo.getChild() and getParent(), return only view objects that are considered important for accessibility (views that draw content or respond to user actions). If your service requires all views, it can request them by setting the flags member of the service's AccessibilityServiceInfo instance to FLAG_INCLUDE_NOT_IMPORTANT_VIEWS.
    
  • 【解决】appium 使用 by_name(id)定位元素,结果为空 at 2013年12月26日

    #19 楼 @lihuazhang 我也不了解, 有个介绍吗, 这个概念还不知道从什么地方起的.

  • Appium 在脚本中使用 UIAutomation 的脚本 at 2013年12月26日

    我在天天关注他们的 issue, 他们提交的 issue 很重要, 里面有很多信息, 我是从里面看到他们讨论这个, 才知道的.

  • 【解决】appium 使用 by_name(id)定位元素,结果为空 at 2013年12月26日

    #17 楼 @spikeshen appium1.0 就会有完整的 xpath 支持, 到时候问题就没了. 找父类这种事情, 应该从 root 上找.

  • 【解决】appium 使用 by_name(id)定位元素,结果为空 at 2013年12月26日

    #13 楼 @spikeshen 我觉得 xpath 比 id 和 name 还方便, 就算研发设置了 id, 使用 xpath 来描述 id 定位也很直接. 我现在基本上都在用 xpath 了. 在底层, 这三种方式会变成一个描述结构.
    建议采用 page object 方式去搞, 尽量屏蔽定位细节.

  • [翻译] Android and iOS Support 来自 Official Selenium Blog at 2013年12月26日

    帅气, appium 貌似考虑的更远, 他支持的是 ios 的 automation. 这个比 ios driver 更好.
    其次是 selendroid 的地位开始上升了, 我很奇怪的是, selenium 官方为什么没有提 robotium.
    好像 robotium 也要搞 wd 驱动的. 目前也有个 rc 模式了.

  • 【解决】appium 使用 by_name(id)定位元素,结果为空 at 2013年12月26日

    #10 楼 @spikeshen 是的, 是我看错了

    map.put("tabhost", "TabHost");
    map.put("tabwidget", "TabWidget");
    map.put("table", "TableLayout");
    
  • Appium 故障调试 Troubleshooting Appium 中文文档 at 2013年12月26日

    testerhome 的 git 我重新整理过了, 你们同步下吧.
    然后放进去这个文章, 我打算本周发起 pull request
    包含了 monkey 之前的更新, 你的这个文章, 还有我的一个代码 merge

  • 博彦科技 Ellie Mae 离岸软件研发 西安招聘 北京还有少量 Sr.名额 at 2013年12月26日

    #2 楼 @lihuazhang 我是中软资源出来的

  • 【解决】appium 使用 by_name(id)定位元素,结果为空 at 2013年12月26日

    #8 楼 @zws20041984 详细的话, 还是看我们翻译好的 appium 中文文档吧, 你可以搜搜以前的帖子

  • appium 在 android API16 以上真机设备如何做跨应用操作 at 2013年12月26日

    #6 楼 @luis 有, 请看论坛以前放出的 ppt

  • appium 在 android API16 以上真机设备如何做跨应用操作 at 2013年12月26日

    #4 楼 @luis appium 本来就可以了, 你要使用 uiautomator, 而不是 selendroid

  • appium 在 android API16 以上真机设备如何做跨应用操作 at 2013年12月26日

    #1 楼 @luis 大哥 是支持的

  • 使用 RobotFramework 运行 appium 测试用例 at 2013年12月25日

    #25 楼 @luis 修改 python 的 webdriver 实现也是可以的, 我以前也试过修改, 但是发现重新部署很麻烦, 所以就干脆修改 appium, 因为这个是服务端, 只有一个, 部署还见到那些. 我感觉还是从 appium 下手比较好.

  • 使用 RobotFramework 运行 appium 测试用例 at 2013年12月25日

    #23 楼 @luis 同样的道理, 你可以修改 selendroid 的返回值试试. 估计也只是一个地方.

  • 使用 RobotFramework 运行 appium 测试用例 at 2013年12月25日

    #21 楼 @luis 你不是修改了代码吗, 修改后就没问题了

  • 使用 RobotFramework 运行 appium 测试用例 at 2013年12月25日

    #19 楼 @luis 举个例子吧, 我不太明白.
    这个协议其实是 webdriver 的, ruby 和 python 能做的, robot 也能做, robot 跟 python 调用本质都是一样的.

  • 菜鸟提问:appium 运行时出现“error: Failed to start an Appium session, err was: Error: Could not ex from ps output. PIDS: [], Procs: ["/system/bin/sh: grep: not found"]” at 2013年12月25日

    #8 楼 @wliym 你先用官方的版本吧, 看看错误是什么, 先不要自己修改

  • 【解决】appium 使用 by_name(id)定位元素,结果为空 at 2013年12月25日

    #4 楼 @zws20041984 用法不对, 所以没找到. android 的 tabwidget 会被映射为 tab 标签.
    使用//tab[1] 就可以了.

  • appium 在 android API16 以上真机设备如何做跨应用操作 at 2013年12月25日

    读一下我们翻译的文档吧. 论坛上已经很多资料了

  • 使用 RobotFramework 运行 appium 测试用例 at 2013年12月25日

    #17 楼 @luis appium 只支持 selenium 的子集, 关注他支持的功能就可以了. 其他的也基本用不到.

  • 上一页
  • 1
  • 2
  • 3
  • …
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • …
  • 152
  • 153
  • 154
  • 下一页
  • 关于 / 活跃用户 / 中国移动互联网测试技术大会 / 反馈 / Github / API / 帮助推广
    TesterHome社区,测试之家,由众多测试工程师组织和维护的技术社区,致力于帮助新人成长,提高测试地位,推进质量发展。Inspired by RubyChina
    友情链接 WeTest腾讯质量开放平台 / InfoQ / 掘金 / SegmentFault / 测试窝 / 百度测试吧 / IT大咖说
    简体中文 / 正體中文 / English

    ©testerhome.com 测试之家   渝ICP备2022001292号
      渝公网安备 50022202000435号    版权所有 © 重庆年云聚力信息技术有限公司