12 changed files with 290 additions and 562 deletions
Unified View
Diff Options
-
70-Login/LoginResource.robot
-
20-Login/phone-test.txt
-
61-Applet/5-SeekingReward/SeekingReward.robot
-
321-Applet/5-SeekingReward/SeekingRewardResource.robot
-
421-Applet/6-Activity/ActivityResource.robot
-
41-Applet/6-Activity/Avtivity.robot
-
6DA_data.yaml
-
1Phone.txt
-
12output/log.html
-
728output/output.xml
-
10output/report.html
-
2phoneTest.txt
@ -1,2 +1,2 @@ |
|||||
手机号 |
手机号 |
||||
15134891062 |
|
||||
|
13473579062 |
||||
@ -0,0 +1,42 @@ |
|||||
|
*** 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} |
||||
@ -0,0 +1,4 @@ |
|||||
|
*** Settings *** |
||||
|
Resource ActivityResource.robot |
||||
|
|
||||
|
*** Test Cases *** |
||||
12
output/log.html
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
728
output/output.xml
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,2 @@ |
|||||
|
13247780613 |
||||
|
13710986989 |
||||
Write
Preview
Loading…
Cancel
Save