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
b022a77a
Commit
b022a77a
authored
Nov 09, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
5555efd9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
22 additions
and
15 deletions
+22
-15
workspace.xml
.idea/workspace.xml
+0
-0
result.html
report/result.html
+4
-4
test_adshow.py
testcase/android_events/test_adshow.py
+2
-1
test_appduration.py
testcase/android_events/test_appduration.py
+2
-1
test_batchUpload.py
testcase/android_events/test_batchUpload.py
+1
-1
test_custom.py
testcase/android_events/test_custom.py
+2
-1
test_install.py
testcase/android_events/test_install.py
+1
-1
test_login.py
testcase/android_events/test_login.py
+2
-1
test_pageduration.py
testcase/android_events/test_pageduration.py
+2
-1
test_payment.py
testcase/android_events/test_payment.py
+1
-1
test_payorder.py
testcase/android_events/test_payorder.py
+2
-1
test_register.py
testcase/android_events/test_register.py
+2
-1
test_startup.py
testcase/android_events/test_startup.py
+1
-1
No files found.
.idea/workspace.xml
View file @
b022a77a
This diff is collapsed.
Click to expand it.
report/result.html
View file @
b022a77a
...
...
@@ -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
1:23
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
3.709213
</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>
共 14,通过 14,通过率= 100.00%
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
...
...
@@ -208,7 +208,7 @@ pt1_1: 执行结果:
<div
id=
'div_pt2_1'
class=
"collapse in"
>
<pre>
pt2_1: click
:
{"status":0}
pt2_1: click
:
{"status":0}
</pre>
...
...
@@ -354,7 +354,7 @@ pt6_1: 自定义{"status":0}
<div
id=
'div_pt7_1'
class=
"collapse in"
>
<pre>
pt7_1: {"ts":1604903
486117
,"status":0}
pt7_1: {"ts":1604903
557908
,"status":0}
</pre>
...
...
testcase/android_events/test_adshow.py
View file @
b022a77a
...
...
@@ -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
adshow
:
"
+
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 @
b022a77a
...
...
@@ -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
(
"appduration
:
"
+
r
.
text
)
print
(
"appduration
:
"
+
r
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_batchUpload.py
View file @
b022a77a
...
...
@@ -17,4 +17,4 @@ from config.prod.params import params_batchUpload
class
batchUploadTestCase
(
unittest
.
TestCase
):
def
testbatchUpload
(
self
):
p
=
requests
.
post
(
url
=
prod_event_url
,
data
=
json
.
dumps
(
params_batchUpload
),
headers
=
headers
,
timeout
=
5
)
print
(
"
自定义
"
+
p
.
text
)
print
(
"
batch
"
+
p
.
text
)
testcase/android_events/test_custom.py
View file @
b022a77a
...
...
@@ -15,7 +15,7 @@ from config.prod.params import params_custom
class
customTestCase
(
unittest
.
TestCase
):
def
testcustom
(
self
):
p
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"event"
],
data
=
json
.
dumps
(
params_custom
),
headers
=
headers
,
timeout
=
5
)
print
(
"
自定义
"
+
p
.
text
)
print
(
"
custom
"
+
p
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_install.py
View file @
b022a77a
...
...
@@ -20,7 +20,7 @@ sys.path.append(rootPath)
class
installTestCase
(
unittest
.
TestCase
):
def
testinstall
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"install"
],
data
=
json
.
dumps
(
params_install
),
headers
=
headers
)
print
(
"
\n
激活事件执行结果:
"
+
r
.
text
)
print
(
"
\n
install:
"
+
r
.
text
)
# print(r.url)
# self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
...
...
testcase/android_events/test_login.py
View file @
b022a77a
...
...
@@ -17,7 +17,7 @@ from config.prod.params import params_login
class
loninTestCase
(
unittest
.
TestCase
):
def
testlogin
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"loggedin"
],
data
=
json
.
dumps
(
params_login
),
headers
=
headers
,
timeout
=
10
)
print
(
"
登录
"
+
r
.
text
)
print
(
"
login
"
+
r
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_pageduration.py
View file @
b022a77a
...
...
@@ -17,7 +17,7 @@ from config.prod.params import params_pageduration
class
pagedurationTestCase
(
unittest
.
TestCase
):
def
testpageduration
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"pageduration"
],
data
=
json
.
dumps
(
params_pageduration
),
headers
=
headers
,
timeout
=
5
)
print
(
"
App页面浏览时长分布:
"
+
r
.
text
)
print
(
"
pageduration:
"
+
r
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_payment.py
View file @
b022a77a
...
...
@@ -16,7 +16,7 @@ from config.prod.params import params_pay
class
payTestCase
(
unittest
.
TestCase
):
def
testpayment
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"payment"
],
data
=
json
.
dumps
(
params_pay
),
headers
=
headers
,
timeout
=
5
)
print
(
"
付费
"
+
r
.
text
)
print
(
"
payment
"
+
r
.
text
)
# print(json.dumps(params_pay))
# print(r)
...
...
testcase/android_events/test_payorder.py
View file @
b022a77a
...
...
@@ -16,7 +16,7 @@ from config.prod.params import params_payorder
class
payorderTestCase
(
unittest
.
TestCase
):
def
testpayorder
(
self
):
p
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"order"
],
data
=
json
.
dumps
(
params_payorder
),
headers
=
headers
,
timeout
=
5
)
print
(
"
订单
"
+
p
.
text
)
print
(
"
payorder
"
+
p
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_register.py
View file @
b022a77a
...
...
@@ -18,7 +18,7 @@ class registerTestCase(unittest.TestCase):
def
testregister
(
self
):
p
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"register"
],
data
=
json
.
dumps
(
params_register
),
headers
=
headers
,
timeout
=
10
)
# print("注册时间戳"+current_time_13)
print
(
"
注册
"
+
p
.
text
)
print
(
"
register
"
+
p
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
\ No newline at end of file
testcase/android_events/test_startup.py
View file @
b022a77a
...
...
@@ -16,7 +16,7 @@ from config.prod.params import params_startup
class
startupTestCase
(
unittest
.
TestCase
):
def
teststartup
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"startup"
],
data
=
json
.
dumps
(
params_startup
),
headers
=
headers
,
timeout
=
10
)
print
(
'
启动
'
+
r
.
text
)
print
(
'
startup
'
+
r
.
text
)
if
__name__
==
"__main__"
:
unittest
.
main
()
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