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
2052fd65
Commit
2052fd65
authored
Nov 09, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b022a77a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
93 additions
and
82 deletions
+93
-82
workspace.xml
.idea/workspace.xml
+77
-66
result.html
report/result.html
+14
-14
test_click.py
testcase/android_click/test_click.py
+2
-2
No files found.
.idea/workspace.xml
View file @
2052fd65
...
...
@@ -4,17 +4,7 @@
<list
default=
"true"
id=
"d0064643-2990-4ed3-bfb0-875849b30f4e"
name=
"Default"
comment=
""
>
<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$/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"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_batchUpload.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_batchUpload.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_custom.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_custom.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_install.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_install.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_login.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_login.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_pageduration.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_pageduration.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_payment.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_payment.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_payorder.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_payorder.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_register.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_register.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_events/test_startup.py"
afterPath=
"$PROJECT_DIR$/testcase/android_events/test_startup.py"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/testcase/android_click/test_click.py"
afterPath=
"$PROJECT_DIR$/testcase/android_click/test_click.py"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
...
@@ -89,11 +79,11 @@
<component
name=
"ExecutionTargetManager"
SELECTED_TARGET=
"default_target"
/>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"test_
gettime.py"
pinned=
"false"
current-in-tab=
"fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_
events/test_gettime
.py"
>
<file
leaf-file-name=
"test_
click.py"
pinned=
"false"
current-in-tab=
"tru
e"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_
click/test_click
.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
60
"
>
<caret
line=
"
4"
column=
"24"
lean-forward=
"false"
selection-start-line=
"4"
selection-start-column=
"24"
selection-end-line=
"4"
selection-end-column=
"2
4"
/>
<state
relative-caret-position=
"
285
"
>
<caret
line=
"
24"
column=
"14"
lean-forward=
"false"
selection-start-line=
"24"
selection-start-column=
"14"
selection-end-line=
"24"
selection-end-column=
"1
4"
/>
<folding
/>
</state>
</provider>
...
...
@@ -111,7 +101,7 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"tokenTest.py"
pinned=
"false"
current-in-tab=
"
tru
e"
>
<file
leaf-file-name=
"tokenTest.py"
pinned=
"false"
current-in-tab=
"
fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/tokenTest.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"300"
>
...
...
@@ -143,6 +133,18 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"test_adclick.py"
pinned=
"false"
current-in-tab=
"false"
>
<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>
</file>
<file
leaf-file-name=
"test_payorder.py"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_payorder.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
...
@@ -163,16 +165,6 @@
</provider>
</entry>
</file>
<file
leaf-file-name=
"test_custom.py"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_custom.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"195"
>
<caret
line=
"17"
column=
"21"
lean-forward=
"false"
selection-start-line=
"17"
selection-start-column=
"21"
selection-end-line=
"17"
selection-end-column=
"21"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"test_startup.py"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_startup.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
...
...
@@ -247,7 +239,6 @@
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_token.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/tokenTest.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_click/click.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_click/test_click.py"
/>
<option
value=
"$PROJECT_DIR$/common/iniUtil.py"
/>
<option
value=
"$PROJECT_DIR$/config/setting/config.ini"
/>
<option
value=
"$PROJECT_DIR$/common/socket/socketTest.py"
/>
...
...
@@ -272,6 +263,7 @@
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_payorder.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_register.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_events/test_startup.py"
/>
<option
value=
"$PROJECT_DIR$/testcase/android_click/test_click.py"
/>
</list>
</option>
</component>
...
...
@@ -361,6 +353,24 @@
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"testcase"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"android_click"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"interfaceTest"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"interfaceTest"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
<PATH_ELEMENT>
<option
name=
"myItemId"
value=
"report"
/>
<option
name=
"myItemType"
value=
"com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode"
/>
</PATH_ELEMENT>
...
...
@@ -676,13 +686,6 @@
<updated>
1596505503233
</updated>
<workItem
from=
"1596786333197"
duration=
"228000"
/>
</task>
<task
id=
"LOCAL-00023"
summary=
"add install enevt"
>
<created>
1597656832020
</created>
<option
name=
"number"
value=
"00023"
/>
<option
name=
"presentableId"
value=
"LOCAL-00023"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1597656832020
</updated>
</task>
<task
id=
"LOCAL-00024"
summary=
"add install enevt"
>
<created>
1597657096457
</created>
<option
name=
"number"
value=
"00024"
/>
...
...
@@ -1019,7 +1022,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1604903545378
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"72"
/>
<task
id=
"LOCAL-00072"
summary=
"update"
>
<created>
1604903723103
</created>
<option
name=
"number"
value=
"00072"
/>
<option
name=
"presentableId"
value=
"LOCAL-00072"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1604903723103
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"73"
/>
<servers
/>
</component>
<component
name=
"TestHistory"
>
...
...
@@ -1264,14 +1274,6 @@
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_click/test_click.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"300"
>
<caret
line=
"25"
column=
"27"
lean-forward=
"false"
selection-start-line=
"25"
selection-start-column=
"27"
selection-end-line=
"25"
selection-end-column=
"27"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/config/envcfg.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"218"
>
...
...
@@ -1370,19 +1372,19 @@
<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#3667#3671#0"
expanded=
"true"
/>
<marker
date=
"1604903
558673
"
expanded=
"true"
signature=
"17850:18153"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"18189:1889
0"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"18295:1888
4"
ph=
"..."
/>
<marker
date=
"1604903
558673
"
expanded=
"true"
signature=
"18305:18511"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"18725:1887
4"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"18735:1886
3"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"18938:1904
7"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"19076:1908
2"
ph=
" "
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"19105:1918
4"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"19185:1930
9"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"19202:1930
3"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"19252:1926
7"
ph=
"..."
/>
<marker
date=
"1604903
558673"
expanded=
"true"
signature=
"19287:1929
9"
ph=
"..."
/>
<marker
date=
"1604903
743610
"
expanded=
"true"
signature=
"17850:18153"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"18782:1892
0"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"18782:1891
4"
ph=
"..."
/>
<marker
date=
"1604903
743610
"
expanded=
"true"
signature=
"18305:18511"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"18782:1890
4"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"18782:1889
3"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"18968:1907
7"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"19106:1911
2"
ph=
" "
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"19135:1921
4"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"19215:1933
9"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"19232:1933
3"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"19282:1929
7"
ph=
"..."
/>
<marker
date=
"1604903
743610"
expanded=
"true"
signature=
"19317:1932
9"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -1427,16 +1429,6 @@
</state>
</provider>
</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>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_events/test_adshow.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"270"
>
...
...
@@ -1547,5 +1539,23 @@
</state>
</provider>
</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>
<entry
file=
"file://$PROJECT_DIR$/testcase/android_click/test_click.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"285"
>
<caret
line=
"24"
column=
"14"
lean-forward=
"false"
selection-start-line=
"24"
selection-start-column=
"14"
selection-end-line=
"24"
selection-end-column=
"14"
/>
<folding
/>
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
report/result.html
View file @
2052fd65
...
...
@@ -123,8 +123,8 @@ function html_escape(s) {
<div
class=
'heading'
>
<h1
style=
"font-family: Microsoft YaHei"
>
<
TKIO接口监控报告
>
</h1>
<p
class=
'attribute'
><strong>
测试人员 :
</strong>
翟会涛
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-09 14:3
2:35
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
2.898860
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-09 14:3
5:37
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
6.206539
</p>
<p
class=
'attribute'
><strong>
测试结果 :
</strong>
共 14,通过 14,通过率= 100.00%
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
...
...
@@ -238,7 +238,7 @@ pt2_1: click:{"status":0}
<pre>
pt3_1:
adshow
:
{"status":0}
adshow
:
{"status":0}
</pre>
...
...
@@ -267,7 +267,7 @@ adshow:{"status":0}
<div
id=
'div_pt4_1'
class=
"collapse in"
>
<pre>
pt4_1: appduration
:
{"status":0}
pt4_1: appduration
:
{"status":0}
</pre>
...
...
@@ -296,7 +296,7 @@ pt4_1: appduration:{"status":0}
<div
id=
'div_pt5_1'
class=
"collapse in"
>
<pre>
pt5_1:
自定义
pt5_1:
batch
</pre>
...
...
@@ -325,7 +325,7 @@ pt5_1: 自定义
<div
id=
'div_pt6_1'
class=
"collapse in"
>
<pre>
pt6_1:
自定义
{"status":0}
pt6_1:
custom
{"status":0}
</pre>
...
...
@@ -354,7 +354,7 @@ pt6_1: 自定义{"status":0}
<div
id=
'div_pt7_1'
class=
"collapse in"
>
<pre>
pt7_1: {"ts":1604903
55790
8,"status":0}
pt7_1: {"ts":1604903
74085
8,"status":0}
</pre>
...
...
@@ -384,7 +384,7 @@ pt7_1: {"ts":1604903557908,"status":0}
<pre>
pt8_1:
激活事件执行结果:
{"status":0}
install:
{"status":0}
</pre>
...
...
@@ -413,7 +413,7 @@ pt8_1:
<div
id=
'div_pt9_1'
class=
"collapse in"
>
<pre>
pt9_1:
登录
{"status":0}
pt9_1:
login
{"status":0}
</pre>
...
...
@@ -442,7 +442,7 @@ pt9_1: 登录{"status":0}
<div
id=
'div_pt10_1'
class=
"collapse in"
>
<pre>
pt10_1:
App页面浏览时长分布:
{"status":0}
pt10_1:
pageduration:
{"status":0}
</pre>
...
...
@@ -471,7 +471,7 @@ pt10_1: App页面浏览时长分布:{"status":0}
<div
id=
'div_pt11_1'
class=
"collapse in"
>
<pre>
pt11_1:
付费
{"status":0}
pt11_1:
payment
{"status":0}
</pre>
...
...
@@ -500,7 +500,7 @@ pt11_1: 付费{"status":0}
<div
id=
'div_pt12_1'
class=
"collapse in"
>
<pre>
pt12_1:
订单
{"status":0}
pt12_1:
payorder
{"status":0}
</pre>
...
...
@@ -529,7 +529,7 @@ pt12_1: 订单{"status":0}
<div
id=
'div_pt13_1'
class=
"collapse in"
>
<pre>
pt13_1:
注册
{"status":0}
pt13_1:
register
{"status":0}
</pre>
...
...
@@ -558,7 +558,7 @@ pt13_1: 注册{"status":0}
<div
id=
'div_pt14_1'
class=
"collapse in"
>
<pre>
pt14_1:
启动
{"status":0,"caid":"00_658BF93B71D8CCD446667DF1FC8F5112_A621A8F4404C9B0D3CF26AA86457456A","type":1}
pt14_1:
startup
{"status":0,"caid":"00_658BF93B71D8CCD446667DF1FC8F5112_A621A8F4404C9B0D3CF26AA86457456A","type":1}
</pre>
...
...
testcase/android_click/test_click.py
View file @
2052fd65
...
...
@@ -21,8 +21,8 @@ class clickTestCase(unittest.TestCase):
def
testclick
(
self
):
p
=
requests
.
get
(
url
=
click_url
,
params
=
params_click
,
timeout
=
30
,
verify
=
False
)
# self.assertEqual(p.status_code, 300, msg='接口异常,请检查')
print
(
'
执行结果:
\n
================='
)
print
(
p
)
print
(
'
click'
+
p
.
text
)
#
print(p)
# time.sleep(7)
# try:
# allEvent().installUpload(randomUtil.r.randimei(), randomUtil.r.randip(), prod['events']['appkey'], prod['cmpaignid'])
...
...
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