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
b24aa8e0
Commit
b24aa8e0
authored
Aug 17, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install enevt
parent
e08dfdec
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
workspace.xml
.idea/workspace.xml
+0
-0
envcfg.py
config/envcfg.py
+3
-0
test_install.py
testcase/android_events/test_install.py
+2
-2
test_startup.py
testcase/android_events/test_startup.py
+3
-5
No files found.
.idea/workspace.xml
View file @
b24aa8e0
This diff is collapsed.
Click to expand it.
config/envcfg.py
View file @
b24aa8e0
...
...
@@ -24,6 +24,9 @@ prod = {
},
}
headers
=
{
'Content-Type'
:
'application/json'
}
prod_params
=
{
'androidid'
:
"43214532142142"
,
'imei'
:
randomUtil
.
r
.
randimei
(),
...
...
testcase/android_events/test_install.py
View file @
b24aa8e0
...
...
@@ -8,10 +8,10 @@
import
requests
import
json
import
unittest
from
config.envcfg
import
prod
from
config.envcfg
import
prod
,
headers
from
config.prod.params
import
params_install
headers
=
{
'Content-Type'
:
'application/json'
}
#
headers = {'Content-Type': 'application/json'}
class
installTestCase
(
unittest
.
TestCase
):
...
...
testcase/android_events/test_startup.py
View file @
b24aa8e0
...
...
@@ -12,8 +12,6 @@ import requests
from
config.envcfg
import
prod
print
(
prod
[
'events'
][
'url'
])
'''class startupTestCase(unittest.TestCase):
class
startupTestCase
(
unittest
.
TestCase
):
def
teststartup
(
self
):
r = requests.post(url=prod['events']['url'] + 'startup', data=s, headers=headers, timeout=10)'''
\ No newline at end of file
r
=
requests
.
post
(
url
=
prod
[
'events'
][
'url'
]
+
'startup'
,
data
=
s
,
headers
=
headers
,
timeout
=
10
)
\ 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