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
a7ba3814
Commit
a7ba3814
authored
4 years ago
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3ca0228c
master
…
dev2021
No related merge requests found
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
13 deletions
+12
-13
workspace.xml
.idea/workspace.xml
+0
-0
envcfg.py
config/envcfg.py
+0
-5
test_custom.py
testcase/android_events/test_custom.py
+0
-1
test_gettime.py
testcase/android_events/test_gettime.py
+3
-6
test_install.py
testcase/android_events/test_install.py
+5
-0
run_all_cases.py
testcase/run_all_cases.py
+4
-1
No files found.
.idea/workspace.xml
View file @
a7ba3814
This diff is collapsed.
Click to expand it.
config/envcfg.py
View file @
a7ba3814
...
@@ -8,18 +8,13 @@
...
@@ -8,18 +8,13 @@
from
numpy
import
long
from
numpy
import
long
import
os
,
sys
import
os
,
sys
from
common.iniUtil
import
read_config
from
common.iniUtil
import
read_config
import
time
base_path
=
os
.
getcwd
()
sys
.
path
.
append
(
base_path
)
# 测试环境
# 生产环境:
# 生产环境:
path
=
"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/config/setting/config.ini"
path
=
"/Users/zhaihuitao/PycharmProjects/TKIO/interfaceTest/config/setting/config.ini"
rc
=
read_config
(
path
)
rc
=
read_config
(
path
)
url
=
rc
.
get
(
"env"
,
"click_url"
)
url
=
rc
.
get
(
"env"
,
"click_url"
)
print
(
url
)
print
(
url
)
print
(
base_path
)
click_url
=
'http://uri6.com/tkio/Er6BFna'
click_url
=
'http://uri6.com/tkio/Er6BFna'
...
...
This diff is collapsed.
Click to expand it.
testcase/android_events/test_custom.py
View file @
a7ba3814
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
@time: 2020/8/21 15:38
@time: 2020/8/21 15:38
@desc:
@desc:
"""
"""
import
unittest
import
unittest
import
json
import
json
import
requests
import
requests
...
...
This diff is collapsed.
Click to expand it.
testcase/android_events/test_gettime.py
View file @
a7ba3814
...
@@ -6,18 +6,14 @@
...
@@ -6,18 +6,14 @@
@desc:
@desc:
"""
"""
import
requests
import
requests
import
json
import
unittest
import
unittest
from
config.envcfg
import
prod_event_url
,
event_interface
,
headers
from
config.prod.params
import
params_install
class
gettimeTestCase
(
unittest
.
TestCase
):
class
gettimeTestCase
(
unittest
.
TestCase
):
def
gettime
(
self
):
def
test
gettime
(
self
):
r
=
requests
.
get
(
'http://log.trackingio.com/receive/gettime'
)
r
=
requests
.
get
(
'http://log.trackingio.com/receive/gettime'
)
print
(
r
.
status_code
)
print
(
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_install.py
View file @
a7ba3814
...
@@ -10,6 +10,11 @@ import json
...
@@ -10,6 +10,11 @@ import json
import
unittest
import
unittest
from
config.envcfg
import
prod_event_url
,
event_interface
,
headers
from
config.envcfg
import
prod_event_url
,
event_interface
,
headers
from
config.prod.params
import
params_install
from
config.prod.params
import
params_install
import
sys
import
os
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
sys
.
path
.
append
(
rootPath
)
class
installTestCase
(
unittest
.
TestCase
):
class
installTestCase
(
unittest
.
TestCase
):
...
...
This diff is collapsed.
Click to expand it.
testcase/run_all_cases.py
View file @
a7ba3814
...
@@ -7,8 +7,11 @@
...
@@ -7,8 +7,11 @@
"""
"""
import
unittest
import
unittest
import
os
import
os
,
sys
curPath
=
os
.
path
.
abspath
(
os
.
path
.
dirname
(
__file__
))
rootPath
=
os
.
path
.
split
(
curPath
)[
0
]
sys
.
path
.
append
(
rootPath
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
base_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
base_path
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__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