Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
interfaceTest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
zhaihuitao
interfaceTest
Commits
e936fa10
Commit
e936fa10
authored
4 years ago
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install enevt
parent
6b987130
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
11 deletions
+4
-11
__init__.py
testcase/android_events/__init__.py
+3
-10
installEvent.py
testcase/android_events/installEvent.py
+1
-1
No files found.
testcase/android_
click/test_install
.py
→
testcase/android_
events/__init__
.py
View file @
e936fa10
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file:
test_install
.py
@time: 2020/8/1
1 16:2
2
@file:
__init__.py
.py
@time: 2020/8/1
7 14:3
2
@desc:
"""
\ No newline at end of file
import
unittest
from
testcase.android_click.installEvent
import
allEvent
class
installTestCase
(
unittest
.
TestCase
):
def
install
(
self
):
allEvent
.
installUpload
(
self
)
This diff is collapsed.
Click to expand it.
testcase/android_
click
/installEvent.py
→
testcase/android_
events
/installEvent.py
View file @
e936fa10
...
...
@@ -17,7 +17,7 @@ headers = {'Content-Type': 'application/json'}
class
installTestCase
(
unittest
.
TestCase
):
def
testinstall
(
self
):
p
=
requests
.
post
(
url
=
prod
[
"events"
][
"url"
]
+
'install'
,
data
=
json
.
dumps
(
params_install
),
headers
=
headers
,
timeout
=
5
)
print
(
"激活
时间
执行结果:"
+
p
.
text
)
print
(
"激活
事件
执行结果:"
+
p
.
text
)
print
(
p
.
url
)
self
.
assertEqual
(
p
.
status_code
,
200
,
msg
=
"执行失败,请检查"
)
if
__name__
==
"__main__"
:
...
...
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