Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
backend_auto
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘婷婷
backend_auto
Commits
42c6066e
Commit
42c6066e
authored
Apr 15, 2021
by
邓莹莹
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'common_dev' into 'master'
Common dev See merge request
dengyingying/backend_auto!2
parents
53e820b5
f8103557
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
5 deletions
+9
-5
all_backend_api中Py文件class命名.png
.readme_images/all_backend_api中Py文件class命名.png
+0
-0
account_request.py
all_backend_api/account_request.py
+3
-3
readme.md
readme.md
+3
-0
requirements.txt
requirements.txt
+1
-0
test_login_vfc.py
test_backend_case/account_case/test_login_vfc.py
+2
-2
No files found.
.readme_images/all_backend_api中Py文件class命名.png
0 → 100644
View file @
42c6066e
203 KB
all_backend_api/account_request.py
View file @
42c6066e
...
@@ -2,7 +2,7 @@ import path_setting
...
@@ -2,7 +2,7 @@ import path_setting
from
in_common.base_request
import
BaseRequest
from
in_common.base_request
import
BaseRequest
class
send_req
est
(
BaseRequest
):
class
account_requ
est
(
BaseRequest
):
def
__init__
(
self
):
def
__init__
(
self
):
self
.
data
=
self
.
api_load
(
path_setting
.
APYAML_CONFIG
)
self
.
data
=
self
.
api_load
(
path_setting
.
APYAML_CONFIG
)
...
@@ -16,4 +16,4 @@ class send_reqest(BaseRequest):
...
@@ -16,4 +16,4 @@ class send_reqest(BaseRequest):
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
print
(
send_reqest
()
.
login_vfc
(
"beijing"
,
"+8612345678912"
,
1234
,
""
,
""
))
print
(
account_request
()
.
login_vfc
(
"beijing"
,
"+8612345678912"
,
1234
,
""
,
""
))
\ No newline at end of file
\ No newline at end of file
readme.md
View file @
42c6066e
...
@@ -9,10 +9,13 @@
...
@@ -9,10 +9,13 @@
### 提交代码规范
### 提交代码规范
-
为了便于项目的管理维护,参与者可以将自己的代码确保运行成功的前提下,提交到自己分支,然后每周往commo_dev
-
为了便于项目的管理维护,参与者可以将自己的代码确保运行成功的前提下,提交到自己分支,然后每周往commo_dev
分支提交代码,负责人会将common_dev分支每周往master分支合并,参与者可每周一更新本地代码,确保自己的代码是最新的
分支提交代码,负责人会将common_dev分支每周往master分支合并,参与者可每周一更新本地代码,确保自己的代码是最新的
-
本地代码提交Git仓库时,避免已经上传的代码被覆盖,请Git push之前,先操作git pull,在本地解决好冲突后,再Git push
### 项目分类及维护
### 项目分类及维护
-
项目围绕backend进行自动化测试,所以针对项目的分类以及命名,大家尽量以下面的规则维护
-
项目围绕backend进行自动化测试,所以针对项目的分类以及命名,大家尽量以下面的规则维护
![](
.readme_images/all_backend_api中Py文件class命名.png
)
!!
[](
.readme_images/项目all_backend_api命名规则.png
)
!!
[](
.readme_images/项目all_backend_api命名规则.png
)
![](
.readme_images/test_case命名规则.png
)
![](
.readme_images/test_case命名规则.png
)
...
...
requirements.txt
View file @
42c6066e
...
@@ -8,6 +8,7 @@ jsonpath==0.82
...
@@ -8,6 +8,7 @@ jsonpath==0.82
packaging
==20.9
packaging
==20.9
pluggy
==0.13.1
pluggy
==0.13.1
py
==1.10.0
py
==1.10.0
pyparsing
==2.4.7
pyparsing
==2.4.7
pytest
==6.2.2
pytest
==6.2.2
PyYAML
==5.4.1
PyYAML
==5.4.1
...
...
test_backend_case/account_case/test_login_vfc.py
View file @
42c6066e
...
@@ -3,7 +3,7 @@ import pytest
...
@@ -3,7 +3,7 @@ import pytest
from
ids_list
import
get_ids
from
ids_list
import
get_ids
import
path_setting
import
path_setting
from
in_common.base_request
import
BaseRequest
from
in_common.base_request
import
BaseRequest
from
all_backend_api.account_request
import
send_req
est
from
all_backend_api.account_request
import
account_requ
est
class
TestLoginVfc
:
class
TestLoginVfc
:
...
@@ -13,7 +13,7 @@ class TestLoginVfc:
...
@@ -13,7 +13,7 @@ class TestLoginVfc:
@pytest.mark.parametrize
(
"param"
,
loginvfc_data
,
ids
=
loginvfc_case
)
@pytest.mark.parametrize
(
"param"
,
loginvfc_data
,
ids
=
loginvfc_case
)
def
test_login_vfc
(
self
,
param
):
def
test_login_vfc
(
self
,
param
):
print
(
param
[
"vfc_code"
])
print
(
param
[
"vfc_code"
])
r
=
send_req
est
()
.
login_vfc
(
param
[
"current_city_id"
],
param
[
"phone_num"
],
param
[
"vfc_code"
])
r
=
account_requ
est
()
.
login_vfc
(
param
[
"current_city_id"
],
param
[
"phone_num"
],
param
[
"vfc_code"
])
if
r
[
"error"
]
==
0
:
if
r
[
"error"
]
==
0
:
assert
r
[
"data"
][
"account_phone"
]
==
param
[
"assert"
]
assert
r
[
"data"
][
"account_phone"
]
==
param
[
"assert"
]
if
r
[
"error"
]
==
1
:
if
r
[
"error"
]
==
1
:
...
...
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