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
2e842388
Commit
2e842388
authored
Aug 11, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install enevt
parent
0e96f097
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
installEvent.py
testcase/android_click/installEvent.py
+4
-4
No files found.
testcase/android_click/installEvent.py
View file @
2e842388
...
...
@@ -7,19 +7,20 @@
"""
import
requests
import
json
from
config.envcfg
import
prod
,
prod_params
from
config.envcfg
import
prod
from
config.prod.params
import
params_install
headers
=
{
'Content-Type'
:
'application/json'
}
class
allEvent
:
# 激活
def
installUpload
(
self
):
try
:
p
=
requests
.
post
(
url
=
prod
[
"events"
][
"url"
]
+
'install'
,
data
=
json
.
dumps
(
params_install
),
headers
=
headers
,
timeout
=
5
)
print
(
"开始执行==================="
)
print
(
"激活:"
+
p
.
text
)
# print("设备id:" + i)
print
(
p
.
url
)
except
Exception
as
err
:
print
(
err
)
a
=
allEvent
()
\ No newline at end of file
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