summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/main.py b/main.py
new file mode 100644
index 00000000..c2a9aeb4
--- /dev/null
+++ b/main.py
@@ -0,0 +1,24 @@
+import pytest
+
+
+
+
+
+
+if __name__ == '__main__':
+ print(223333)
+ pytest.main(["-s", "-v", "cases/ui"])
+ print(55633)
+
+ """
+ # 在测试文件的当前路径执行如下命令执行测试用例:
+ --max
+ pytest –cache-clear -v pytest_json.py --alluredir ./allure
+ --check-max-tb 9000 #最大校验
+ --reruns=1 #失败重运行次数
+ pytest -cache-clear -sv ./cases/ui --check-max-tb 9000 --alluredir ./results/reports
+ pytest -cache-clear -sv ./cases/ui --check-max-tb 9000 --reruns=1 --alluredir ./results/reports
+ allure serve ./results/reports
+ # 执行如下命令生成测试报告(自动打开浏览器):
+ allure serve allure
+ """ \ No newline at end of file