Run Keyword If ${code}==0 Should Be Equal As Strings ${message} successful
... ELSE Should Be Equal As Strings ${message} 验证码错误或无效验证码,请重试!
END
Set Global Variable ${token}
Set Global Variable ${phoneList}
Set Global Variable ${userid_list}
Set Global Variable ${Aheader_list}
@ -202,14 +203,20 @@ Library ImageHorizonLibrary
遍历用户组织信息
#遍历用户组织信息
${Cheader_list} Create List
FOR ${orgdata} IN @{data}
${orgdata} Evaluate random.choice(${data}) random #随机获取用户组织信息
#${orgdata} Evaluate random.choice(${data}) random #随机获取用户组织信息
${orgId} Get From Dictionary ${orgdata} orgId #组织id
${fullName} Get From Dictionary ${orgdata} fullName #组织name
#${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'} #趣招亲小程序
${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'${token}','X-ORGANIZATION-ID':'${orgId}'} #招亲宝小程序
${orgName} Get From Dictionary ${orgdata} fullName #组织name
Exit For Loop If ${orgId}==1023568243073355776
END
#${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'} #趣招亲小程序
${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'${token}','X-ORGANIZATION-ID':'${orgId}'} #招亲宝小程序
Create Session dating ${${dating}.dating域名} ${client_header}
Create Session dating ${${dating}.dating域名} ${client_header}
${reps} Get From Dictionary dating dating-agency-uec/user/get/org/list
${data} Get From Dictionary ${reps.json()} data #用户组织数组
${orgData} Evaluate random.choice(${data}) random #随机获取用户组织信息
${orgId} Get From Dictionary ${orgData} id #组织id
${orgName} Get From Dictionary ${orgData} fullName #组织name
${message} Get From Dictionary ${reps.json()} message
Should Be Equal As Strings ${message} successful
END
Set Global Variable ${orgId}
Set Global Variable ${orgName}
填写${dating}店铺申请信息
#填写店铺申请信息
${orgId} Set Variable 1023317811931516928
${orgId} Convert To String ${orgId}
FOR ${client_header} ${phone} IN ZIP ${Cheader_list} ${phoneList}
region固定省市-广州
Create Session dating ${${dating}.dating域名} ${client_header}
${DateTime} Get Current Date result_format=%Y-%m-%d #获取当天日期
${data} Set Variable {"operationCenterOrgId":"${orgId}","managerName":"测试${DateTime}","phone":"${phone}","captcha":"888888","serviceAreaList":[{"provinceCode":${provinceCode},"provinceName":"${provinceName}","cityCode":${cityCode},"cityName":"${cityName}","districtCode":${districtCode},"districtName":"${districtName}"}],"storeName":"测试门店${DateTime}"}
${reps} POST On Session dating dating-agency-uec/user/apply/store-audit ${data.encode('utf-8')}
${storeAuditId} Get From Dictionary ${reps.json()} data #门店id
${message} Get From Dictionary ${reps.json()} message #响应体信息
Run Keyword If ${storeAuditId}==None log ${message}
... ELSE Should Be Equal As Strings ${message} successful
END
Set Global Variable ${storeAuditId}
查询${dating}门店管理审核列表
#代理商门店管理审核列表
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
${reps} GET On Session dating dating-agency-uec/user/page/store-audit/by/operation-center params=pageNum=1&pageSize=10
${records} Get From Dictionary ${reps.json()['data']} records #门店待审核列表
Set Global Variable ${records}
遍历门店待审核列表
${message} Get From Dictionary ${reps.json()} message
Should Be Equal As Strings ${message} successful #断言是否相等
END
遍历门店待审核列表
FOR ${storeData} IN @{records}
${SAuditId} Get From Dictionary ${storeData} id #门店审核列表id
${storeName} Get From Dictionary ${storeData} storeName #门店name
${operationId} Get From Dictionary ${storeData} operationCenterId #代理商id
${operationOrgId} Get From Dictionary ${storeData} operationCenterOrgId #代理商orgid
Exit For Loop If ${SAuditId}==${storeAuditId}
END
Set Global Variable ${SAuditId}
Set Global Variable ${storeName}
Set Global Variable ${operationId}
Set Global Variable ${operationOrgId}
region固定省市-广州
Disable Warnings
@ -59,3 +111,10 @@ region固定省市-广州
Set Global Variable ${districtName}
Set Global Variable ${provinceCode}
Set Global Variable ${provinceName}
代理商审核${dating}门店
#审核门店信息
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
${status} Evaluate random.choice(1,2,3) random #审核状态
${data} Set Variable {"id":"${SAuditId}","status":${status}}
window.output["strings"] = window.output["strings"].concat(["*","*Dating-agency","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency","*..","*0-Login","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login","*../0-Login","*<p>用户登录婚介平台\x3c/p>","*Login-interface","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\Login-interface.robot","*../0-Login/Login-interface.robot","*<p>接口:短信验证码登录认证\x3c/p>","*手机号验证码登录-888888","*3-Operation","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\3-Operation","*../3-Operation","*Applet","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\3-Operation\\Applet","*../3-Operation/Applet","*Home","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\3-Operation\\Applet\\Home","*../3-Operation/Applet/Home","*<p>分销代理\x3c/p>","*Operation","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\3-Operation\\Applet\\Home\\Operation.robot","*../3-Operation/Applet/Home/Operation.robot","*用户填写门店申请信息","*Variable '${SAuditId}' not found. Did you mean:\n ${storeAuditId}\n\nAlso teardown failed:\nAssertionError"]);