七秒鱼记忆~
每天进步一点点!!!
摘要: #收集测试用例 import os import time import unittest from ingestion_api.libs.HTMLTestRunnerNew import HTMLTestRunner from ingestion_api.config.setting import 阅读全文
posted @ 2021-04-30 17:26 fishing~ 阅读(14) 评论(0) 推荐(0)
摘要: #unittest单元测试 #模块名以test开头;类名以Test开头,测试类继承unittest.TestCase;方法以test开头 固定用法; #断言:assert,断言失败会报错,使用try...except捕获异常 #测试用例运行方式: #以python方式运行:python 模块名 #命 阅读全文
posted @ 2021-04-30 17:25 fishing~ 阅读(20) 评论(0) 推荐(0)
摘要: #导入requests库 # 安装:pip install requests # 镜像源安装:-i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com import requests #访问接口地址 res =requests. 阅读全文
posted @ 2021-04-30 17:23 fishing~ 阅读(21) 评论(0) 推荐(0)