(自动化测试(uiautomator2、selenium、接口自动化)和测试工具(详细)
一、接口测试工具
1. jmeter
- jmeter 是一个非常流行的性能测试工具,优点 开源、小巧、易于安装。
2. postman
- postman常用于开发中,可将请求的链接直接复制,然后构造自己所想要的入参进而形成想要的链接地址。
3. android studio
- android studio常用于开发app,但其实用于生产环境的接口测试也特别方便。操作app也将请求的链接打印到logcat中,通过点击该链接即可打印出json参数字符串
二、自动化测试工具
1. app UI自动化测试框架
- 框架 python + atx agent + uiautomator2
- 框架 python + appium
uiautomation2连接方式:https://blog.csdn.net/weixin_46932303/article/details/106982649.
uiautomation2最常用语句总结
https://blog.csdn.net/weixin_46932303/article/details/107045541.
uiautomator2常见定位报错问题:
https://blog.csdn.net/weixin_46932303/article/details/106985394.
2. web页面自动化测试框架
- 框架 python + selenium
selenium的基本使用和常用语法:https://blog.csdn.net/weixin_46932303/article/details/107044046.
xpath定位和css定位对比:
https://blog.csdn.net/weixin_46932303/article/details/107030475.
3. 接口自动化测试框架
- 框架 python + requests请求
cookies、sessions、token区别:
https://blog.csdn.net/weixin_46932303/article/details/107139603.
requests接口测试的使用—基础篇
https://blog.csdn.net/weixin_46932303/article/details/107134820.
requests接口测试的使用—进阶篇
https://blog.csdn.net/weixin_46932303/article/details/107137070.
注:接口测试的练习地址: https://api.github.com/.
后续再详细补充这些框架,请及时关注。