You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.9 KiB
42 lines
1.9 KiB
*** Settings ***
|
|
Library urllib3
|
|
Library String
|
|
Library DateTime
|
|
Library Collections
|
|
Library RequestsLibrary
|
|
Library DatabaseLibrary
|
|
|
|
*** Keywords ***
|
|
查询${dating}用户资料
|
|
${miId_list} Create List
|
|
FOR ${userId} ${client_header} IN ZIP ${userid_list} ${Cheader_list}
|
|
Disable Warnings
|
|
Create Session dating ${${dating}.dating域名} ${client_header}
|
|
${reps} GET On Session dating /dating-agency-service/user/get/first/fill/marriage/information/details params=userId=${userId}
|
|
${miId} Get From Dictionary ${reps.json()['data']} id #资料id
|
|
Append To List ${miId_list} ${miId}
|
|
Set Global Variable ${userId}
|
|
Set Global Variable ${miId_list}
|
|
END
|
|
|
|
用户查询${dating}活动列表
|
|
FOR ${client-header} IN @{Cheader_list}
|
|
Create Session dating ${${dating}.dating域名} ${client-header}
|
|
${reps} GET On Session dating dating-agency-service/user/get/site/activity/page params=queryType=0&pageNum=1&pageSize=10&status=
|
|
${records} Get From Dictionary ${reps.json()['data']} records #近期活动列表
|
|
Set Global Variable ${records}
|
|
遍历活动列表
|
|
END
|
|
|
|
遍历活动列表
|
|
FOR ${records} IN ${records}
|
|
${status} Get From Dictionary ${records} status #活动状态
|
|
${AvtivityId} Get From Dictionary ${records} id #活动id
|
|
Exit For Loop If ${status}==1 #活动状态,1报名中,2待开始,3进行中,4已取消,5已结束
|
|
Set Global Variable ${AvtivityId}
|
|
END
|
|
|
|
用户报名${datign}活动
|
|
#用户报名活动
|
|
FOR ${client_header} IN @{Cheader_list}
|
|
Create Session dating ${${dating}.dating域名} ${client_header}
|