目录 前言: 介绍 pytest uiautomator2 allure 环境搭建 pytest uiautomator2 allure pytest 插件 实例 初始化 driver fixture 机制 数据共享 测试类 参数化 指定顺序 运行指定级别 重试 hook 函数 断言 运行 运行某个文件夹下的用例 运行某个方法 运行某个类 运行 P0 级 运行非 P0 级 main 方式 报告 失败详情 失败截图 uiautomator2 基本操作 启动服务 事件 点击 滑动 监听