摘要: 在测试用例的前面加上:@pytest.mark.parametrize("参数名",列表数据)参数名:用来接收每一项数据,并作为测试用例的参数。列表数据:一组测试数据。 示例: from datas import loginimport pytest class TestLogin(): @pyte 阅读全文
posted @ 2020-11-26 00:17 努力努力再努力grq 阅读(326) 评论(0) 推荐(0) 编辑