入门10-Pytest部分测试用例的前后置(fixture)(1-参数详解)

使用fixture实现部分测试用例前后置,能支持多个参数,使用方式如下 @pytest.fixture(scope=”function”,autouse= False, params=loginutil(),ids=[0,1,2],name="login") 默认值,score = None, au
posted @ 2023-05-08 22:15  蜗牛果果  阅读(51)  评论(0编辑  收藏  举报