From 2118b4d108523a53e4429e24cd4430b81114d254 Mon Sep 17 00:00:00 2001 From: LG_lai Date: Mon, 24 Jun 2024 16:57:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=AA=E5=AE=9E=E5=90=8D?= =?UTF-8?q?=E5=98=89=E5=AE=BE=E5=8F=91=E8=B5=B7=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 +- 1-Applet/7-Chat/ChatResource.robot | 33 +- output/log.html | 8 +- output/output.xml | 909 ++++++++++++++--------------- output/report.html | 6 +- 5 files changed, 475 insertions(+), 483 deletions(-) diff --git a/0-Login/phone-test.txt b/0-Login/phone-test.txt index 443de94..8237cb2 100644 --- a/0-Login/phone-test.txt +++ b/0-Login/phone-test.txt @@ -1,2 +1,2 @@ 手机号 -19128859944 \ No newline at end of file +15187573906 \ No newline at end of file diff --git a/1-Applet/7-Chat/ChatResource.robot b/1-Applet/7-Chat/ChatResource.robot index 48091e9..9f6c79c 100644 --- a/1-Applet/7-Chat/ChatResource.robot +++ b/1-Applet/7-Chat/ChatResource.robot @@ -17,12 +17,14 @@ Library DatabaseLibrary ${nickName} Get From Dictionary ${reps.json()['data']} nickName #获取用户名称 ${genderCode} Get From Dictionary ${reps.json()['data']} genderCode #用户性别 ${message} Get From Dictionary ${reps.json()} message + ${identityCard} Get From Dictionary ${reps.json()['data']} identityCard #身份证号 Append To List ${miId_list} ${miId} Should Be Equal As Strings ${message} successful END Set Global Variable ${miId_list} Set Global Variable ${nickName} Set Global Variable ${genderCode} + Set Global Variable ${identityCard} Set Global Variable ${client_header} 查询${dating}消息列表 @@ -42,8 +44,8 @@ Library DatabaseLibrary ${roomName} Get From Dictionary ${infomation} roomName #聊天对象名称 #Set Global Variable ${roomId} Set Global Variable ${roomName} - ${roomId} Set Variable 1001948869078159360 - ${roomId} Convert To String ${roomId} + #${roomId} Set Variable 1001948869078159360 + #${roomId} Convert To String ${roomId} Set Global Variable ${roomId} 查询${dating}平台相亲列表 @@ -54,11 +56,34 @@ Library DatabaseLibrary ${records} Get From Dictionary ${reps.json()['data']} records #推荐列表 ${userData} Evaluate random.choice(${records}) random ${otherMiId} Get From Dictionary ${userData} miId #资料id + Run Keyword If ${identityCard}==None 提交婚介征婚人身份证审核 + ... ELSE log 用户已实名认证 Set Global Variable ${otherMiId} END - 创建聊天室 + 创建婚介聊天室 -创建聊天室 +提交${dating}征婚人身份证审核 + #提交征婚人身份证审核 + #${value_list} Create List 李博,429006198410300956 王颖勋,44058319951227041X 就是不吃饭,441481199509213863 王颖勋,4400 李子懿,429006201701270931 + #女生身份证 + ${womanvalue_list} Set Variable ["赖勇兰,441481199509213863","赖敏怡,441521199410142320","刘景梅,371525198608012364","黄丽馨,441302199511296927","刘惠琼,441827198807146821"] + #男生身份证 + ${manvalue_list} Set Variable ["张山,522328199807132811","臧琨,654001198103171417","李博,429006198410300956","王颖勋,44058319951227041X","刘文波,430426198402075198","董帅,411425199011117552","江志诚,43042619970207049X","杨仁丰,440923199311122678","陈越,445122199210152055","刘虎跃,43042619891011515X","李雷刚,430426198502033497","邝绍荣,440105198310224217","全拥军,430426197806302591"] + ${code} Evaluate 0 + FOR ${miId} ${client_header} IN ZIP ${miId_list} ${Cheader_list} + Create Session dating ${${dating}.dating域名} ${client_header} + ${man_value} Evaluate random.choice(${manvalue_list}) random #男生身份证 + ${woman_value} Evaluate random.choice(${womanvalue_list}) random #女生身份证 + ${data} Set Variable If ${genderCode}==1 { \ \ \ \ "authenticationCode":"${code}", \ \ \ \ "miId":"${miId}", \ \ \ \ "value":"${woman_value}" } { \ \ \ \ "authenticationCode":"${code}", \ \ \ \ "miId":"${miId}", \ \ \ \ "value":"${man_value}" } + ${reps} POST On Session dating dating-agency-service/user/save/certification/audit ${data.encode('utf-8')} + ${data} Get From Dictionary ${reps.json()} data + ${message} Get From Dictionary ${reps.json()} message + Run Keyword If ${data}!=None Should Be Equal As Strings ${message} successful + ... ELSE log ${message} + Set Global Variable ${data} + END + +创建${dating}聊天室 #创建聊天室 FOR ${client_header} ${selfMiId} IN ZIP ${Cheader_list} ${miId_list} Create Session dating ${${dating}.dating域名} ${client_header} diff --git a/output/log.html b/output/log.html index e315a12..3dc3be9 100644 --- a/output/log.html +++ b/output/log.html @@ -1806,13 +1806,13 @@ function stopPropagation(event) { window.output = {};