会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
干it的小张
管理
上一页
1
···
42
43
44
45
46
47
48
49
50
···
96
下一页
2020年2月2日
执行用例的思路、批量执行(可选)、定时任务
摘要: 执行用例的思路 第一种,执行单个用例 点击执行 后台过滤出来当前的用例,将用例对象返回 unittest/pytest框架做 从用例对象中,提取各个参数,发请求 校验请求结果 断言 生成测试报告 将该测试报告存储到数据库 将HTML文件存储都某个目录下,数据库存储文件的路径 直接将HTML文本存储数
阅读全文
posted @ 2020-02-02 12:59 干it的小张
阅读(563)
评论(0)
推荐(0)
2020年1月30日
unittest平台分析与建表:
摘要: 平台分析 页面模板 adminlte bootstrap jquery django 表 接口表 接口title 描述 接口数量 通过数量 class API(models.Model): """接口表""" api_title = models.CharField(max_length=32, v
阅读全文
posted @ 2020-01-30 13:27 干it的小张
阅读(139)
评论(0)
推荐(0)
HTMLTestRunner源码
摘要: """A TestRunner for use with the Python unit testing framework. Itgenerates a HTML report to show the result at a glance.The simplest way to use this
阅读全文
posted @ 2020-01-30 11:45 干it的小张
阅读(231)
评论(0)
推荐(0)
unittest生成测试报告
摘要: import unittestfrom HTMLTestRunner import HTMLTestRunnerclass MyTestCase(unittest.TestCase): def xxxTest(self): self.assertTrue(2)if __name__ == '__ma
阅读全文
posted @ 2020-01-30 11:29 干it的小张
阅读(147)
评论(0)
推荐(0)
2020年1月29日
unittest跳过
摘要: import unittestclass TestCase01(unittest.TestCase): @unittest.skip(reason="跳过") def test_case_01(self): self.assertTrue(1) @unittest.skipIf(condition=
阅读全文
posted @ 2020-01-29 20:59 干it的小张
阅读(107)
评论(0)
推荐(0)
上一页
1
···
42
43
44
45
46
47
48
49
50
···
96
下一页
公告