Browse Source

JW第一次提交

“蒋伟” 1 year ago
parent
commit
b604ec49cc
1 changed files with 13 additions and 0 deletions
  1. 13 0
      run.py

+ 13 - 0
run.py

@@ -0,0 +1,13 @@
+import os
+import time
+
+import pytest
+
+
+if __name__ == '__main__':
+    pytest.main(['-vs'])
+    time.sleep(3)
+    os.system("allure generate ./temps -o ./report --clean")
+    # pytest.main()  # 启动框架
+    # os.system("allure generate ./temps/allure -o report --clean")  # 生成报告
+    # os.system("allure open  report -p 0")  # 打开报告