7 changed files with 111 additions and 16 deletions
Split View
Diff Options
-
60-Login/Login-interface.robot
-
400-Login/LoginResource.robot
-
182-Homepage/MarriageInfo/Authentication.robot
-
42-Homepage/MarriageInfo/Selection.robot
-
9Web/InfoAudit/AuditInfomation.robot
-
48Web/InfoAudit/Infomation.robot
-
2Web/InfoAudit/__init__.robot
@ -0,0 +1,9 @@ |
|||
*** Settings *** |
|||
Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml |
|||
Resource Infomation.robot |
|||
|
|||
*** Test Cases *** |
|||
审核征婚人提交的资料-相册 |
|||
Given 查询婚介平台用户资料数据 |
|||
When 查询婚介平台审核资料-相册审核通过 |
|||
Then 查询数据库审核表数据 |
|||
@ -0,0 +1,48 @@ |
|||
*** Settings *** |
|||
Library urllib3 |
|||
Library String |
|||
Library Collections |
|||
Library RequestsLibrary |
|||
Library DatabaseLibrary |
|||
|
|||
*** Keywords *** |
|||
查询${dating}平台用户资料数据 |
|||
#查询相册审核数据 |
|||
FOR ${admin_header} IN @{Aheader_list} |
|||
Create Session dating ${${dating}.dating域名} ${admin_header} |
|||
${reps} GET On Session dating dating-agency-service/user/get/marriage/information/audit/page params=pageSize=10&name=${nickName}&pageNum=1 |
|||
${records} Get From Dictionary ${reps.json()['data']} records #获取资料审核列表 |
|||
END |
|||
FOR ${info} IN @{records} |
|||
${InfoId} Get From Dictionary ${info} id #获取资料审核id |
|||
Exit For Loop If ${InfoId}==${auditId} |
|||
END |
|||
Set Global Variable ${InfoId} |
|||
|
|||
查询${dating}平台审核资料-相册审核通过 |
|||
FOR ${admin_header} IN @{Aheader_list} |
|||
Create Session dating ${${dating}.dating域名} ${admin_header} |
|||
${data} Set Variable {"id":"${InfoId}","status":1} |
|||
${reps} POST On Session dating dating-agency-service/user/exe/certification/audit ${data.encode('utf-8')} |
|||
${data} Get From Dictionary ${reps.json()} data |
|||
${message} Get From Dictionary ${reps.json()} message |
|||
Should Be Equal As Strings ${message} successful |
|||
Set Global Variable ${data} |
|||
END |
|||
|
|||
查询${dating}平台审核资料-相册审核不通过 |
|||
FOR ${admin_header} IN @{Aheader_list} |
|||
Create Session dating ${${dating}.dating域名} ${admin_header} |
|||
${data} Set Variable {"id":"${InfoId}","status":0} |
|||
${reps} POST On Session dating dating-agency-service/user/exe/certification/audit ${data.encode('utf-8')} |
|||
${data} Get From Dictionary ${reps.json()} data |
|||
${message} Get From Dictionary ${reps.json()} message |
|||
Should Be Equal As Strings ${message} successful |
|||
Set Global Variable ${data} |
|||
END |
|||
|
|||
查询数据库审核表数据 |
|||
Connect To Database Using Custom Params pymysql database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221' |
|||
${check} Query SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${data}' |
|||
${status} Set Variable ${check[0][0]} |
|||
Should Be Equal As Numbers ${status} 1 |
|||
@ -0,0 +1,2 @@ |
|||
*** Settings *** |
|||
Documentation 资料审核 |
|||
Write
Preview
Loading…
Cancel
Save