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
62d90780
Commit
62d90780
authored
4 years ago
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
892c2b7d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
workspace.xml
.idea/workspace.xml
+0
-0
envcfg.py
config/envcfg.py
+1
-1
params.py
config/prod/params.py
+1
-1
result.html
report/result.html
+4
-4
test_click.py
testcase/android_click/test_click.py
+1
-1
No files found.
.idea/workspace.xml
View file @
62d90780
This diff is collapsed.
Click to expand it.
config/envcfg.py
View file @
62d90780
...
...
@@ -17,7 +17,7 @@ url = rc.get("env", "click_url")
print
(
url
)
click_url
=
'http://uri6.com/tkio/
Er6BFn
a'
click_url
=
'http://uri6.com/tkio/
fMnmYb
a'
prod_event_url
=
'http://log.trackingio.com'
# prod_event_url = 'http://10.3.20.42:8080'
test_event_url
=
'http://10.3.20.42:8080'
...
...
This diff is collapsed.
Click to expand it.
config/prod/params.py
View file @
62d90780
...
...
@@ -16,7 +16,7 @@ params_click = {
# 'imei': "881554685049",
"idfa"
:
'DBC43622-E38B-440C-B7A7-FB6641D0D9AB'
,
'ip'
:
randomUtil
.
r
.
randip
(),
#"idfa": "00000000-0000-0000-0000-000000000000",
#
"idfa": "00000000-0000-0000-0000-000000000000",
# "idfv": ""
# "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 8_0 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9A334 Safari/7534.48.3",
# 'creativeId':'21321321312123',
...
...
This diff is collapsed.
Click to expand it.
report/result.html
View file @
62d90780
...
...
@@ -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 1
4:37:02
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
2.055804
</p>
<p
class=
'attribute'
><strong>
开始时间 :
</strong>
2020-11-09 1
5:15:10
</p>
<p
class=
'attribute'
><strong>
合计耗时 :
</strong>
0:00:0
7.359393
</p>
<p
class=
'attribute'
><strong>
测试结果 :
</strong>
共 14,通过 14,通过率= 100.00%
</p>
<p
class=
'description'
>
TKIO接口自动化测试用例
</p>
...
...
@@ -177,7 +177,7 @@ function html_escape(s) {
<div
id=
'div_pt1_1'
class=
"collapse in"
>
<pre>
pt1_1:
click
<
!DOCTYPE html
>
pt1_1:
<
!DOCTYPE html
>
<
html
>
<
head
>
...
...
@@ -628,7 +628,7 @@ pt6_1: custom{"status":0}
<div
id=
'div_pt7_1'
class=
"collapse in"
>
<pre>
pt7_1: {"ts":160490
382375
0,"status":0}
pt7_1: {"ts":160490
611560
0,"status":0}
</pre>
...
...
This diff is collapsed.
Click to expand it.
testcase/android_click/test_click.py
View file @
62d90780
...
...
@@ -21,7 +21,7 @@ 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
(
p
.
text
)
print
(
p
.
status_code
)
# print(p)
# time.sleep(7)
# try:
...
...
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