摘要: 原文地址:https://www.cnblogs.com/superhin/p/10338985.html 功能、接口测试中常需要通过数据库的操作,来准备数据、检测环境及核对功能、接口的数据库操作是否正确。 自动化测试中,就需要用代码连接数据库自动完成数据准备、环境检查及数据库断言的功能。 使用 P 阅读全文
posted @ 2021-05-11 21:09 --D 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 原文博客:https://www.cnblogs.com/superhin/p/10338993.html 官方文档:https://docs.python.org/zh-cn/2/library/unittest.html 一、unittest简介 使用print(help(unittest))查 阅读全文
posted @ 2021-05-11 20:51 --D 阅读(128) 评论(0) 推荐(0) 编辑