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
99883b3b
Commit
99883b3b
authored
Oct 20, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
3157e296
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
workspace.xml
.idea/workspace.xml
+0
-0
test_install.py
testcase/android_events/test_install.py
+1
-1
test_payment.py
testcase/android_events/test_payment.py
+2
-2
test_startup.py
testcase/android_events/test_startup.py
+1
-1
No files found.
.idea/workspace.xml
View file @
99883b3b
This diff is collapsed.
Click to expand it.
testcase/android_events/test_install.py
View file @
99883b3b
...
@@ -16,7 +16,7 @@ class installTestCase(unittest.TestCase):
...
@@ -16,7 +16,7 @@ class installTestCase(unittest.TestCase):
def
testinstall
(
self
):
def
testinstall
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"install"
],
data
=
json
.
dumps
(
params_install
),
headers
=
headers
)
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"install"
],
data
=
json
.
dumps
(
params_install
),
headers
=
headers
)
print
(
"
\n
激活事件执行结果:"
+
r
.
text
)
print
(
"
\n
激活事件执行结果:"
+
r
.
text
)
print
(
r
.
url
)
#
print(r.url)
# self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
# self.assertEqual(r.status_code, 200, msg="执行失败,请检查")
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
testcase/android_events/test_payment.py
View file @
99883b3b
...
@@ -17,8 +17,8 @@ class payTestCase(unittest.TestCase):
...
@@ -17,8 +17,8 @@ class payTestCase(unittest.TestCase):
def
testpayment
(
self
):
def
testpayment
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"payment"
],
data
=
json
.
dumps
(
params_pay
),
headers
=
headers
,
timeout
=
5
)
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"payment"
],
data
=
json
.
dumps
(
params_pay
),
headers
=
headers
,
timeout
=
5
)
print
(
"付费"
+
r
.
text
)
print
(
"付费"
+
r
.
text
)
print
(
json
.
dumps
(
params_pay
))
#
print(json.dumps(params_pay))
print
(
r
)
#
print(r)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
main
()
unittest
.
main
()
testcase/android_events/test_startup.py
View file @
99883b3b
...
@@ -16,7 +16,7 @@ from config.prod.params import params_startup
...
@@ -16,7 +16,7 @@ from config.prod.params import params_startup
class
startupTestCase
(
unittest
.
TestCase
):
class
startupTestCase
(
unittest
.
TestCase
):
def
teststartup
(
self
):
def
teststartup
(
self
):
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"startup"
],
data
=
json
.
dumps
(
params_startup
),
headers
=
headers
,
timeout
=
10
)
r
=
requests
.
post
(
url
=
prod_event_url
+
event_interface
[
"startup"
],
data
=
json
.
dumps
(
params_startup
),
headers
=
headers
,
timeout
=
10
)
print
(
r
.
text
+
"
\n
"
+
r
.
url
)
print
(
'启动'
+
r
.
text
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
unittest
.
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