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
8e0918ec
Commit
8e0918ec
authored
Oct 29, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
14730d87
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
0 deletions
+26
-0
workspace.xml
.idea/workspace.xml
+0
-0
test_gettime.py
testcase/android_events/test_gettime.py
+26
-0
No files found.
.idea/workspace.xml
View file @
8e0918ec
This diff is collapsed.
Click to expand it.
testcase/android_events/test_gettime.py
0 → 100644
View file @
8e0918ec
# -*- coding: utf-8 -*-
"""
@author:zhaiht
@file: test_gettime.py
@time: 2020/10/29 16:40
@desc:
"""
import
requests
import
json
import
unittest
from
config.envcfg
import
prod_event_url
,
event_interface
,
headers
from
config.prod.params
import
params_install
class
gettimeTestCase
(
unittest
.
TestCase
):
def
gettime
(
self
):
# r = requests.get(url=prod_event_url+'/receive/gettime', headers=headers)
r
=
requests
.
get
(
'http://log.trackingio.com:80/receive/gettime'
)
print
(
r
.
text
)
print
(
r
.
url
)
# self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
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