|
|
|
@ -234,6 +234,63 @@ Library ImageHorizonLibrary |
|
|
|
Set Global Variable ${phone} |
|
|
|
Set Global Variable ${matchmakerFlag} |
|
|
|
|
|
|
|
查询${dating}红娘申请列表 |
|
|
|
FOR ${client_header} IN @{Cheader_list} |
|
|
|
Create Session dating ${${dating}.dating域名} ${client_header} |
|
|
|
${reps} GET On Session dating dating-agency-uec/user/get/matchmaker-apply/by/customer |
|
|
|
${data} Get From Dictionary ${reps.json()} data |
|
|
|
Run Keyword If ${data}!=None ${status} get from Dictionary ${data} status |
|
|
|
... ELSE 填写婚介红娘加盟信息 |
|
|
|
Run Keyword If ${status}==4 填写婚介红娘加盟信息 |
|
|
|
... ELSE IF ${status}==1 数据库修改申请状态为待审核 |
|
|
|
... ELSE IF ${status}==3 查询${dating}平台红娘数据 |
|
|
|
... ELSE 运营人员操作${dating}后台审核通过 |
|
|
|
END |
|
|
|
|
|
|
|
填写${dating}红娘加盟信息 |
|
|
|
FOR ${client_header} IN @{Cheader_list} |
|
|
|
Create Session dating ${${dating}.dating域名} ${client_header} |
|
|
|
${data} Set Variable { \ \ \ \ "name": "就是不吃饭", \ \ \ \ "identityCard": "441481199509213863", \ \ \ \ "phone": "${phone}", \ \ \ \ "captcha": "888888", \ \ \ \ "serviceAreaList": [ \ \ \ \ \ \ \ \ { \ \ \ \ \ \ \ \ \ \ \ \ "provinceCode": ${provinceCode}, \ \ \ \ \ \ \ \ \ \ \ \ "provinceName": "${provinceName}", \ \ \ \ \ \ \ \ \ \ \ \ "cityCode": ${cityCode}, \ \ \ \ \ \ \ \ \ \ \ \ "cityName": "${cityName}", \ \ \ \ \ \ \ \ \ \ \ \ "districtCode": ${districtCode}, \ \ \ \ \ \ \ \ \ \ \ \ "districtName": "${districtName}" \ \ \ \ \ \ \ \ }, \ \ \ \ ] } |
|
|
|
${reps} POST On Session dating dating-agency-uec/user/apply/matchmaker ${data.encode('utf-8')} |
|
|
|
${matchmakerId} Get From Dictionary ${reps.json()} data #红娘审核id |
|
|
|
Set Global Variable ${matchmakerId} |
|
|
|
END |
|
|
|
|
|
|
|
数据库修改申请状态为待审核 |
|
|
|
Connect To Database Using Custom Params pymysql database='dating_agency_uec',user='root',password='qniaothreetwoonego',host='8.135.8.221' |
|
|
|
${update} Execute Sql String UPDATE `dating_agency_uec`.`da_matchmaker_audit` SET `status` = 2 WHERE `id` = ${matchmakerId} #更新数据库红娘加盟状态为待审核 |
|
|
|
${check} Query SELECT id FROM `dating_agency_uec`.`da_matchmaker_audit` WHERE `id` = '${matchmakerId}' #查询数据库红娘加盟数据 |
|
|
|
${id} Set Variable ${check[0][0]} |
|
|
|
Should Be Equal As Strings ${id} ${matchmakerId} |
|
|
|
Disconnect From Database |
|
|
|
|
|
|
|
运营人员操作${dating}后台审核通过 |
|
|
|
FOR ${admin_header} IN @{Aheader_list} |
|
|
|
Create Session dating ${${dating}.dating域名} ${admin_header} |
|
|
|
${reps} GET On Session dating dating-agency-uec/user/page/matchmaker-audit params=pageSize=10&pageNum=1 |
|
|
|
${records} Get From Dictionary ${reps.json()['data']} records #红娘加盟审核列表 |
|
|
|
Set Global Variable ${records} |
|
|
|
遍历红娘加盟审核列表 |
|
|
|
Create Session dating ${${dating}.dating域名} ${admin_header} |
|
|
|
${data} Set Variable {"id":"${id}","status":3} |
|
|
|
${reps} POST On Session dating dating-agency-uec/user/audit/matchmaker-apply ${data.encode('utf-8')} |
|
|
|
${message} Get From Dictionary ${reps.json()} message |
|
|
|
Should Be Equal As Strings ${message} successful |
|
|
|
ERND |
|
|
|
|
|
|
|
遍历红娘加盟审核列表 |
|
|
|
FOR ${data} IN @{records} |
|
|
|
${id} Get From Dictionary ${data} id |
|
|
|
Exit For Loop If ${id}==${matchmakerId} |
|
|
|
Set Global Variable ${id} |
|
|
|
END |
|
|
|
|
|
|
|
查询${dating}平台红娘数据 |
|
|
|
FOR ${admin_header} IN @{Aheader_list} |
|
|
|
Create Session dating ${${dating}.dating域名} ${admin_header} |
|
|
|
${reps} GET On Session dating dating-agency-uec/user/page/matchmaker params=pageSize=10&pageNum=1 |
|
|
|
END |
|
|
|
|
|
|
|
注册${dating}红娘 |
|
|
|
#注册成为红娘 |
|
|
|
FOR ${client_header} IN @{Cheader_list} |
|
|
|
@ -286,3 +343,31 @@ FOR循环 |
|
|
|
FOR ${i} IN @{L1} |
|
|
|
${output} Set Variable {'item':${data}} |
|
|
|
END |
|
|
|
|
|
|
|
region固定省市-广州 |
|
|
|
Disable Warnings |
|
|
|
Create Session region http://qncloud.oss-cn-shenzhen.aliyuncs.com |
|
|
|
${reps} GET On Session region address.json |
|
|
|
${local_data} Get From Dictionary ${reps.json()} data |
|
|
|
FOR ${province} IN @{local_data} #省列表数据 |
|
|
|
${provinceCode} Get From Dictionary ${province} value #获取省编码 |
|
|
|
${provinceName} Get From Dictionary ${province} label #获取省名称 |
|
|
|
Exit For Loop If '${provinceName}'=='广东省' |
|
|
|
END |
|
|
|
${city_data} Get From Dictionary ${province} children #广东省市列表数据 |
|
|
|
FOR ${city} IN @{city_data} |
|
|
|
${cityCode} Get From Dictionary ${city} value #获取市编码 |
|
|
|
${cityName} Get From Dictionary ${city} label #获取市名称 |
|
|
|
Exit For Loop If '${cityName}'=='广州市' |
|
|
|
END |
|
|
|
${district_data} Get From Dictionary ${city} children #广州市列表数据 |
|
|
|
log ${district_data} |
|
|
|
${district} Evaluate random.choice(${district_data}) random |
|
|
|
${districtCode} Get From Dictionary ${district} value #随机获取广州市区编码 |
|
|
|
${districtName} Get From Dictionary ${district} label #随机获取广州市区名称 |
|
|
|
Set Global Variable ${cityCode} |
|
|
|
Set Global Variable ${cityName} |
|
|
|
Set Global Variable ${districtCode} |
|
|
|
Set Global Variable ${districtName} |
|
|
|
Set Global Variable ${provinceCode} |
|
|
|
Set Global Variable ${provinceName} |