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
e08dfdec
Commit
e08dfdec
authored
4 years ago
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install enevt
parent
bca8ca65
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
workspace.xml
.idea/workspace.xml
+0
-0
params.py
config/prod/params.py
+7
-7
test_startup.py
testcase/android_events/test_startup.py
+8
-4
No files found.
.idea/workspace.xml
View file @
e08dfdec
This diff is collapsed.
Click to expand it.
config/prod/params.py
View file @
e08dfdec
...
@@ -47,15 +47,15 @@ params_install = {
...
@@ -47,15 +47,15 @@ params_install = {
}
}
params_startup
=
{
params_startup
=
{
# 'what': 'startup',
# 'what': 'startup',
'appid'
:
"9b17c1568c3ce34599c5fd2778483ff9"
,
'appid'
:
"9b17c1568c3ce34599c5fd2778483ff9"
,
'context'
:
{
'context'
:
{
'_deviceid'
:
i
,
'_deviceid'
:
"CFFEF74E-B6BF-BD16-E7F8-DFDBFF5FB6E1"
,
'_imei'
:
i
,
'_imei'
:
"cffef74e-b6bf-bd16-e7f8-dfdbff5fb6e1"
,
'_androidid'
:
i
,
'_androidid'
:
"43214532142142"
,
'_ip'
:
IP
,
'_ip'
:
"119.57.108.226"
,
'_timestamp'
:
current_time_13
,
'_timestamp'
:
int
(
round
(
time
.
time
()
*
1000
))
,
"_lib_version"
:
lv
,
"_lib_version"
:
"1.5.0"
,
# "_campaignid": 'default',
# "_campaignid": 'default',
# "_deviceid": i,
# "_deviceid": i,
# "_imei": i,
# "_imei": i,
...
...
This diff is collapsed.
Click to expand it.
testcase/android_events/test_startup.py
View file @
e08dfdec
...
@@ -7,9 +7,13 @@
...
@@ -7,9 +7,13 @@
"""
"""
import
unittest
import
unittest
import
json
import
requests
import
requests
from
co
mmon
import
randomUtil
from
co
nfig.envcfg
import
prod
class
startupTestCase
(
unittest
.
TestCase
):
print
(
prod
[
'events'
][
'url'
])
'''class startupTestCase(unittest.TestCase):
def teststartup(self):
def teststartup(self):
r
=
requests
.
post
(
url
=
URL
+
'startup'
,
data
=
s
,
headers
=
headers
,
timeout
=
10
)
r = requests.post(url=prod['events']['url'] + 'startup', data=s, headers=headers, timeout=10)'''
\ No newline at end of file
\ No newline at end of file
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