Commit b38b0642 by liangyan10

角色管理

parent da3ce6b7
...@@ -131,3 +131,11 @@ class TestRole(): ...@@ -131,3 +131,11 @@ class TestRole():
url = f"{SSOConfig().test_host}{inData['url']}{roleId}" url = f"{SSOConfig().test_host}{inData['url']}{roleId}"
res = request_main(url, headers, method,req_data) res = request_main(url, headers, method,req_data)
assert res["code"] == expectData["code"] assert res["code"] == expectData["code"]
if __name__ == '__main__':
for one in os.listdir('../../report/tmp'): # 列出对应文件夹的数据
if 'json' in one:
os.remove(f'../../report/tmp/{one}')
pytest.main(['test_role.py', '-s', '--alluredir', '../../report/tmp'])
# # 启动默认浏览器打开报告
os.system('allure serve ../../report/tmp')
# os.system('allure generate ../../report/tmp –o ../../report/tmp1 –-clean')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment