16 changed files with 1323 additions and 713 deletions
Unified View
Diff Options
-
190-Login/Login-interface.robot
-
80-Login/LoginResource.robot
-
20-Login/phone-test.txt
-
41-Applet/1-WriteInfo/InfoResource.robot
-
161-Applet/2-Homepage/Blind/Blind.robot
-
101-Applet/2-Homepage/Blind/BlindDate.robot
-
21-Applet/2-Homepage/Blind/__init__.robot
-
101-Applet/2-Homepage/BlindDate/Blind.robot
-
731-Applet/2-Homepage/BlindDate/BlindResource.robot
-
21-Applet/2-Homepage/BlindDate/__init__.robot
-
41-Applet/2-Homepage/MarriageInfo/Authentication.robot
-
141-Applet/Logout/LogoutResource.robot
-
71-Applet/Logout/logout.robot
-
10output/log.html
-
1845output/output.xml
-
10output/report.html
@ -1,2 +1,2 @@ |
|||||
手机号 |
手机号 |
||||
13977594623 |
|
||||
|
19128859944 |
||||
@ -1,16 +0,0 @@ |
|||||
*** Settings *** |
|
||||
Library urllib3 |
|
||||
Library String |
|
||||
Library Collections |
|
||||
Library RequestsLibrary |
|
||||
|
|
||||
*** Keywords *** |
|
||||
游客登录${dating}平台 |
|
||||
#游客登录婚介平台 |
|
||||
Disable Warnings |
|
||||
Create Session dating ${${dating}.dating域名} ${${dating}.CHeader} |
|
||||
${reps} GET On Session dating /dating-agency-service/user/get/marriage-information/tourist-recommend |
|
||||
${message} Get From Dictionary ${reps.json()} message |
|
||||
Should Be Equal As Strings ${message} successful |
|
||||
|
|
||||
征婚人登录${dating}平台后查看相亲推荐页面 |
|
||||
@ -1,10 +0,0 @@ |
|||||
*** Settings *** |
|
||||
Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml |
|
||||
Resource Blind.robot |
|
||||
|
|
||||
*** Test Cases *** |
|
||||
游客使用婚介平台 |
|
||||
#游客打开婚介平台 |
|
||||
Given 游客登录婚介平台 |
|
||||
|
|
||||
征婚人使用婚介平台-相亲页面 |
|
||||
@ -1,2 +0,0 @@ |
|||||
*** Settings *** |
|
||||
Documentation 相亲主页 |
|
||||
@ -0,0 +1,10 @@ |
|||||
|
*** Settings *** |
||||
|
Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml |
||||
|
Resource BlindResource.robot |
||||
|
|
||||
|
*** Test Cases *** |
||||
|
用户查看相亲推荐页 |
||||
|
#相亲推荐页 |
||||
|
Given 查询婚介征婚人的资料信息 |
||||
|
When 查询婚介征婚人资料 |
||||
|
And 查看婚介平台相亲列表 |
||||
@ -0,0 +1,73 @@ |
|||||
|
*** Settings *** |
||||
|
Library urllib3 |
||||
|
Library Collections |
||||
|
Library RequestsLibrary |
||||
|
|
||||
|
*** Keywords *** |
||||
|
查询${dating}征婚人的资料信息 |
||||
|
#通过userid获取征婚人的资料 |
||||
|
FOR ${userId} ${client_header} IN ZIP ${userid_list} ${Cheader_list} |
||||
|
Create Session dating ${${dating}.dating域名} ${client_header} |
||||
|
${reps} GET On Session dating /dating-agency-service/user/get/marriage/information/details params=userId=${userId} |
||||
|
${miId} Get From Dictionary ${reps.json()['data']} id #获取资料id |
||||
|
${nickName} Get From Dictionary ${reps.json()['data']} nickName #获取用户名称 |
||||
|
${miId_list} Create List |
||||
|
${genderCode} Get From Dictionary ${reps.json()['data']} genderCode #用户性别 |
||||
|
${message} Get From Dictionary ${reps.json()} message |
||||
|
Append To List ${miId_list} ${miId} |
||||
|
Should Be Equal As Strings ${message} successful |
||||
|
END |
||||
|
Set Global Variable ${nickName} |
||||
|
Set Global Variable ${miId_list} |
||||
|
Set Global Variable ${genderCode} |
||||
|
|
||||
|
查询${dating}征婚人资料 |
||||
|
#通过miId查询征婚人资料 |
||||
|
FOR ${miId} ${client_header} IN ZIP ${miId_list} ${Cheader_list} |
||||
|
Create Session dating ${${dating}.dating域名} ${client_header} |
||||
|
${reps} GET On Session dating dating-agency-service/user/get/marriage/information/details/byid params=miId=${miId} |
||||
|
${age} Get From Dictionary ${reps.json()['data']} age #年龄 |
||||
|
${height} Get From Dictionary ${reps.json()['data']} height #获取征婚人身高 |
||||
|
${cityCode} Get From Dictionary ${reps.json()['data']} cityCode #现居城市 |
||||
|
${birthYear} Get From Dictionary ${reps.json()['data']} birthYear #出生年份 |
||||
|
${genderCode} Get From Dictionary ${reps.json()['data']} genderCode #性别 |
||||
|
END |
||||
|
Set Global Variable ${age} |
||||
|
Set Global Variable ${height} |
||||
|
Set Global Variable ${cityCode} |
||||
|
Set Global Variable ${birthYear} |
||||
|
Set Global Variable ${genderCode} |
||||
|
|
||||
|
查看${dating}平台相亲列表 |
||||
|
#相亲推荐页 |
||||
|
${ageRange} Evaluate list(range(${age}-9,${age}+10,1)) #年龄范围 |
||||
|
${heightRange} Evaluate list(range(${height}-20,${height}+15,1)) #身高范围 |
||||
|
FOR ${client_header} IN @{Cheader_list} |
||||
|
Create Session dating ${${dating}.dating域名} ${client_header} |
||||
|
${reps} GET On Session dating dating-agency-service/user/get/marriage/recommendation/page params=queryType=0&pageNum=1&pageSize=30 |
||||
|
${records} Get From Dictionary ${reps.json()['data']} records #推荐列表 |
||||
|
Set Global Variable ${records} |
||||
|
遍历推荐列表 |
||||
|
END |
||||
|
#判断年龄是否在范围内 |
||||
|
FOR ${a} IN @{age_list} |
||||
|
Run Keyword If ${a} in ${ageRange} log ${a}存在于${ageRange}中 |
||||
|
... ELSE log ${a}不存在于${ageRange}中 |
||||
|
END |
||||
|
#判断身高是否在范围内 |
||||
|
FOR ${h} IN @{height_list} |
||||
|
Run Keyword If ${h} in ${heightRange} log ${h}存在于${heightRange}中 |
||||
|
... ELSE log ${h}不存在于${heightRange}中 |
||||
|
END |
||||
|
|
||||
|
遍历推荐列表 |
||||
|
${age_list} Create List |
||||
|
${height_list} Create List |
||||
|
FOR ${data} IN @{records} |
||||
|
${age} Get From Dictionary ${data} age |
||||
|
${height} Get From Dictionary ${data} height |
||||
|
Append To List ${age_list} ${age} |
||||
|
Append To List ${height_list} ${height} |
||||
|
END |
||||
|
Set Global Variable ${age_list} |
||||
|
Set Global Variable ${height_list} |
||||
@ -0,0 +1,2 @@ |
|||||
|
*** Settings *** |
||||
|
Documentation 相亲页面 |
||||
@ -0,0 +1,14 @@ |
|||||
|
*** Settings *** |
||||
|
Library urllib3 |
||||
|
Library Collections |
||||
|
Library RequestsLibrary |
||||
|
|
||||
|
*** Keywords *** |
||||
|
用户退出登录${dating}平台 |
||||
|
#退出登录 |
||||
|
FOR ${client_header} IN @{Cheader_list} |
||||
|
Create Session dating ${${dating}.dating域名} ${client_header} |
||||
|
${reps} POST On Session dating dating-agency-uec/user/logout json={} |
||||
|
${message} Get From Dictionary ${reps.json()} message |
||||
|
Should Be Equal As Strings ${message} successful |
||||
|
END |
||||
@ -0,0 +1,7 @@ |
|||||
|
*** Settings *** |
||||
|
Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml |
||||
|
Resource LogoutResource.robot |
||||
|
|
||||
|
*** Test Cases *** |
||||
|
用户退出登录 |
||||
|
Given 用户退出登录婚介平台 |
||||
10
output/log.html
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
1845
output/output.xml
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
Write
Preview
Loading…
Cancel
Save