diff --git a/0-Login/LoginResource.robot b/0-Login/LoginResource.robot index 2eafc67..dd600c5 100644 --- a/0-Login/LoginResource.robot +++ b/0-Login/LoginResource.robot @@ -126,7 +126,7 @@ Library ImageHorizonLibrary ${login_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT ${token}','X-Organization-Id':'963432943739605555'} #更新header log ${login_header} #${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':'QNT ${token}'} #招亲宝小程序 + ${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'${token}'} #招亲宝小程序 Append To List ${userid_list} ${userId} Append To List ${Cheader_list} ${client_header} Append To List ${Aheader_list} ${login_header} diff --git a/2-Web/OperationCenter/Operation.robot b/2-Web/OperationCenter/Operation.robot index 5613793..6f92113 100644 --- a/2-Web/OperationCenter/Operation.robot +++ b/2-Web/OperationCenter/Operation.robot @@ -9,3 +9,4 @@ Resource OperationResources.robot 邀请绑定代理人 Given 扫描婚介邀请绑定代理人二维码 + Then 用户绑定婚介运营中心 diff --git a/2-Web/OperationCenter/OperationResources.robot b/2-Web/OperationCenter/OperationResources.robot index 4ebf23a..3ad9727 100644 --- a/2-Web/OperationCenter/OperationResources.robot +++ b/2-Web/OperationCenter/OperationResources.robot @@ -12,9 +12,9 @@ Library DatabaseLibrary FOR ${admin_header} IN @{Aheader_list} ${DateTime} Get Current Date result_format=%Y-%m-%d #获取当天日期 Create Session dating ${${dating}.dating域名} ${admin_header} - ${orgName} Set Variable 婚恋一级代理商${DateTime} + ${orgName} Set Variable 招亲宝${DateTime} ${franchiseFee} Evaluate random.randrange(50000,100000,1000) random #获取随机正整数 - ${administratorName} Set Variable 代理商${DateTime} + ${administratorName} Set Variable 招亲${DateTime} ${data} Set Variable {"orgName":"${orgName}","administratorName":"${administratorName}","franchiseFee":${franchiseFee}} ${reps} POST On Session dating dating-agency-uec/user/create/operation-center ${data.encode('utf-8')} ${message} Get From Dictionary ${reps.json()} message #接口响应信息 @@ -50,6 +50,18 @@ Library DatabaseLibrary #扫描邀请绑定代理人二维码 FOR ${client_header} IN @{Cheader_list} Create Session dating ${${dating}.dating域名} ${client_header} - ${reps} GET On Session dating dating-agency-uec/user/verify/qrcode params=&qrCodeRecordId=1023330401797672960 + ${reps} GET On Session dating dating-agency-uec/user/verify/qrcode params=mark=50325897884795883&qrCodeRecordId=1023654201504436224 ${code} Get From Dictionary ${reps.json()} code + ${orgId} Get From Dictionary ${reps.json()['data']['metaData']} orgId #运营中心组织id + END + Set Global Variable ${orgId} + +用户绑定${dating}运营中心 + #用户绑定运营中心 + FOR ${client_header} IN @{Cheader_list} + Create Session dating ${${dating}.dating域名} ${client_header} + ${data} Set Variable {"orgId":${orgId}} + ${reps} POST On Session dating dating-agency-uec/user/bind/operation-center ${data.encode('utf-8')} + ${message} Get From Dictionary ${reps.json()} message + Should Be Equal As Strings ${message} successful END diff --git a/output/log.html b/output/log.html index dc60c2a..d0713d6 100644 --- a/output/log.html +++ b/output/log.html @@ -1806,25 +1806,25 @@ function stopPropagation(event) { window.output = {};