测试之家
  • Topics
  • QA
  • 招聘
  • 社区学堂新
  • 开源项目
  • 活动
  • Wiki
  • Sign Up
  • Sign In
会员
otori (CBL)
第 3871 位Users / 2015-06-02
0 篇帖子 • 11 条回帖
1 关注者
6 正在关注
15 收藏
未设置 GitHub 信息.
  • 个人信息
  • 专栏
  • 话题
  • 回帖
  • 收藏
  • 关注中
  • 关注者
  • [已解决] appium iOS 输入用户名可以输入手机号报错 at July 10, 2015

    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: Got new command 10 from instruments: au.getElement('2').setValueByType('18100002222')

    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: evaluating au.getElement('2').setValueByType('18100002222')
    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: No keyboard found. Tapping to make visible.
    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: target.frontMostApp().elements()[0].elements()[10].tap()

    info: [debug] [INST] 2015-07-10 05:06:47 +0000 Debug: Still no keyboard found. Tapping again to make visible.

    看日志,提示了 no keyboard found,没有键盘,所以无法输入=。=

  • appium 有办法在点击某个控件 id 之后开始计时么? at July 09, 2015
    from selenium import webdriver
    from timeit import Timer
    
    def search_time(driver):
        search_btn = xxx #替换搜索button的xpath
        driver.find_element_by_xpath(search_btn).click()
        target_element = xxx #替换目标元素xpath
        driver.find_element_by_xpath(target_element)
    
    test = Timer('search_time(driver)','from selenium import webdriver; \
        from __main__ import search_time;\
        driver = webdriver.Firefox(); \
        driver.implicitly_wait(30);\
        driver.get(url)') #替换url值
    print test.timeit(1) #运行一次的时间
    print test.repeat(10,1)/10 #计算运行10次的平均时间
    

    =。=楼主要测搜索速度吗,可以用 jmeter 呀 (/ω╲)

  • appium 如何判断手机界面中是否有某个元素 at July 03, 2015
    try:
      em = driver.find_element_by_xpath(*path*)
      em.click()
    except:
      print 'failed'
      pass
    

    自己的一点思路,python 写的

  • 新手 python 学习 at June 19, 2015

    你也可以看《python 基础教程》,《python 高级教程》,《python 参考手册》,《python cookbook》,依次进阶。
    最重要的,多写代码……

  • [已解决] 请教一下 WEB SELENIUM 上传文件的方法。详细情况见内容,谢谢!~ at June 19, 2015

    如果 type 为 flash,就只能用 Autoit 生成操作 Windows 窗体的 exe 文件,然后通过 os.system('/path/xx.exe') 实现上传

  • 用 unittest 跑测试用例的时候,app 连不上服务器 at June 11, 2015

    看报错,应该是你的一个元素不能定位到。

  • “failed to start instruments daemon” 的一种解决办法 at June 10, 2015

    =.=你说的那个人不会是我吧……

  • fruitstrap 命令检测 app 是否安装变得很不稳定 at June 09, 2015

    appium 1.4.0 dmg 已经木有这个问题啦~(≧▽≦)/~

  • Appium IOS 真机测试 iphone at June 09, 2015

    error: Failed to start an Appium session, err was: Error: Log capture did not start in a reasonable amount of time
    info: [debug] Error: Log capture did not start in a reasonable amount of time

    iOS 遇到这个 error,先检查下 UDID 是不是大写了,大写要改成小写。

  • 隐式等待设置时间单位设置为毫秒,在轮询的时候比秒更精确吗? at June 09, 2015

    mentor,你也在弄 appium 了……

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

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