测试之家
  • 社区
  • 问答
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • 注册
  • 登录
新手
qddegtya (Archer)
第 182 位会员 / 2013-11-11
16 篇帖子 • 309 条回帖
137 关注者
0 正在关注
154 收藏
{ '🌏 website': 'https://xiaoa.name' }
GitHub Public Repos
  • qddegtya.github.io 21

    💡 Colorful

  • a-docs 5

    :book: my favs

  • awesome-ng-tools 4

    🔧 awesome next-generation tools

  • ajs 4

    🪄 Just another javascript utility library used by other @qddegtya JS projects.

  • passport-ldap 4

    :key: LDAP authentication strategy for Passport and Node.js

  • qddegtya 3

    🎭 Use @atools/portrayal to intergrate with github workflow for auto-profile-updating.

  • llpage 2

    📜 Page operation model (in memory) with LRU & lifecycle strategy

  • astack 1

    🎉 The Production-Ready Open Source Framework For AI Applications.

  • isomorphic-channel 1

    📞 Isomorphic channel for Micro Frontends

  • w 1

    ✏️ Powerful Creative Workbench for Content Creator.

More on GitHub
  • 個人信息
  • 個人專欄
  • 帖子
  • 回帖
  • 收藏
  • 正在關注
  • 關注者
  • appium 中,如何实现对控件长按后拖拽的动作 at 2014年07月28日

    #6 楼 @monkey PO 主发话了

  • appium 中,如何实现对控件长按后拖拽的动作 at 2014年07月28日

    #4 楼 @monkey 你是在鄙视 PO 主么,PO 主会开窍的。

  • appium 中,如何实现对控件长按后拖拽的动作 at 2014年07月28日

    #2 楼 @monkey 引导式回答

  • appium 中,如何实现对控件长按后拖拽的动作 at 2014年07月28日
    # convenience method added to Appium (NOT Selenium 3)
       def drag_and_drop(self, origin_el, destination_el):
           """Drag the origin element to the destination element
    
           :Args:
            - originEl - the element to drag
            - destinationEl - the element to drag to
           """
           action = TouchAction(self)
           action.long_press(origin_el).move_to(destination_el).release().perform()
           return self
    
       # convenience method added to Appium (NOT Selenium 3)
       def tap(self, positions, duration=None):
           """Taps on an particular place with up to five fingers, holding for a
           certain time
    
           :Args:
            - positions - an array of tuples representing the x/y coordinates of
            the fingers to tap. Length can be up to five.
            - duration - (optional) length of time to tap, in ms
    
           :Usage:
               driver.tap([(100, 20), (100, 60), (100, 100)], 500)
           """
           if len(positions) == 1:
               action = TouchAction(self)
               x = positions[0][0]
               y = positions[0][1]
               if duration:
                   duration = duration
                   action.long_press(x=x, y=y, duration=duration).release()
               else:
                   action.tap(x=x, y=y).release()
               action.perform()
           else:
               ma = MultiAction(self)
               for position in positions:
                   x = position[0]
                   y = position[1]
                   action = TouchAction(self)
                   if duration:
                       duration *= 1000  # we take seconds, but send milliseconds
                       action.long_press(x=x, y=y, duration=duration).release()
                   else:
                       action.press(x=x, y=y).release()
                   ma.add(action)
    
               ma.perform()
           return self
    
       # convenience method added to Appium (NOT Selenium 3)
       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
    
  • 求教运行时,提示启动错误 at 2014年07月26日

    #2 楼 @monkey 这个应该是不兼容导致的,建议楼主开启一下兼容模式

  • 求教运行时,提示启动错误 at 2014年07月25日

    空指针异常~

  • 仿豌豆荚效果的高性能安卓设备屏幕实时捕获工具 at 2014年07月25日

    链接已更新~

  • python 脚本弹出这个提示,ImportError: cannot import name webdriver at 2014年07月25日

    贴代码以及你的项目目录组织

  • 移动端混合型 App (hybrid app) 自动化测试选型与实践 at 2014年07月24日

    楼主的头像稍微有点熟悉了。。

  • Appium-Python-Client 源码剖析 (一) driver 的元素查找方法 at 2014年07月24日

    #3 楼 @seveniruby 哦!?我看看~

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月24日

    #32 楼 @seveniruby 原来是指这个~

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月24日

    #27 楼 @seveniruby 多元化是指?

  • Appium-Python-Client 源码剖析 (一) driver 的元素查找方法 at 2014年07月24日

    #1 楼 @lihuazhang 是的,我正在准备写(一)的扩展篇,甚至是下面这些罗列的所有 find 方法,都细写一下

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    #20 楼 @shixue33 pyqt4 有点大而已,打包下来的 dmg 19mb,不过不影响使用。

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    #18 楼 @shixue33 你放心好了,我打包的时候都是测试过的~ dmg 安装文件我已经推送到 github 上了,我给你 pull request 了

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    #16 楼 @shixue33 mac 端的 app 我已经打包好了。

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    看楼主对 pyqt 颇有实战经验,来参加我的一个项目吧 ! https://github.com/qddegtya/PyQtLab

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    #6 楼 @seveniruby 楼主思路清晰,喜欢折腾,精通 GUI 编程,写工具杠杠的啊。。。

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    #3 楼 @shixue33 区别在于,一个是直接通过命令的方式在内部执行,一个是通过内部提供的 server,外部调用执行,这是 uiautomatorviewer 和 hierarchyviewer 最本质的区别,不过还是想说,想法,实践到做出来,非常不错!pyqt 都耍的不错~

  • 用原生 Cucumber 跑 Calabash-Android 测试 at 2014年07月23日

    calabash 还是有很多坑值得总结的,楼主写一篇连贯的详细篇吧。

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    pyqt 打包一下吧~

  • GetInfo-弱弱的发布一个之前说要做成 UI 的半成品 at 2014年07月23日

    UIAutomator 的翻版么?哈哈......大力支持!

    1. adb shell 执行/system/bin/uiautomator dump /data/local/tmp/uidump.xml 2.adb pull 拉出 xml
    2. 解析 xml 展现在界面上
  • 用同样的 APK, 在模拟器上和真机上 控件类型不同 at 2014年07月23日

    我在真机上试验了一下,真机上嗅探出来的是一个整体 webview

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

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