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
4 years ago
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
8c2677bb
master
…
dev2021
No related merge requests found
Expand all
Hide 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) {
...
@@ -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:2
2:1
3
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-09 14:2
7:0
3
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
3.505581
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
2.100936
</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>
...
@@ -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":160490
2935788
,"status":0}
pt7_1: {"ts":160490
3224805
,"status":0}
</pre>
</pre>
...
...
This diff is collapsed.
Click to expand it.
testcase/android_events/test_adclick.py
View file @
87d32a42
...
@@ -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
(
"
广告点击
:"
+
r
.
text
)
print
(
"
click
:"
+
r
.
text
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
testcase/android_events/test_adshow.py
View file @
87d32a42
...
@@ -16,7 +16,7 @@ from config.prod.params import params_adshow
...
@@ -16,7 +16,7 @@ from config.prod.params import params_adshow
class
adshowTestCase
(
unittest
.
TestCase
):
class
adshowTestCase
(
unittest
.
TestCase
):
def
testadshow
(
self
):
def
testadshow
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"adshow"
],
data
=
json
.
dumps
(
params_adshow
),
headers
=
headers
,
timeout
=
5
)
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__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
testcase/android_events/test_appduration.py
View file @
87d32a42
...
@@ -16,7 +16,7 @@ from config.prod.params import params_appduration
...
@@ -16,7 +16,7 @@ from config.prod.params import params_appduration
class
appdurationTestCase
(
unittest
.
TestCase
):
class
appdurationTestCase
(
unittest
.
TestCase
):
def
testappduration
(
self
):
def
testappduration
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"appduration"
],
data
=
json
.
dumps
(
params_appduration
),
headers
=
headers
,
timeout
=
5
)
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__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
\ 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