我的appium自动化UI测试框架

作者: 望月成三人 | 来源:发表于2016-06-08 16:41 被阅读2870次

项目名及简介

  • 此项目是在appiumSelenium开源工具封装而成的自动化app和web测试工具

功能

  • 都是基于python3
  • 都是基于webdriver,大部分代码都可以通用,只是配置文件不一样
  • APP监控了常用的men,cpu,fps
  • 数据维护用的YMAL
  • 邮件发送excel的测试报告
  • 支持多设备andoird并行

用法

下载项目:

git clone git@github.com:Louis-me/appiumn_auto.git

配置devices.yaml

appium:
 - devices: JTJ4C16331013562
   port: 4723
   config: node D:\app\Appium\node_modules\appium\bin\appium.js  -p 4723 -bp 4733
   platformName: android
 - devices: MSM8926
   port: 4724
   config: node D:\app\Appium\node_modules\appium\bin\appium.js  -p 4724 -bp 4734
   platformName: android

yaml

--- 
- 
  element_info: cn.ibona.t1_beta:id/start_button
  find_type: by_id
  operate_type: click
  test_id: 1002
  test_intr: 登陆
- 
  element_info: cn.ibona.t1_beta:id/passwordEditText
  find_type: by_id
  operate_type: send_keys
  test_id: 1002
  text: 111111
- 
  element_info: cn.ibona.t1_beta:id/phoneNumberEditText
  find_type: by_id
  operate_type: send_keys
  text: 18576759587
- 
  element_info: cn.ibona.t1_beta:id/loginButton
  find_type: by_id
  operate_type: click
- 
  element_info: cn.ibona.t1_beta:id/toolbar
  find_type: by_id

命名行运行:

pyhton testRunner/runner.py

使用截图

  • 运行方式
Paste_Image.png
  • APP运行情况
Paste_Image.png
  • 结果展示
Paste_Image.png Paste_Image.png Paste_Image.png

其他

相关文章

网友评论

  • 小小鸟_哈哈哈_飞:注释太少了,看不懂
  • eab681f8d68c:clone怎么提示没权限的?
    望月成三人:账号改了,刷新下再试下
  • befa40ad192b:在github上搜到你的appiumn_auto.git了,可以clone,十分感谢您的分享!先去研究一下
  • befa40ad192b:哥们,你的库好像失效了
  • befa40ad192b:Administrator@2012-20160719YW MINGW64 /e/work
    $ git clone git@github.com:284772894/appiumn_auto.git
    Cloning into 'appiumn_auto'...
    Permission denied (publickey).
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.
  • 路由心定:python2.7有合适的框架吗
    路由心定:@望月成三人 谢谢,借鉴您的写一下2的
    望月成三人:@路由心定 没有适配py2.7
  • cdfc7672b68f: :smile: 我看起来不明觉厉了
    望月成三人:@_1_jerry_li 撒意思,更新了下。。。

本文标题:我的appium自动化UI测试框架

本文链接:https://www.haomeiwen.com/subject/ifujdttx.html