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
5555efd9
Commit
5555efd9
authored
Nov 09, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
87d32a42
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
57 additions
and
39 deletions
+57
-39
workspace.xml
.idea/workspace.xml
+49
-32
result.html
report/result.html
+6
-6
test_adclick.py
testcase/android_events/test_adclick.py
+2
-1
No files found.
.idea/workspace.xml
View file @
5555efd9
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/report/result.html"
afterPath=
"$PROJECT_DIR$/report/result.html"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/report/result.html"
afterPath=
"$PROJECT_DIR$/report/result.html"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_adclick.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_adclick.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_adclick.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_adclick.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_adshow.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_adshow.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_appduration.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_appduration.py"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
@@ -124,20 +122,29 @@
...
@@ -124,20 +122,29 @@
<element
signature=
"n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"e#3653#3657#0"
expanded=
"true"
/>
<element
signature=
"e#3653#3657#0"
expanded=
"true"
/>
<element
signature=
"e#3667#3671#0"
expanded=
"true"
/>
<element
signature=
"e#3667#3671#0"
expanded=
"true"
/>
<element
signature=
"e#19069#19075#1"
expanded=
"true"
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"17850:18153"
ph=
"..."
/>
<element
signature=
"n#style#0;n#div#2;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18189:18890"
ph=
"..."
/>
<marker
date=
"1604903225481"
expanded=
"true"
signature=
"19245:19260"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18295:18884"
ph=
"..."
/>
<marker
date=
"1604903225481"
expanded=
"true"
signature=
"19280:19292"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18305:18511"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18725:18874"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18735:18863"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18938:19047"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19076:19082"
ph=
" "
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19105:19184"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19185:19309"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19202:19303"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19252:19267"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19287:19299"
ph=
"..."
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"test_adclick.py"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<file
leaf-file-name=
"test_adclick.py"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_adclick.py"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_adclick.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"270"
>
<state
relative-caret-position=
"270"
>
<caret
line=
"18"
column=
"2
0"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"20"
selection-end-line=
"18"
selection-end-column=
"20
"
/>
<caret
line=
"18"
column=
"2
1"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"21"
selection-end-line=
"18"
selection-end-column=
"21
"
/>
<folding>
<folding>
<element
signature=
"e#103#118#0"
expanded=
"true"
/>
<element
signature=
"e#103#118#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -167,7 +174,7 @@
...
@@ -167,7 +174,7 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"test_appduration.py"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"test_appduration.py"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_appduration.py"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_appduration.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"210"
>
<state
relative-caret-position=
"210"
>
...
@@ -273,9 +280,9 @@
...
@@ -273,9 +280,9 @@
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_login.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_login.py"
/>
<option
value=
"$PROJECT_DIR$/report/result.html"
/>
<option
value=
"$PROJECT_DIR$/report/result.html"
/>
<option
value=
"$PROJECT_DIR$/testcase/run_all_cases.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/run_all_cases.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_adclick.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_adshow.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_adshow.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_appduration.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_appduration.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_adclick.py"
/>
</list>
</list>
</option>
</option>
</component>
</component>
...
@@ -680,13 +687,6 @@
...
@@ -680,13 +687,6 @@
<updated>
1596505503233
</updated>
<updated>
1596505503233
</updated>
<workItem
from=
"1596786333197"
duration=
"228000"
/>
<workItem
from=
"1596786333197"
duration=
"228000"
/>
</task>
</task>
<task
id=
"LOCAL-00021"
summary=
"add install enevt"
>
<created>
1597655841618
</created>
<option
name=
"number"
value=
"00021"
/>
<option
name=
"presentableId"
value=
"LOCAL-00021"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1597655841618
</updated>
</task>
<task
id=
"LOCAL-00022"
summary=
"add install enevt"
>
<task
id=
"LOCAL-00022"
summary=
"add install enevt"
>
<created>
1597655977117
</created>
<created>
1597655977117
</created>
<option
name=
"number"
value=
"00022"
/>
<option
name=
"number"
value=
"00022"
/>
...
@@ -1023,7 +1023,14 @@
...
@@ -1023,7 +1023,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1604903171628
</updated>
<updated>
1604903171628
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"70"
/>
<task
id=
"LOCAL-00070"
summary=
"update"
>
<created>
1604903468576
</created>
<option
name=
"number"
value=
"00070"
/>
<option
name=
"presentableId"
value=
"LOCAL-00070"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1604903468577
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"71"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TestHistory"
>
<component
name=
"TestHistory"
>
...
@@ -1457,10 +1464,19 @@
...
@@ -1457,10 +1464,19 @@
<element
signature=
"n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"n#style#0;n#h1#0;n#div#0;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<element
signature=
"e#3653#3657#0"
expanded=
"true"
/>
<element
signature=
"e#3653#3657#0"
expanded=
"true"
/>
<element
signature=
"e#3667#3671#0"
expanded=
"true"
/>
<element
signature=
"e#3667#3671#0"
expanded=
"true"
/>
<element
signature=
"e#19069#19075#1"
expanded=
"true"
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"17850:18153"
ph=
"..."
/>
<element
signature=
"n#style#0;n#div#2;n#body#0;n#html#0;n#!!top"
expanded=
"true"
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18189:18890"
ph=
"..."
/>
<marker
date=
"1604903225481"
expanded=
"true"
signature=
"19245:19260"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18295:18884"
ph=
"..."
/>
<marker
date=
"1604903225481"
expanded=
"true"
signature=
"19280:19292"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18305:18511"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18725:18874"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18735:18863"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"18938:19047"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19076:19082"
ph=
" "
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19105:19184"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19185:19309"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19202:19303"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19252:19267"
ph=
"..."
/>
<marker
date=
"1604903487076"
expanded=
"true"
signature=
"19287:19299"
ph=
"..."
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
...
@@ -1505,16 +1521,6 @@
...
@@ -1505,16 +1521,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_adclick.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"270"
>
<caret
line=
"18"
column=
"20"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"20"
selection-end-line=
"18"
selection-end-column=
"20"
/>
<folding>
<element
signature=
"e#103#118#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_adshow.py"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_adshow.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"270"
>
<state
relative-caret-position=
"270"
>
...
@@ -1533,5 +1539,15 @@
...
@@ -1533,5 +1539,15 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_adclick.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"270"
>
<caret
line=
"18"
column=
"21"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"21"
selection-end-line=
"18"
selection-end-column=
"21"
/>
<folding>
<element
signature=
"e#103#118#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
</component>
</component>
</project>
</project>
\ No newline at end of file
report/result.html
View file @
5555efd9
...
@@ -123,8 +123,8 @@ function html_escape(s) {
...
@@ -123,8 +123,8 @@ function html_escape(s) {
<div
class=
'heading'
>
<div
class=
'heading'
>
<h1
style=
"font-family: Microsoft YaHei"
>
<
TKIO接口监控报告
>
</h1>
<h1
style=
"font-family: Microsoft YaHei"
>
<
TKIO接口监控报告
>
</h1>
<p
class=
'attribute'
><strong>
测试人员 :
</strong>
翟会涛
</p>
<p
class=
'attribute'
><strong>
测试人员 :
</strong>
翟会涛
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-09 14:
27:0
3
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-09 14:
31:2
3
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
2.100936
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
3.709213
</p>
<p
class=
'attribute'
><strong>
测试结果 :
</strong>
共 14,通过 14,通过率= 100.00%
</p>
<p
class=
'attribute'
><strong>
测试结果 :
</strong>
共 14,通过 14,通过率= 100.00%
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
...
@@ -208,7 +208,7 @@ pt1_1: 执行结果:
...
@@ -208,7 +208,7 @@ pt1_1: 执行结果:
<div
id=
'div_pt2_1'
class=
"collapse in"
>
<div
id=
'div_pt2_1'
class=
"collapse in"
>
<pre>
<pre>
pt2_1:
广告点击
:{"status":0}
pt2_1:
click
:{"status":0}
</pre>
</pre>
...
@@ -238,7 +238,7 @@ pt2_1: 广告点击:{"status":0}
...
@@ -238,7 +238,7 @@ pt2_1: 广告点击:{"status":0}
<pre>
<pre>
pt3_1:
pt3_1:
广告展示
:{"status":0}
adshow
:{"status":0}
</pre>
</pre>
...
@@ -267,7 +267,7 @@ pt3_1:
...
@@ -267,7 +267,7 @@ pt3_1:
<div
id=
'div_pt4_1'
class=
"collapse in"
>
<div
id=
'div_pt4_1'
class=
"collapse in"
>
<pre>
<pre>
pt4_1:
App使用时长
:{"status":0}
pt4_1:
appduration
:{"status":0}
</pre>
</pre>
...
@@ -354,7 +354,7 @@ pt6_1: 自定义{"status":0}
...
@@ -354,7 +354,7 @@ pt6_1: 自定义{"status":0}
<div
id=
'div_pt7_1'
class=
"collapse in"
>
<div
id=
'div_pt7_1'
class=
"collapse in"
>
<pre>
<pre>
pt7_1: {"ts":1604903
224805
,"status":0}
pt7_1: {"ts":1604903
486117
,"status":0}
</pre>
</pre>
...
...
testcase/android_events/test_adclick.py
View file @
5555efd9
...
@@ -16,7 +16,7 @@ from config.prod.params import params_adclick
...
@@ -16,7 +16,7 @@ from config.prod.params import params_adclick
class
adclickTestCase
(
unittest
.
TestCase
):
class
adclickTestCase
(
unittest
.
TestCase
):
def
testadclick
(
self
):
def
testadclick
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"adclick"
],
data
=
json
.
dumps
(
params_adclick
),
headers
=
headers
,
timeout
=
5
)
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"adclick"
],
data
=
json
.
dumps
(
params_adclick
),
headers
=
headers
,
timeout
=
5
)
print
(
"click
:
"
+
r
.
text
)
print
(
"click
:
"
+
r
.
text
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
\ 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