Commit 0d07f2e1 authored by 蒲肖建's avatar 蒲肖建

区域广告、公司广告脚本实现提交2021/5/19

parent 00d27086
......@@ -27,7 +27,7 @@ accounts = {
# 极运营默认账号
"jyy_account": {
"account": "15208176554",
"password": "88888888"
"password": "xj15208176554"
},
# 极运营app默认账号
"jyy_app_account": {
......
......@@ -22,3 +22,44 @@ status = [
"status": "DISABLED"
}
]
title = [
{
"title": "新增"
},
{
"title": "广告"
}
]
titleexcpet = [
{
"title": " "
},
{
"title": "输入不是banner中包含的字"
},
{
"title": "@#$^&"
}
]
pageNum = [
{
"pageNum": 1
},
{
"pageNum": 2
},
{
"pageNum": 3
}
]
pageSize = [
{
"pageSize": 10
},
{
"pageSize": 20
},
{
"pageSize": 50
}
]
areas = [
{
"area_data": [3364]
},
{
"area_data": [3103, 3159, 3364, 3016, 3017, 3018]
}
]
platform = [
{
"platform_type": "APP",
},
{
"platform_type": "APPLET",
}
]
status = [
{
"status": "ENABLED"
},
{
"status": "DISABLED"
}
]
title = [
{
"title": "新增"
},
{
"title": "广告"
}
]
titleexcpet = [
{
"title": "输入不是banner中包含的字"
},
{
"title": "@#$^&"
}
]
pageNum = [
{
"pageNum": 1
},
{
"pageNum": 2
},
{
"pageNum": 3
}
]
pageSize = [
{
"pageSize": 10
},
{
"pageSize": 20
},
{
"pageSize": 50
}
]
This diff is collapsed.
......@@ -72,3 +72,20 @@ def assert_res_field_in_list(data_list: list, value_list: list):
else:
flag = False
return flag
# @allure.step("断言两个数组是否有交集")
def assert_two_list_is_intersection(res_list: list, search_list: list):
if res_list:
err_values = set(res_list).intersection(set(search_list))
if err_values:
flag = True
else:
flag = False
else:
flag = False
return flag
print(assert_two_list_is_intersection([1, 2, 3], [6, 4, 5]))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment