From 05603441d616e798325a0dcc6eab4b801d8188c1 Mon Sep 17 00:00:00 2001 From: LG_lai Date: Tue, 25 Jun 2024 13:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=98=89=E5=AE=BE=E5=92=8C=E7=BA=A2=E5=A8=98?= =?UTF-8?q?=E8=81=8A=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0-Login/phone-test.txt | 2 +- .../MarriageInfo/Authentication.robot | 2 +- 1-Applet/7-Chat/Chat.robot | 7 +- 1-Applet/7-Chat/ChatResource.robot | 19 + output/log.html | 10 +- output/output.xml | 1191 ++++++++++------- output/report.html | 10 +- 7 files changed, 780 insertions(+), 461 deletions(-) diff --git a/0-Login/phone-test.txt b/0-Login/phone-test.txt index 8237cb2..443de94 100644 --- a/0-Login/phone-test.txt +++ b/0-Login/phone-test.txt @@ -1,2 +1,2 @@ 手机号 -15187573906 \ No newline at end of file +19128859944 \ No newline at end of file diff --git a/1-Applet/2-Homepage/MarriageInfo/Authentication.robot b/1-Applet/2-Homepage/MarriageInfo/Authentication.robot index 0c2e06b..d2dfe02 100644 --- a/1-Applet/2-Homepage/MarriageInfo/Authentication.robot +++ b/1-Applet/2-Homepage/MarriageInfo/Authentication.robot @@ -96,7 +96,7 @@ Resource ../../../0-Login/LoginResource.robot #提交征婚人身份证审核 #${value_list} Create List 李博,429006198410300956 王颖勋,44058319951227041X 就是不吃饭,441481199509213863 王颖勋,4400 李子懿,429006201701270931 #女生身份证 - ${womanvalue_list} Set Variable ["赖勇兰,441481199509213863","赖敏怡,441521199410142320","刘景梅,371525198608012364","黄丽馨,441302199511296927","刘惠琼,441827198807146821"] + ${womanvalue_list} Set Variable ["赖勇兰,441481199509213863","赖敏怡,441521199410142320","刘景梅,371525198608012364","黄丽馨,441302199511296927","刘惠琼,441827198807146821","黄丽馨,441302199511296927"] #男生身份证 ${manvalue_list} Set Variable ["张山,522328199807132811","臧琨,654001198103171417","李博,429006198410300956","王颖勋,44058319951227041X","刘文波,430426198402075198","董帅,411425199011117552","江志诚,43042619970207049X","杨仁丰,440923199311122678","陈越,445122199210152055","刘虎跃,43042619891011515X","李雷刚,430426198502033497","邝绍荣,440105198310224217","全拥军,430426197806302591"] ${code} Evaluate 0 diff --git a/1-Applet/7-Chat/Chat.robot b/1-Applet/7-Chat/Chat.robot index aba57ff..2915029 100644 --- a/1-Applet/7-Chat/Chat.robot +++ b/1-Applet/7-Chat/Chat.robot @@ -3,7 +3,12 @@ Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml Resource ChatResource.robot *** Test Cases *** -用户发起聊天 +用户发起聊天-嘉宾 Given 查询婚介征婚人的资料信息 When 查询婚介消息列表 Then 查询婚介用户的聊天权益 + +用户发起聊天-红娘 + Given 查询婚介征婚人的资料信息 + When 查询婚介红娘列表 + Then 查询婚介用户的聊天权益 diff --git a/1-Applet/7-Chat/ChatResource.robot b/1-Applet/7-Chat/ChatResource.robot index 9f6c79c..edabf39 100644 --- a/1-Applet/7-Chat/ChatResource.robot +++ b/1-Applet/7-Chat/ChatResource.robot @@ -83,6 +83,25 @@ Library DatabaseLibrary Set Global Variable ${data} END +查询${dating}红娘列表 + #我关注的红娘列表 + FOR ${client_header} ${selfMiId} IN ZIP ${Cheader_list} ${miId_list} + Create Session dating ${${dating}.dating域名} ${client_header} + ${reps} GET On Session dating dating-agency-service/user/get/my/matchmaker/page params=pageNum=1&pageSize=10 + ${records} Get From Dictionary ${reps.json()['data']} records #红娘数据 + Set Global Variable ${records} + 遍历红娘列表 + Run Keyword If ${identityCard}==None 提交婚介征婚人身份证审核 + ... ELSE log 用户已实名认证 + Run Keyword If ${otherMiId}==None log 聊天者标识不能为空 + ... ELSE 创建婚介聊天室 + END + +遍历红娘列表 + ${matchmakerData} Evaluate random.choice(${records}) random + ${otherMiId} Get From Dictionary ${matchmakerData} miId #红娘资料id + Set Global Variable ${otherMiId} + 创建${dating}聊天室 #创建聊天室 FOR ${client_header} ${selfMiId} IN ZIP ${Cheader_list} ${miId_list} diff --git a/output/log.html b/output/log.html index 3dc3be9..1fcac84 100644 --- a/output/log.html +++ b/output/log.html @@ -1806,25 +1806,25 @@ function stopPropagation(event) { window.output = {};