Skip to content

yuzhujiutian/airtest_auto

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

概述

  • 用airtest做移动端自动化
  • 暂时只支持安卓
  • 基于yml编写用例

开始运行

运行模块用例:

  • 打开runner1.py
    root_path = PATH("air_case")
  # test_plan=1 表示调试用例执行,执行某几个模块用例;0表示全部模块用例
    data = {"root_path": root_path, "test_plan": 0, "test_module": [], "dev": "TPG5T18130013404", "phone": "Nova2s"}
    # data = {"root_path": root_path, "test_plan": 1, "test_module": ["他的"], "dev": "TPG5T18130013404", "phone": "Nova2s"}
    run_case(data)

运行单模块用例

  • 打开runner2.py
root_path = PATH("air_case/我的")
test_plan = 1  # 0表示运行我的模块下所有用例;1表示运行我的模块下的test_data里面的用例
test_data = ["打开我的文章.air"]
run_case({"root_path": root_path, "test_plan": test_plan, "test_data": test_data,  "dev": "TPG5T18130013404",
          "phone": "Nova2s"})

测试报告

report2.png detail.png

其他

查看我的changelog

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 67.4%
  • Python 32.6%