Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
willdesk_apiauto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
29
Issues
29
List
Boards
Labels
Service Desk
Milestones
Merge Requests
29
Merge Requests
29
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
桦生 詹
willdesk_apiauto
Commits
9bda81b0
Commit
9bda81b0
authored
Apr 22, 2024
by
zhanhuasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改路径
parent
49517971
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
main.py
main.py
+2
-4
No files found.
main.py
View file @
9bda81b0
import
pytest
from
Utils.webhook_handler
import
webhook
from
Utils.sql_handler
import
test_env_conn
import
os
if
__name__
==
'__main__'
:
try
:
# pytest.main(['-vs',r'C:\Users\rd71\PycharmProjects\willdesk_api_auto\TestCase\inbox\test_06_channel.py',f'--alluredir=./allureReports/json','--clean-alluredir'])
pytest
.
main
([
'-vs'
,
'./TestCase'
,
f
'--html=./report.html'
])
#allure报告一直生成不了,改用pytest自带报告
# pytest_run_command = 'pytest ./TestCase -vs -n=3 --reruns=1 --reruns-delay=3 --html=./report.html'
# os.system(pytest_run_command)
pytest
.
main
([
'-vs'
,
'./TestCase/setting/test_01_emailIntegration.py'
,
f
'--html=./report.html'
])
#allure报告一直生成不了,改用pytest自带报告
finally
:
test_env_conn
.
close_db
()
#关闭数据库链接
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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