上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 96 下一页
摘要: 执行用例的思路 第一种,执行单个用例 点击执行 后台过滤出来当前的用例,将用例对象返回 unittest/pytest框架做 从用例对象中,提取各个参数,发请求 校验请求结果 断言 生成测试报告 将该测试报告存储到数据库 将HTML文件存储都某个目录下,数据库存储文件的路径 直接将HTML文本存储数 阅读全文
posted @ 2020-02-02 12:59 干it的小张 阅读(563) 评论(0) 推荐(0)
摘要: 平台分析 页面模板 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)
摘要: """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)
摘要: 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)
摘要: 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 下一页