.........................................5
1.5生成测试报告.................................................................................6
1.6生成HTML格式的测试报告.............................................................8
1.7测试用例添加断言...........................................................................9
1.8用例失败重运行............................................................................10
1.9多线程并发执行............................................................................11
1.10测试结果推送..............................................................................11
第2章API接口自动化测试.....................................................................13
2.1接口的概念..................................................................................13
2.2接口测试与UI功能测试的区别........................................................15
2.3接口测试什么时候做......................................................................15
2.4HTTP协议..................................................................................15
2.5接口测试用工具............................................................................20
2.6Requests库在接口自动化的应用.....................................................24
2.7接口自动化项目结构......................................................................35
2.8统一封装接口请求类......................................................................36
2.9单接口的批量测试.........................................................................37
2.10数据驱动....................................................................................43
2.11测试结果回写..............................................................................47
2.12接口测试数据验证........................................................................51
2.13接口登录鉴权..............................................................................52
2.14动态数据处理..............................................................................53
2.15日志记录....................................................................................57
2.16测试报告....................................................................................63
第3章web自动化测试..........................................................................65
3.1web自动化概述............................................................................65
3.2Seleniumwebdriver简介.............................................................80
3.3Selenium常用元素定位.................................................................88
3.4Selenium常用元素操作...............................................................108
3.5pytest测试框架..........................................................................138
3.6实战部分...................................................................................145
3.7SeleniumGrid..........................................................................157
3.8allure报告集成..........................................................................165
3.9其他的web自动化测试技术.........................................................167
第4章APP自动化测试........................................................................174
4.1Appium概述.............................................................................174
4.2Appium环境安装.......................................................................176
4.3Appium用法说明.......................................................................187
4.4Appium工作原理.......................................................................204
4.5adb使用...................................................................................206
4.6Monkey命令.............................................................................216
4.7Android应用基础知识................................................................223
4.8快速开始一个Appium................................................................229
4.9Android元素定位方法................................................................233
4.10Appium常用API.....................................................................234
4.11APP特殊场景自动化..................................................................244
4.12APP与web自动化差异.............................................................263
第5章Jenkins持续集成.....................................................................268
5.1持续集成和Jenkins简介.............................................................268
5.2部署Jenkins.............................................................................268
5.3Jenkins初始化..........................................................................275
5.4Jenkins配置.............................................................................278
5.5Jenkins构建任务.......................................................................285