随笔分类 -  Python接口自动化

摘要:如何安装Pytest,并运行 Pycharm中进入设置,搜索Python Integrated Tools,把Default test runner 更改为pytest # 分布式运行-n,如何用代码执行,不是在命令行的方式 Pytest 如何配置pytest.ini文件,需在notepadd中把文 阅读全文
posted @ 2022-03-16 23:14 向日葵的部落 阅读(228) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-03-13 22:44 向日葵的部落 阅读(82) 评论(0) 推荐(0)
摘要:目的 1.方便管理和维护多个测试用例 2.提供丰富的断言方法 3.能够生成测试报告 Unittest基本使用 import unittest import test_case01 #创建测试类 class testCase(unittest.TestCase): def setUp(self): p 阅读全文
posted @ 2022-03-09 16:20 向日葵的部落 阅读(118) 评论(0) 推荐(0)