Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zmops-test
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sanshi
zmops-test
Commits
ddb10d0a
Commit
ddb10d0a
authored
Dec 17, 2019
by
sanshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地址查询
parent
1af9ae94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
test_addressbokk_iplist_get.py
WorkCase/APP/AddressBook/test_addressbokk_iplist_get.py
+13
-13
No files found.
WorkCase/APP/AddressBook/test_addressbokk_iplist_get.py
View file @
ddb10d0a
...
...
@@ -140,13 +140,13 @@ class TestAddressBookIplistGet(object):
response
=
self
.
app
.
addressbook_iplist_get
(
token
=
self
.
token
)
self
.
app
.
check_code
(
response
=
response
,
code
=
0
)
@allure.title
(
"addressbook.iplist.get:
name精确
查询"
)
@allure.story
(
"查询地址簿列表:
name精确
查询"
)
@allure.title
(
"addressbook.iplist.get:
ruleid
查询"
)
@allure.story
(
"查询地址簿列表:
ruleid
查询"
)
def
test_case_05
(
self
):
name
=
self
.
base_name
+
"05"
self
.
app
.
case_create_addressbook
(
name
=
name
,
iplist
=
self
.
base_iplist
,
available
=
CaseBase
()
.
available
[
"ON"
],
_type
=
1
)
ruleid
=
self
.
app
.
case_create_addressbook
(
name
=
name
,
iplist
=
self
.
base_iplist
,
available
=
CaseBase
()
.
available
[
"ON"
],
_type
=
1
)
response
=
self
.
app
.
addressbook_iplist_get
(
token
=
self
.
token
,
name
=
name
)
response
=
self
.
app
.
addressbook_iplist_get
(
token
=
self
.
token
,
ruleid
=
ruleid
)
self
.
app
.
check_code
(
response
=
response
,
code
=
0
)
self
.
app
.
check_keyValue
(
_json
=
UtilsResponse
()
.
get_data_list
(
response
=
response
),
_key
=
"name"
,
_value
=
name
)
...
...
@@ -178,12 +178,12 @@ if __name__ == "__main__":
import
os
# 执行自动化测试用例
#
case_info = os.path.split(__file__)
#
case = UtilsCmd().pytest_cmd()
#
r = UtilsPyTest(case=case, case_info=case_info)
#
r.run_main()
a
=
TestAddressBookIplistGet
()
a
.
setup_class
()
a
.
setup_method
()
a
.
test_case_05
()
case_info
=
os
.
path
.
split
(
__file__
)
case
=
UtilsCmd
()
.
pytest_cmd
()
r
=
UtilsPyTest
(
case
=
case
,
case_info
=
case_info
)
r
.
run_main
()
#
a = TestAddressBookIplistGet()
#
a.setup_class()
#
a.setup_method()
#
a.test_case_05()
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