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
87d32a42
Commit
87d32a42
authored
Nov 09, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8c2677bb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
workspace.xml
.idea/workspace.xml
+0
-0
result.html
report/result.html
+3
-3
test_adclick.py
testcase/android_events/test_adclick.py
+2
-1
test_adshow.py
testcase/android_events/test_adshow.py
+2
-1
test_appduration.py
testcase/android_events/test_appduration.py
+2
-1
No files found.
.idea/workspace.xml
View file @
87d32a42
This diff is collapsed.
Click to expand it.
report/result.html
View file @
87d32a42
...
...
@@ -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:2
2:1
3
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
3.505581
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-09 14:2
7:0
3
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
2.100936
</p>
<p
class=
'attribute'
><strong>
测试结果 :
</strong>
共 14,通过 14,通过率= 100.00%
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
...
...
@@ -354,7 +354,7 @@ pt6_1: 自定义{"status":0}
<div
id=
'div_pt7_1'
class=
"collapse in"
>
<pre>
pt7_1: {"ts":160490
2935788
,"status":0}
pt7_1: {"ts":160490
3224805
,"status":0}
</pre>
...
...
testcase/android_events/test_adclick.py
View file @
87d32a42
...
...
@@ -16,7 +16,7 @@ from config.prod.params import params_adclick
class
adclickTestCase
(
unittest
.
TestCase
):
def
testadclick
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"adclick"
],
data
=
json
.
dumps
(
params_adclick
),
headers
=
headers
,
timeout
=
5
)
print
(
"
广告点击
:"
+
r
.
text
)
print
(
"
click
:"
+
r
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_adshow.py
View file @
87d32a42
...
...
@@ -16,7 +16,7 @@ from config.prod.params import params_adshow
class
adshowTestCase
(
unittest
.
TestCase
):
def
testadshow
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"adshow"
],
data
=
json
.
dumps
(
params_adshow
),
headers
=
headers
,
timeout
=
5
)
print
(
"
\n
广告展示
:"
+
r
.
text
)
print
(
"
\n
adshow
:"
+
r
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_appduration.py
View file @
87d32a42
...
...
@@ -16,7 +16,7 @@ from config.prod.params import params_appduration
class
appdurationTestCase
(
unittest
.
TestCase
):
def
testappduration
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"appduration"
],
data
=
json
.
dumps
(
params_appduration
),
headers
=
headers
,
timeout
=
5
)
print
(
"
App使用时长
:"
+
r
.
text
)
print
(
"
appduration
:"
+
r
.
text
)
if
__name__
==
"__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