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
405a38c8
Commit
405a38c8
authored
4 years ago
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install enevt
parent
83d47b26
master
…
dev2021
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
90 additions
and
34 deletions
+90
-34
workspace.xml
.idea/workspace.xml
+45
-32
params.py
config/prod/params.py
+36
-0
test_startup.py
testcase/android_events/test_startup.py
+9
-2
No files found.
.idea/workspace.xml
View file @
405a38c8
...
...
@@ -2,8 +2,9 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"d0064643-2990-4ed3-bfb0-875849b30f4e"
name=
"Default"
comment=
""
>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_startup.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/config/prod/params.py"
afterPath=
"$PROJECT_DIR$/config/prod/params.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_startup.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_startup.py"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
...
@@ -96,7 +97,7 @@
<file
leaf-file-name=
"test_install.py"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_install.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
1
0"
>
<state
relative-caret-position=
"2
7
0"
>
<caret
line=
"18"
column=
"119"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"119"
selection-end-line=
"18"
selection-end-column=
"119"
/>
<folding>
<element
signature=
"e#102#117#0"
expanded=
"true"
/>
...
...
@@ -105,11 +106,11 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"randomUtil.py"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"randomUtil.py"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/common/randomUtil.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
0
0"
>
<caret
line=
"22"
column=
"1
6"
lean-forward=
"false"
selection-start-line=
"22"
selection-start-column=
"16"
selection-end-line=
"22"
selection-end-column=
"16
"
/>
<state
relative-caret-position=
"3
3
0"
>
<caret
line=
"22"
column=
"1
4"
lean-forward=
"false"
selection-start-line=
"22"
selection-start-column=
"14"
selection-end-line=
"22"
selection-end-column=
"14
"
/>
<folding>
<element
signature=
"e#100#113#0"
expanded=
"true"
/>
</folding>
...
...
@@ -130,19 +131,21 @@
<file
leaf-file-name=
"params.py"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/config/prod/params.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
152
"
>
<caret
line=
"
26"
column=
"37"
lean-forward=
"false"
selection-start-line=
"26"
selection-start-column=
"37"
selection-end-line=
"26"
selection-end-column=
"37
"
/>
<state
relative-caret-position=
"
345
"
>
<caret
line=
"
50"
column=
"58"
lean-forward=
"false"
selection-start-line=
"50"
selection-start-column=
"58"
selection-end-line=
"50"
selection-end-column=
"58
"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"test_startup.py"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"test_startup.py"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_startup.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"45"
>
<caret
line=
"3"
column=
"23"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"23"
selection-end-line=
"3"
selection-end-column=
"23"
/>
<folding
/>
<state
relative-caret-position=
"195"
>
<caret
line=
"13"
column=
"36"
lean-forward=
"false"
selection-start-line=
"13"
selection-start-column=
"36"
selection-end-line=
"13"
selection-end-column=
"36"
/>
<folding>
<element
signature=
"e#103#118#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
...
...
@@ -184,8 +187,8 @@
<option
value=
"$PROJECT_DIR$/testcase/android_events/installEvent.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_click/test_click.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_install.py"
/>
<option
value=
"$PROJECT_DIR$/config/prod/params.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_startup.py"
/>
<option
value=
"$PROJECT_DIR$/config/prod/params.py"
/>
</list>
</option>
</component>
...
...
@@ -761,7 +764,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1597653686002
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"20"
/>
<task
id=
"LOCAL-00020"
summary=
"add install enevt"
>
<created>
1597653726001
</created>
<option
name=
"number"
value=
"00020"
/>
<option
name=
"presentableId"
value=
"LOCAL-00020"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1597653726001
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"21"
/>
<servers
/>
</component>
<component
name=
"TestHistory"
>
...
...
@@ -807,9 +817,8 @@
</component>
<component
name=
"ToolWindowManager"
>
<frame
x=
"0"
y=
"23"
width=
"1280"
height=
"724"
extended-state=
"6"
/>
<editor
active=
"true"
/>
<layout>
<window_info
id=
"Project"
active=
"
fals
e"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.2657512"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Project"
active=
"
tru
e"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.2657512"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"TODO"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32838285"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Event Log"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32838285"
sideWeight=
"0.5048465"
order=
"7"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Database"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32956383"
sideWeight=
"0.5"
order=
"3"
side_tool=
"false"
content_ui=
"tabs"
/>
...
...
@@ -1130,6 +1139,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"127"
>
<caret
line=
"60"
column=
"8"
lean-forward=
"false"
selection-start-line=
"60"
selection-start-column=
"8"
selection-end-line=
"60"
selection-end-column=
"8"
/>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -1137,16 +1147,7 @@
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-11918"
>
<caret
line=
"340"
column=
"6"
lean-forward=
"false"
selection-start-line=
"340"
selection-start-column=
"6"
selection-end-line=
"340"
selection-end-column=
"6"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/common/randomUtil.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"300"
>
<caret
line=
"22"
column=
"16"
lean-forward=
"false"
selection-start-line=
"22"
selection-start-column=
"16"
selection-end-line=
"22"
selection-end-column=
"16"
/>
<folding>
<element
signature=
"e#100#113#0"
expanded=
"true"
/>
</folding>
<folding
/>
</state>
</provider>
</entry>
...
...
@@ -1214,7 +1215,7 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_install.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
1
0"
>
<state
relative-caret-position=
"2
7
0"
>
<caret
line=
"18"
column=
"119"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"119"
selection-end-line=
"18"
selection-end-column=
"119"
/>
<folding>
<element
signature=
"e#102#117#0"
expanded=
"true"
/>
...
...
@@ -1222,19 +1223,31 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_startup.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"195"
>
<caret
line=
"13"
column=
"36"
lean-forward=
"false"
selection-start-line=
"13"
selection-start-column=
"36"
selection-end-line=
"13"
selection-end-column=
"36"
/>
<folding>
<element
signature=
"e#103#118#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/config/prod/params.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
152
"
>
<caret
line=
"
26"
column=
"37"
lean-forward=
"false"
selection-start-line=
"26"
selection-start-column=
"37"
selection-end-line=
"26"
selection-end-column=
"37
"
/>
<state
relative-caret-position=
"
345
"
>
<caret
line=
"
50"
column=
"58"
lean-forward=
"false"
selection-start-line=
"50"
selection-start-column=
"58"
selection-end-line=
"50"
selection-end-column=
"58
"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/
testcase/android_events/test_startup
.py"
>
<entry
file=
"file://$PROJECT_DIR$/
common/randomUtil
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"45"
>
<caret
line=
"3"
column=
"23"
lean-forward=
"true"
selection-start-line=
"3"
selection-start-column=
"23"
selection-end-line=
"3"
selection-end-column=
"23"
/>
<folding
/>
<state
relative-caret-position=
"330"
>
<caret
line=
"22"
column=
"14"
lean-forward=
"false"
selection-start-line=
"22"
selection-start-column=
"14"
selection-end-line=
"22"
selection-end-column=
"14"
/>
<folding>
<element
signature=
"e#100#113#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
...
...
This diff is collapsed.
Click to expand it.
config/prod/params.py
View file @
405a38c8
...
...
@@ -45,3 +45,38 @@ params_install = {
# 'ds': ds,
'who'
:
'lxx_test'
}
params_startup
=
{
# 'what': 'startup',
'appid'
:
"9b17c1568c3ce34599c5fd2778483ff9"
,
'context'
:
{
'_deviceid'
:
i
,
'_imei'
:
i
,
'_androidid'
:
i
,
'_ip'
:
IP
,
'_timestamp'
:
current_time_13
,
"_lib_version"
:
lv
,
# "_campaignid": 'default',
# "_deviceid": i,
# "_imei": i,
# # "_idfa": '75463565745634546',
# "_androidid": "424653325643",
# # "_imei2":"324323AAAA",
# # "_meid": "CCC324323",
# "_ip": IP,
# # "_ipv6": i,
# '_manufacturer': manufacturer,
# '_ryos': ryos,
# '_rydevicetype': rydevicetype,
# '_network': network,
# '_resolution': resolution,
# '_op': op,
# '_timestamp': current_time_13,
# '_oaid': '999b6e3e-a274-ed22-cebf-2b6dddfc29b7'
# # '_mac':"565354131606"
},
# 'when': when,
# 'ds': ds,
'who'
:
'lxx_test'
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
testcase/android_events/test_startup.py
View file @
405a38c8
...
...
@@ -4,4 +4,11 @@
@file: test_startup.py
@time: 2020/8/17 16:41
@desc:
"""
\ No newline at end of file
"""
import
unittest
import
requests
class
startupTestCase
(
unittest
.
TestCase
):
def
teststartup
(
self
):
r
=
requests
.
post
(
url
=
URL
+
'startup'
,
data
=
s
,
headers
=
headers
,
timeout
=
10
)
\ 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