Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
test
autotest-airtest-web-sc
Commits
8bbaf78f
Commit
8bbaf78f
authored
Nov 21, 2023
by
17322369953
Browse files
添加部分采购案例
parent
2c84072f
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
8bbaf78f
...
@@ -37,17 +37,17 @@ if __name__ == '__main__':
...
@@ -37,17 +37,17 @@ if __name__ == '__main__':
# 创建报告目录
# 创建报告目录
report_dir
=
create_report_dir
()
report_dir
=
create_report_dir
()
#pytest.main(
#
pytest.main(
# ['-vs', 'D:/pythonProject/atuobase/test_login/test_login_success.py', '--reruns', '3', '--reruns-delay', '2', '--alluredir',
# ['-vs', 'D:/pythonProject/atuobase/test_login/test_login_success.py', '--reruns', '3', '--reruns-delay', '2', '--alluredir',
# report_dir, '--clean-alluredir'])
# report_dir, '--clean-alluredir'])
# 开始执行用例
# 开始执行用例
#pytest.main(
#
pytest.main(
# ['-vs', 'D:/pythonProject/atuobase/test_login', 'D:/pythonProject/atuobase/test_buy/test_buy_one_nonseq_commodity.py::TestBuyOneNonseqCommodity::test_buy_one_nonseq_commodity', '--reruns', '3', '--reruns-delay', '2', '--alluredir',
# ['-vs', 'D:/pythonProject/atuobase/test_login', 'D:/pythonProject/atuobase/test_buy/test_buy_one_nonseq_commodity.py::TestBuyOneNonseqCommodity::test_buy_one_nonseq_commodity', '--reruns', '3', '--reruns-delay', '2', '--alluredir',
# report_dir, '--clean-alluredir'])
# report_dir, '--clean-alluredir'])
# Mail().send()
# Mail().send()
pytest
.
main
(
pytest
.
main
(
[
'-vs'
,
'--reruns'
,
'3'
,
'--reruns-delay'
,
'2'
,
'--alluredir'
,
[
'-vs'
,
'../autotest-airtest-web-sc/test_buy'
,
'../autotest-airtest-web-sc/test_login'
,
'--reruns'
,
'3'
,
'--reruns-delay'
,
'2'
,
'--alluredir'
,
report_dir
,
'--clean-alluredir'
])
report_dir
,
'--clean-alluredir'
])
os
.
system
(
'allure serve %s'
%
report_dir
)
os
.
system
(
'allure serve %s'
%
report_dir
)
# 可以在终端执行命令 pytest D:\pythonProject\atuobase\test_login\test_login_success.py
# 可以在终端执行命令 pytest D:\pythonProject\atuobase\test_login\test_login_success.py
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment