Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
InterfaceAutoTest
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TestAuto
InterfaceAutoTest
Commits
12a7caea
Commit
12a7caea
authored
3 years ago
by
huangchengcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增用例间隔时间
配置文件基础类新增参数secs
parent
d1b233f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
13 deletions
+10
-13
common/utils/publicFunction.py
+0
-13
config.py
+1
-0
test_case/conftest.py
+9
-0
No files found.
common/utils/publicFunction.py
View file @
12a7caea
import
time
def
sleep
(
secs
):
"""等待secs秒"""
print
(
"ss"
)
if
__name__
==
"__main__"
:
pass
# print("start:%s"%time.ctime())
# sleep(5)
# print("end:%s"%time.ctime())
This diff is collapsed.
Click to expand it.
config.py
View file @
12a7caea
...
...
@@ -8,6 +8,7 @@ class BaseConfig():
current_product
=
"bmc"
default_test_case_dir
=
"test_case/bmc/"
salt
=
'hikcreate_xj'
# SSO 登录的东西
secs
=
0.1
class
BMCConfig
(
BaseConfig
):
"""斑马信用app的配置类"""
...
...
This diff is collapsed.
Click to expand it.
test_case/conftest.py
0 → 100644
View file @
12a7caea
import
time
import
config
import
pytest
@pytest.fixture
(
scope
=
"function"
,
autouse
=
True
)
def
sleep
():
time
.
sleep
(
config
.
BaseConfig
.
secs
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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