测试之家
  • 社区
  • 问答
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • 注册
  • 登录
新手
lynnfang0917
第 1695 位会员 / 2014-10-11
6 篇帖子 • 16 条回帖
0 关注者
0 正在关注
3 收藏
未设置 GitHub 信息.
  • 个人信息
  • 专栏
  • 话题
  • 回帖
  • 收藏
  • 关注中
  • 关注者
  • 请问在 android5.1 的机器上使用 uiautomator2.0,如何赋予读写权限 at 2018年01月18日

    存在的

  • 请问在 android5.1 的机器上使用 uiautomator2.0,如何赋予读写权限 at 2018年01月17日

    写了。不行

  • AppCrawler 自动遍历工具 1.2.1 版本 at 2016年06月03日

    试用了一下,测试对象是 IOS app 有以下几个问题:
    使用命令:
    java -jar appcrawler-1.2.1.jar -p ios --capability uuid= -a xxx.app
    1、如果启动 appium 的时候直接使用文章里介绍的 appium,总是会提示 Installing xxx.app failed
    后面我是直接使用:appium -U --app ,然后就好了
    2、开始工作后,由于我们的应用有欢迎页,然后是向左滑动的,这里自动化遍历会卡在一直向右滑动
    3、后续没有欢迎页后,遍历时重复访问到某个页面后由于超过次数就退出了。。。

  • executeShellCommand 获取当前 activity at 2016年04月27日

    @monkey

  • uiautomator2.0 解锁屏幕问题 at 2016年04月26日

    #6 楼 @chenhengjie123 嗯,谢谢,我看一下

  • uiautomator2.0 解锁屏幕问题 at 2016年04月25日

    #2 楼 @chenhengjie123 请教下您有没有什么比较好的方法不呢?

  • 请教:使用 UiDevice 类中的 executeShellCommand 方法出错问题 at 2016年03月28日

    #5 楼 @sanlengjingvv 嗯,我竟然没注意看到,谢谢

  • 请教:使用 UiDevice 类中的 executeShellCommand 方法出错问题 at 2016年03月28日

    #6 楼 @chenhengjie123 高,谢谢

  • 请教:使用 UiDevice 类中的 executeShellCommand 方法出错问题 at 2016年03月28日

    #2 楼 @zsx10110 uiautomator2.0 新增的 api

  • 请教:使用 UiDevice 类中的 executeShellCommand 方法出错问题 at 2016年03月28日

    #1 楼 @chenhengjie123 我在 UiDevice.java 中是有看到,但是运行测试用例的时候说没有这个方法,而且是运行在 4.4.4 系统上出现的,运行在 5.0 系统上没有这个问题。所以你的回答不对哦~~~~

  • 被测工程中有 System.loadLibrary 自身的 so,用 robolectric 测试的时候加载失败 at 2014年10月22日

    已解决~~~~

  • andriod 系统,appium 模拟手势滑动操作问题 at 2014年10月13日

    看一下 swipe 的源码,它做了 4 个动作:press、wait、move_to、release
    def swipe(self, start_x, start_y, end_x, end_y, duration=None):
    """Swipe from one point to another point, for an optional duration.

    :Args:
    - start_x - x-coordinate at which to start
    - start_y - y-coordinate at which to end
    - end_x - x-coordinate at which to stop
    - end_y - y-coordinate at which to stop
    - duration - (optional) time to take the swipe, in ms.

    :Usage:
    driver.swipe(100, 100, 100, 400)
    """
    # swipe is something like press-wait-move_to-release, which the server
    # will translate into the correct action
    action = TouchAction(self)
    action \
    .press(x=start_x, y=start_y) \
    .wait(ms=duration) \
    .move_to(x=end_x, y=end_y) \
    .release()
    action.perform()
    return self

    应该就是那个 press 不小心点击到我 app 页面上的链接了

  • andriod 系统,appium 模拟手势滑动操作问题 at 2014年10月13日

    #7 楼 @xuxu 嗯嗯,我修改成 endX 和 endY 之后就可以了,我感觉 def swipe(self, start_x, start_y, end_x, end_y, duration=None):中的 duration 的设置很重要,这个是 ms 级别的,如果设置太小则不起作用

  • andriod 系统,appium 模拟手势滑动操作问题 at 2014年10月13日

    #4 楼 @anikikun 嗯,xiaomayi0323 已经提醒我了

  • andriod 系统,appium 模拟手势滑动操作问题 at 2014年10月13日

    #3 楼 @xiaomayi0323 嗯,我是从http://www.testerhome.com/topics/167~~~我改成 endX 和 endY 之后就 OK 了学习来的,这个参数我没有注意到,我检讨

    另外,因为我起初使用直接调用 driver.swipe 函数,self.driver.swipe(100,300,100,100,100),但是滑动效果没有那么好,而且结束时会点击到我的一个链接,这是为什么呢?是因为我画红框的那个 “action”:“press” 吗?

  • andriod 系统,appium 模拟手势滑动操作问题 at 2014年10月13日

    #1 楼 @xiaomayi0323
    代码如下:

    appium 输出信息:

    好奇怪,为什么会变成是从(100,100)到(360,640)?我是昨天才安装使用 appium,初学,请多多指教呢

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

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