会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
干it的小张
管理
上一页
1
···
48
49
50
51
52
53
54
55
56
···
96
下一页
2020年1月21日
固件:
摘要: import pytestimport requests @pytest.fixture()def login(): print("登录.......")def test_index1(login): """测试之前先登录""" print("主页1..........")def test_inde
阅读全文
posted @ 2020-01-21 10:43 干it的小张
阅读(130)
评论(0)
推荐(0)
2020年1月20日
参数化:
摘要: l1 = [10086, 10010, 110, 120]code = ["xxx","ppppp","oooo","wwww"]@pytest.mark.parametrize("mobile,code",zip(l1,code))def test_case(mobile,code): print
阅读全文
posted @ 2020-01-20 23:02 干it的小张
阅读(142)
评论(0)
推荐(0)
标记预期失败
摘要: pytest.ini [pytest]addopts = -s -vtestpaths = ./scriptspython_files = test_case.pypython_classes = Test*python_functions = test_*xfail_strict = true t
阅读全文
posted @ 2020-01-20 20:52 干it的小张
阅读(130)
评论(0)
推荐(0)
跳过:
摘要: import pytestdef test_case_01(): assert 1#无条件跳过类:@pytest.mark.skip()class TestCase(object): """加装饰器跳过测试用例""" @pytest.mark.skip(condition=True, reason=
阅读全文
posted @ 2020-01-20 20:25 干it的小张
阅读(248)
评论(0)
推荐(0)
pytest配置文件:
摘要: 目录结构: pytest.ini [pytest]addopts = -s -vtestpaths = ./scriptspython_files = test_*.pypython_classes = Test*python_functions = test_* test_case.py def
阅读全文
posted @ 2020-01-20 20:08 干it的小张
阅读(301)
评论(0)
推荐(0)
上一页
1
···
48
49
50
51
52
53
54
55
56
···
96
下一页
公告