fixture优势:pytest的fixture命名不在局限于setup和teardown命名方式所有 ... @pytest.fixture() def login(): print("打开浏览器,登录成功") yield #用例执行成功后 ...
確定! 回上一頁