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
8cb294fa
Commit
8cb294fa
authored
May 08, 2021
by
taoke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'a_branch'
parents
922e33c2
0ce2780a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
config.py
+2
-0
test_case/bmy/test_login.py
+2
-1
No files found.
config.py
View file @
8cb294fa
#coding:utf-8
import
os
class
BaseConfig
():
"""基础配置类"""
...
...
@@ -10,6 +11,7 @@ class BaseConfig():
secs
=
0.1
# 测试用例间隔运行时间
test_redis
=
{
"host"
:
"10.197.236.197"
,
"port"
:
6379
,
"password"
:
"123456"
}
root_path
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
# 项目根目录
# 钉钉相关
webhook
=
''
...
...
test_case/bmy/test_login.py
View file @
8cb294fa
...
...
@@ -9,10 +9,11 @@ from service.login import BMY
from
common.tools
import
request_main
from
config
import
BmyConfig
@allure.epic
(
"营运车企业端"
)
@allure.feature
(
"登录模块"
)
class
TestLogin
():
workBook
=
xlrd
.
open_workbook
(
'
test_case_data/bmy/bmy_case.xlsx'
)
workBook
=
xlrd
.
open_workbook
(
f
'{BmyConfig.root_path}/
test_case_data/bmy/bmy_case.xlsx'
)
@allure.story
(
"登录"
)
@allure.title
(
"登录认证"
)
...
...
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