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
3381cabf
Commit
3381cabf
authored
Aug 19, 2020
by
zhaihuitao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add install enevt
parent
baf374f4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
4 deletions
+48
-4
workspace.xml
.idea/workspace.xml
+0
-0
params.py
config/prod/params.py
+46
-2
test_click.py
testcase/android_click/test_click.py
+2
-2
No files found.
.idea/workspace.xml
View file @
3381cabf
This diff is collapsed.
Click to expand it.
config/prod/params.py
View file @
3381cabf
...
...
@@ -10,6 +10,50 @@ import time
from
config.envcfg
import
prod
from
common
import
randomUtil
params_click
=
{
'androidid'
:
"43214532142142"
,
'imei'
:
"881554685049"
,
# "idfa": 'DBC43622-E38B-440C-B7A7-FB6641D0D9AB',
'ip'
:
randomUtil
.
r
.
randip
(),
#"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',
# 'requestId':'312321321312',
#'adId': long('21231'),
# 'ry_adgroup_name': ry_adgroup_name,
# 'ry_adplan_name': ry_adplan_name,
# 'ry_adcreative_name': ry_adcreative_name,
# "ry_adgroup_id": ry_adgroup_id,
# "ry_adplan_id": ry_adplan_id,
# "ry_adcreative_id": ry_adcreative_id,
# 'imei2': 'null',
# 'meid': i
# 'bd_vid': i
# 'oaid': "234B9U1T-A274-ED22-CEBF-4B6DDDFC18A9",
# 'muid': "4CF21FBB2FA6CA3D914476954ABBFEBF182BB0BD",
# 'mac': "12321321321321321",
# 'subchannel': '3123123',
# 'aid': '111',
# 'siteid': '222',
# 'csite': '333',
# "timestamp": "1569141628027",
# "creative": "31096865315",
"deviceid"
:
"881554685049"
,
# "tz": "+8",
# "wx_campaign_id":ry_adgroup_id,
# 'wx_adgroup_id':ry_adplan_id,
# 'ry_adcreative_id':ry_adcreative_id
# "ry_channel_fake": "false",
# "ry_ts": "1569141628025",
# "type": '1222',
# "ctype": '4232323',
# "campaign_id": '123',
# "adgroup_id": '123',
# "creative_id": '123'
}
params_install
=
{
"what"
:
'install'
,
"appid"
:
prod
[
'events'
][
'appkey'
],
...
...
@@ -20,8 +64,8 @@ params_install = {
"_model"
:
"test1"
,
"_pkgname"
:
"com.yanjing.yami"
,
"_campaignid"
:
'default'
,
"_deviceid"
:
randomUtil
.
r
.
randimei
()
,
"_imei"
:
randomUtil
.
r
.
randimei
()
,
"_deviceid"
:
"881554685049"
,
"_imei"
:
"881554685049"
,
# "_idfa": 'DBC13622-E34B-440C-B7A7-FB6641D0D9AB',
# "_androidid": "43214532142142",
# "_imei2":"324323AAAA",
...
...
testcase/android_click/test_click.py
View file @
3381cabf
...
...
@@ -9,7 +9,7 @@
import
unittest
from
config.envcfg
import
prod
from
common
import
randomUtil
from
config.
envcfg
import
prod_params
from
config.
prod.params
import
params_click
import
requests
import
os
import
sys
...
...
@@ -21,7 +21,7 @@ sys.path.append(base_path)
class
clickTestCase
(
unittest
.
TestCase
):
def
click
(
self
):
try
:
p
=
requests
.
get
(
url
=
prod
[
'click'
][
'url'
],
params
=
p
rod_params
,
timeout
=
30
,
verify
=
False
)
p
=
requests
.
get
(
url
=
prod
[
'click'
][
'url'
],
params
=
p
arams_click
,
timeout
=
30
,
verify
=
False
)
# self.assertEqual(p.status_code, 200, msg='接口异常,请检查')
print
(
prod
[
'click'
][
'url'
])
print
(
'执行结果:
\n
================='
)
...
...
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