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
ec05df9d
Commit
ec05df9d
authored
May 13, 2024
by
zhanhuasheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、新增用例
2、新增超时睡眠机制
parent
ccff10c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
TestCase/setting/test_09_tag.py
TestCase/setting/test_09_tag.py
+9
-9
TestCase/setting/test_10_team.py
TestCase/setting/test_10_team.py
+9
-9
No files found.
TestCase/setting/test_09_tag.py
View file @
ec05df9d
...
...
@@ -2,12 +2,12 @@ import pytest
from
Utils
import
yaml_handler
from
Utils
import
req_handler
from
TestData.setting.tag_test_data
import
tagData
class
TestTag
:
yaml_path
=
r
'setting/tag.yaml'
yaml_data
=
yaml_handler
.
yaml_handler
.
get_case
(
yaml_path
)
@
pytest
.
mark
.
flaky
(
reruns
=
tagData
.
rerun
,
reruns_delay
=
tagData
.
rerun_delay
)
@
pytest
.
mark
.
parametrize
(
'case'
,
yaml_data
)
def
test_tag
(
self
,
case
):
req_handler
.
ReqHandler
.
send_requests
(
case
=
case
,
var_class
=
tagData
)
#
#
class TestTag:
#
#
yaml_path = r'setting/tag.yaml'
#
yaml_data = yaml_handler.yaml_handler.get_case(yaml_path)
#
@pytest.mark.flaky(reruns=tagData.rerun, reruns_delay=tagData.rerun_delay)
#
@pytest.mark.parametrize('case',yaml_data)
#
def test_tag(self,case):
#
req_handler.ReqHandler.send_requests(case=case,var_class=tagData)
TestCase/setting/test_10_team.py
View file @
ec05df9d
...
...
@@ -2,12 +2,12 @@ import pytest
from
Utils
import
yaml_handler
from
Utils
import
req_handler
from
TestData.setting.team_test_data
import
teamData
class
TestTeam
:
yaml_path
=
r
'setting/team.yaml'
yaml_data
=
yaml_handler
.
yaml_handler
.
get_case
(
yaml_path
)
@
pytest
.
mark
.
flaky
(
reruns
=
teamData
.
rerun
,
reruns_delay
=
teamData
.
rerun_delay
)
@
pytest
.
mark
.
parametrize
(
'case'
,
yaml_data
)
def
test_team
(
self
,
case
):
req_handler
.
ReqHandler
.
send_requests
(
case
=
case
,
var_class
=
teamData
)
#
#
class TestTeam:
#
#
yaml_path = r'setting/team.yaml'
#
yaml_data = yaml_handler.yaml_handler.get_case(yaml_path)
#
@pytest.mark.flaky(reruns=teamData.rerun, reruns_delay=teamData.rerun_delay)
#
@pytest.mark.parametrize('case',yaml_data)
#
def test_team(self,case):
#
req_handler.ReqHandler.send_requests(case=case,var_class=teamData)
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