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
847d7c93
Commit
847d7c93
authored
Aug 31, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
9a878286
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
1 deletion
+2
-1
workspace.xml
.idea/workspace.xml
+0
-0
envcfg.py
config/envcfg.py
+1
-0
test_adclick.py
testcase/android_events/test_adclick.py
+1
-1
No files found.
.idea/workspace.xml
View file @
847d7c93
This diff is collapsed.
Click to expand it.
config/envcfg.py
View file @
847d7c93
...
...
@@ -23,6 +23,7 @@ prod = {
"url"
:
"http://10.3.20.42:8080"
,
"interface"
:
"/receive/tkiov2/install"
,
"appkey"
:
"b58f29d64718c6723895cb8a2389258c"
,
"adclick"
:
"adclick"
},
}
...
...
testcase/android_events/test_adclick.py
View file @
847d7c93
...
...
@@ -15,7 +15,7 @@ from config.prod.params import params_adclick
class
adclickTestCase
(
unittest
.
TestCase
):
def
testadclick
(
self
):
r
=
requests
.
post
(
url
=
prod
[
'events'
][
'url'
]
+
'adclick'
,
data
=
json
.
dumps
(
params_adclick
),
headers
=
headers
,
timeout
=
5
)
r
=
requests
.
post
(
url
=
prod
[
'events'
][
'url'
]
+
prod
[
'events'
][
'adclick'
]
,
data
=
json
.
dumps
(
params_adclick
),
headers
=
headers
,
timeout
=
5
)
print
(
"广告点击:"
+
r
.
text
)
if
__name__
==
"__main__"
:
...
...
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