Browse Source

代理商创建

master
LG_lai 1 year ago
parent
commit
12f6624b69
13 changed files with 708 additions and 245 deletions
  1. 8
      0-Login/Login-interface.robot
  2. 7
      0-Login/LoginResource.robot
  3. 4
      1-Applet/2-Homepage/MarriageInfo/Authentication.robot
  4. 11
      2-Web/OperationCenter/Operation.robot
  5. 55
      2-Web/OperationCenter/OperationResources.robot
  6. 2
      2-Web/OperationCenter/__init__.robot
  7. 44
      2-Web/SiteActivity/SiteActivityResources.robot
  8. 2
      LoginUI/Login.robot
  9. 35
      LoginUI/LoginResource.robot
  10. 6
      Phone.txt
  11. 10
      output/log.html
  12. 759
      output/output.xml
  13. 10
      output/report.html

8
0-Login/Login-interface.robot

@ -7,6 +7,7 @@ Library Collections
Library JSONLibrary
Library OperatingSystem
Library ImageHorizonLibrary
Library RedisLibrary
*** Variables ***
@ -138,4 +139,9 @@ Library ImageHorizonLibrary
#${IdType} Evaluate type(${Id})
#${Id} Convert To String ${IdType}
#随机取数字
${activityType} Evaluate "".join(random.sample("01",1)) random,string
#${activityType} Evaluate "".join(random.sample("01",1)) random,string
#连接Redis
#${redis_conn}= Connect To Redis 8.135.8.221 6379 2 qnredis
#身份证64位加密
#${filepath1} Set Variable D:/LYL/图片/20210805134405.jpg
#${frontImg} Evaluate base64.b64encode(open('${filepath1}','rb').read()).decode('utf-8') base64

7
0-Login/LoginResource.robot

@ -21,7 +21,6 @@ Library ImageHorizonLibrary
Set Global Variable ${id}
生成随机手机号
${phoneList} Create List
${phoneList} Create List
${num} Evaluate random.choice(["139","188","185","136","158","151","132","156","189","187","135","134"]) random
${number} Evaluate "".join(random.sample("01234567897",8)) random,string
@ -126,7 +125,8 @@ Library ImageHorizonLibrary
${message} Get From Dictionary ${reps.json()} message
${login_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT ${token}','X-Organization-Id':'963432943739605555'} #更新header
log ${login_header}
${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'}
#${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'} #趣招亲小程序
${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'QNT ${token}'} #招亲宝小程序
Append To List ${userid_list} ${userId}
Append To List ${Cheader_list} ${client_header}
Append To List ${Aheader_list} ${login_header}
@ -156,7 +156,8 @@ Library ImageHorizonLibrary
${userId} Get From Dictionary ${reps.json()['data']} userId #获取用户id
${message} Get From Dictionary ${reps.json()} message
${login_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT ${token}','X-Organization-Id':'963432943739605555'} #更新header
${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'}
${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'} #趣招亲小程序
#${client_header} Set Variable {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'QNT ${token}'} #招亲宝小程序
Append To List ${userid_list} ${userId}
Append To List ${Cheader_list} ${client_header}
Append To List ${Aheader_list} ${login_header}

4
1-Applet/2-Homepage/MarriageInfo/Authentication.robot

@ -96,9 +96,9 @@ Resource ../../../0-Login/LoginResource.robot
#提交征婚人身份证审核
#${value_list} Create List 李博,429006198410300956 王颖勋,44058319951227041X 就是不吃饭,441481199509213863 王颖勋,4400 李子懿,429006201701270931
#女生身份证
${womanvalue_list} Set Variable ["赖勇兰,441481199509213863","赖敏怡,441521199410142320","刘景梅,371525198608012364","黄丽馨,441302199511296927","刘惠琼,441827198807146821","黄丽馨,441302199511296927"]
${womanvalue_list} Set Variable ["赖勇兰,441481199509213863","赖敏怡,441521199410142320","刘景梅,371525198608012364","刘惠琼,441827198807146821","黄丽馨,441302199511296927"]
#男生身份证
${manvalue_list} Set Variable ["张山,522328199807132811","臧琨,654001198103171417","李博,429006198410300956","王颖勋,44058319951227041X","刘文波,430426198402075198","董帅,411425199011117552","江志诚,43042619970207049X","杨仁丰,440923199311122678","陈越,445122199210152055","刘虎跃,43042619891011515X","李雷刚,430426198502033497","邝绍荣,440105198310224217","全拥军,430426197806302591"]
${manvalue_list} Set Variable ["张山,522328199807132811","臧琨,654001198103171417","李博,429006198410300956","王颖勋,44058319951227041X","刘文波,430426198402075198","董帅,411425199011117552","江志诚,43042619970207049X","杨仁丰,440923199311122678","陈越,445122199210152055","刘虎跃,43042619891011515X","李雷刚,430426198502033497","邝绍荣,440105198310224217","全拥军,430426197806302591","陈毅,441625199012125016","梁伟欣,440783199609292114"]
${code} Evaluate 0
FOR ${miId} ${client_header} IN ZIP ${miId_list} ${Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}

11
2-Web/OperationCenter/Operation.robot

@ -0,0 +1,11 @@
*** Settings ***
Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml
Resource OperationResources.robot
*** Test Cases ***
创建一级代理商组织
Given 创建婚介一级代理商
Then 查询婚介一级代理列表
邀请绑定代理人
Given 扫描婚介邀请绑定代理人二维码

55
2-Web/OperationCenter/OperationResources.robot

@ -0,0 +1,55 @@
*** Settings ***
Library urllib3
Library String
Library DateTime
Library Collections
Library RequestsLibrary
Library DatabaseLibrary
*** Keywords ***
创建${dating}一级代理商
#创建一级代理商
FOR ${admin_header} IN @{Aheader_list}
${DateTime} Get Current Date result_format=%Y-%m-%d #获取当天日期
Create Session dating ${${dating}.dating域名} ${admin_header}
${orgName} Set Variable 婚恋一级代理商${DateTime}
${franchiseFee} Evaluate random.randrange(50000,100000,1000) random #获取随机正整数
${administratorName} Set Variable 代理商${DateTime}
${data} Set Variable {"orgName":"${orgName}","administratorName":"${administratorName}","franchiseFee":${franchiseFee}}
${reps} POST On Session dating dating-agency-uec/user/create/operation-center ${data.encode('utf-8')}
${message} Get From Dictionary ${reps.json()} message #接口响应信息
Should Be Equal As Strings ${message} successful #断言字段是否相同
END
Set Global Variable ${orgName}
Set Global Variable ${administratorName}
查询${dating}一级代理列表
#查询一级代理列表
FOR ${admin_header} IN @{Aheader_list}
Create Session dating ${${dating}.dating域名} ${admin_header}
${reps} GET On Session dating dating-agency-uec/user/page/operation-center params=pageSize=10&pageNum=1
${records} Get From Dictionary ${reps.json()['data']} records #一级代理商列表
Set Global Variable ${records}
遍历一级代理商列表
END
遍历一级代理商列表
FOR ${data} IN @{records}
${Id} Get From Dictionary ${data} id #一级代理商id
${OrgId} Get From Dictionary ${data} orgId #一级代理商组织id
${ORGName} Get From Dictionary ${data} orgName #代理商组织name
${AdministratorName} Get From Dictionary ${data} administratorName #代理人姓名
Exit For Loop If '${ORGName}'=='${orgName}'
Set Global Variable ${Id}
Set Global Variable ${OrgId}
Set Global Variable ${ORGName}
Set Global Variable ${AdministratorName}
END
扫描${dating}邀请绑定代理人二维码
#扫描邀请绑定代理人二维码
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
${reps} GET On Session dating dating-agency-uec/user/verify/qrcode params=&qrCodeRecordId=1023330401797672960
${code} Get From Dictionary ${reps.json()} code
END

2
2-Web/OperationCenter/__init__.robot

@ -0,0 +1,2 @@
*** Settings ***
Documentation 分销代理

44
2-Web/SiteActivity/SiteActivityResources.robot

@ -71,26 +71,28 @@ Library DatabaseLibrary
${reps} GET On Session dating dating-agency-mall/user/page/product/by/operator params=pageSize=100&enable=true&pageNum=1
${records} Get From Dictionary ${reps.json()['data']} records #商品数组
Set Global Variable ${records}
${productData} Evaluate random.choice(${records}) random #随机获取商品定价
${productId} Get From Dictionary ${productData} productId #商品id
${productSpecUnit} Get From Dictionary ${productData} productSpecUnit #商品规格分类
Set Global Variable ${productId}
Set Global Variable ${productSpecUnit}
遍历商品列表
#${productData} Evaluate random.choice(${records}) random #随机获取商品定价
#${productId} Get From Dictionary ${productData} productId #商品id
#${productSpecUnit} Get From Dictionary ${productData} productSpecUnit #商品规格分类
#Set Global Variable ${productId}
#Set Global Variable ${productSpecUnit}
END
遍历商品列表
FOR ${product} IN @{records}
${status} Get From Dictionary ${product} status #商品状态
${productId} Get From Dictionary ${product} productId #商品id
${productTitle} Get From Dictionary ${product} productTitle #商品标题
${vipActivityId} Get From Dictionary ${product} productId #商品id
${goodsName} Get From Dictionary ${product} productTitle #商品标题
${productSpecId} Get From Dictionary ${product} productSpecId #商品规格id
${productSpecUnit} Get From Dictionary ${product} productSpecUnit #商品规格分类
Set Global Variable ${status}
Set Global Variable ${productId}
Set Global Variable ${productTitle}
Set Global Variable ${productSpecId}
Set Global Variable ${productSpecUnit}
Exit For Loop If ${vipActivityId}==${productId}
END
Set Global Variable ${status}
Set Global Variable ${goodsName}
Set Global Variable ${vipActivityId}
Set Global Variable ${productSpecId}
Set Global Variable ${productSpecUnit}
查询${dating}平台会员活动
#查询会员活动
@ -105,12 +107,14 @@ Library DatabaseLibrary
遍历会员活动列表
FOR ${activity} IN @{records}
${status} Get From Dictionary ${activity} status #会员活动状态
${activityId} Get From Dictionary ${activity} id #会员活动id
${goodsName} Get From Dictionary ${activity} activityName #会员活动名称
${activeState} Get From Dictionary ${activity} activeState #会员活动启停
Exit For Loop If ${activityId}==978382562932166656 and ${status}==1 and ${activeState}==1
${vipActivityId} Get From Dictionary ${activity} id #会员活动id
Exit For Loop If ${vipActivityId}==${activityId} and ${status}==1 and ${activeState}==1
END
Set Global Variable ${activityId}
Set Global Variable ${goodsName}
Set Global Variable ${activeState}
Set Global Variable ${vipActivityId}
获取${dating}收费项
#获取收费项
@ -121,8 +125,9 @@ Library DatabaseLibrary
${reps} GET On Session dating dating-agency-mall/user/page/product/by/operator params=pageSize=100&enable=true&activeState=1&pageNum=1
${records} Get From Dictionary ${reps.json()['data']} records #商品定价列表
${productData} Evaluate random.choice(${records}) random #随机获取商品
${productId} Get From Dictionary ${productData} productId #商品名称
${productId} Get From Dictionary ${productData} productId #商品id
${productTitle} Get From Dictionary ${productData} productTitle #商品名称
Set Global Variable ${productId}
Append To List ${goodsName_list} ${productTitle}
Append To List ${vipActivityId_list} ${productId}
${reps} GET On Session dating dating-agency-mall/user/get/activity/by/operator/page params=pageSize=100&enable=true&activeState=1&pageNum=1
@ -130,12 +135,13 @@ Library DatabaseLibrary
${memberData} Evaluate random.choice(${records}) random #随机获取会员收费信息
${activityId} Get From Dictionary ${memberData} id #会员活动id
${activityName} Get From Dictionary ${memberData} activityName #会员活动name
Set Global Variable ${activityId}
Append To List ${goodsName_list} ${activityName}
Append To List ${vipActivityId_list} ${activityId}
${goodsName} Evaluate random.choice(${goodsName_list}) random #随机获取收费项name
#${goodsName} Evaluate random.choice(${goodsName_list}) random #随机获取收费项name
${vipActivityId} Evaluate random.choice(${vipActivityId_list}) random #随机获取收费项id
Set Global Variable ${goodsName}
Set Global Variable ${vipActivityId}
Run Keyword If ${vipActivityId}==${productId} 查询婚介平台商品定价列表
... ELSE 查询婚介平台会员活动
END
创建${dating}平台活动

2
LoginUI/Login.robot

@ -20,4 +20,4 @@ open
趣招亲小程序
Given 小程序UI自动化-登录
#用户打开小程序
#小程序UI自动化-首次填写资料

35
LoginUI/LoginResource.robot

@ -66,14 +66,41 @@ Library String
Swipe ${X1} ${Y1} ${X1} ${Y2} #模拟下拉操作
Wait Until Page Contains 趣招亲 3 #等待页面出现指定的文本
Click Element xpath=//android.widget.RelativeLayout[@content-desc=\"趣招亲,\"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1] #点击“趣招亲”小程序
#BuiltIn.Sleep 2
#Click Element xpath=//*[@text="我的"] #进入小程序后点击"我的"
BuiltIn.Sleep 1
Click Element xpath=//*[@text="我的"] #进入小程序后点击"我的"
BuiltIn.Sleep 1
Click Element xpath=//android.view.View[@text=\"微信用户\"] #登录趣招亲
Wait Until Page Contains 微信用户 3
Click Element xpath=//*[@text="微信用户"] #登录趣招亲
Wait Until Page Contains 一键登录 3 #等待页面出现指定的文本
Click Element xpath=//*[@text="我已阅读并同意"] #勾选协议
Click Element xpath=//*[@text="一键登录"] #一键登录
Click Element xpath=//android.view.View/android.view.View[4] #确认手机号登录
BuiltIn.Sleep 2
Click Element xpath=//*[@text="180****4975"] #确认手机号登录
Wait Until Page Contains 关系 3 #等待页面出现指定的文本
Click Element xpath=//*[@text="亲友"] #填写资料身份
Wait Until Page Contains 性别 3 #等待页面出现指定的文本
Click Element xpath=//android.view.View/android.view.View[5]/android.widget.Image[1] #填写性别
Wait Until Page Contains 城市 3 #等待页面出现指定的文本
Click Element xpath=//*[@text="继续"] #填写户口所在地
Click Element xpath=//*[@text="继续"] #填写家乡
Click Element xpath=//*[@text="1989"] #出生年份
Click Element xpath=//*[@text="172"] #身高
Click Element xpath=//*[@text="大学本科"] #学历
Click Element xpath=//*[@text="12001~20000"] #工资范围
#Click Element xpath=//*[@text="给自己取个好听的昵称吧"] #填写昵称
Input Value xpath=//*[@text="给自己取个好听的昵称吧"] 高价回收废纸王小 #填写昵称
Click Element xpath=//*[@text="开启招亲"]
#Wait Until Page Contains 立即完善 3 #等待页面出现指定的文本
#Click Element xpath=//android.webkit.WebView/android.view.View[2]/android.view.View[1] #立即完善资料
Close Application
小程序UI自动化-首次填写资料
#小程序UI自动化-首次填写资料
Open Application http://127.0.0.1:4723/wd/hub platformName=Android platformVersion=9 deviceName=emulator-5554 automationName=uiautomator2
BuiltIn.Sleep 2
Click Element xpath=//android.view.View/android.view.View[2]/android.widget.Image[2] #点击"Hi"
Wait Until Page Contains 一键登录 3 #等待页面出现指定的文本
Click Element xpath=//*[@text="我已阅读并同意"] #勾选协议
Click Element xpath=//*[@text="一键登录"] #一键登录
Click Element xpath=//android.view.View/android.view.View[4] #确认手机号登录
Close Application

6
Phone.txt

@ -33,7 +33,6 @@
18024004975,888888
13217206974,888888
18871043759,888888
18024004975,888888
18772953460,888888
18814092560,888888
13629763475,888888
@ -63,7 +62,6 @@
13247780613,888888
18838942675,888888
13272765319,888888
18024004975,888888
19128647726,888888
13243759268,888888
13577546190,888888
@ -134,3 +132,7 @@
18996173270,888888
18539584026,888888
15873907256,888888
18937742896,888888
13229786174,888888
13978591607,888888
13597054183,888888

10
output/log.html
File diff suppressed because it is too large
View File

759
output/output.xml

@ -1,222 +1,575 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240702 17:20:00.808" rpa="false" schemaversion="4">
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240820 17:57:30.394" rpa="false" schemaversion="4">
<suite id="s1" name="Dating-agency" source="D:\LYL\Study\Robot_framework\space\Dating-agency">
<kw name="Import Variables" library="BuiltIn" type="SETUP">
<arg>${EXECDIR}\\DA_data.yaml</arg>
<doc>Imports a variable file with the given path and optional arguments.</doc>
<status status="PASS" starttime="20240702 17:20:00.842" endtime="20240702 17:20:00.846"/>
</kw>
<suite id="s1-s1" name="LoginUI" source="D:\LYL\Study\Robot_framework\space\Dating-agency\LoginUI">
<suite id="s1-s1-s1" name="Login" source="D:\LYL\Study\Robot_framework\space\Dating-agency\LoginUI\Login.robot">
<kw name="Set Library Search Order" library="BuiltIn" type="SETUP">
<arg>AppiumLibrary | Selenium2Library</arg>
<doc>Sets the resolution order to use when a name matches multiple keywords.</doc>
<status status="PASS" starttime="20240702 17:20:01.055" endtime="20240702 17:20:01.055"/>
</kw>
<test id="s1-s1-s1-t1" name="趣招亲小程序" line="21">
<kw name="Given 小程序UI自动化" library="LoginResource">
<kw name="Open Application" library="AppiumLibrary">
<arg>http://127.0.0.1:4723/wd/hub</arg>
<arg>platformName=Android</arg>
<arg>platformVersion=9</arg>
<arg>deviceName=emulator-5554</arg>
<arg>automationName=uiautomator2</arg>
<doc>Opens a new application to given Appium server.
Capabilities of appium server, Android and iOS,
Please check https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/server-args.md
| *Option* | *Man.* | *Description* |
| remote_url | Yes | Appium server url |
| alias | no | alias |</doc>
<msg timestamp="20240702 17:20:01.070" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session {"capabilities": {"firstMatch": [{"platformName": "Android", "appium:platformVersion": "9", "appium:deviceName": "emulator-5554", "appium:automationName": "uiautomator2"}]}, "desiredCapabilities": {"platformName": "Android", "platformVersion": "9", "deviceName": "emulator-5554", "automationName": "uiautomator2"}}</msg>
<msg timestamp="20240702 17:20:01.071" level="DEBUG">Starting new HTTP connection (1): 127.0.0.1:4723</msg>
<msg timestamp="20240702 17:20:05.304" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session HTTP/1.1" 200 758</msg>
<msg timestamp="20240702 17:20:05.306" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:05.307" level="DEBUG">Opened application with session id f748b401-7cd1-48b0-84cd-92c2b3407aef</msg>
<status status="PASS" starttime="20240702 17:20:01.056" endtime="20240702 17:20:05.307"/>
</kw>
<kw name="Get Window Height" library="AppiumLibrary">
<var>${Ysize}</var>
<doc>Get current device height.</doc>
<msg timestamp="20240702 17:20:05.307" level="DEBUG">GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect {}</msg>
<msg timestamp="20240702 17:20:05.315" level="DEBUG">http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect HTTP/1.1" 200 50</msg>
<msg timestamp="20240702 17:20:05.316" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:05.316" level="INFO">${Ysize} = 1920</msg>
<status status="PASS" starttime="20240702 17:20:05.307" endtime="20240702 17:20:05.316"/>
</kw>
<kw name="Get Window Width" library="AppiumLibrary">
<var>${Xsize}</var>
<doc>Get current device width.</doc>
<msg timestamp="20240702 17:20:05.317" level="DEBUG">GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect {}</msg>
<msg timestamp="20240702 17:20:05.325" level="DEBUG">http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/window/rect HTTP/1.1" 200 50</msg>
<msg timestamp="20240702 17:20:05.325" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:05.325" level="INFO">${Xsize} = 1080</msg>
<status status="PASS" starttime="20240702 17:20:05.316" endtime="20240702 17:20:05.325"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${X1}</var>
<arg>${Xsize}*0.5</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240702 17:20:05.325" level="INFO">${X1} = 540.0</msg>
<status status="PASS" starttime="20240702 17:20:05.325" endtime="20240702 17:20:05.325"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${Y1}</var>
<arg>${Ysize}*0.25</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240702 17:20:05.326" level="INFO">${Y1} = 480.0</msg>
<status status="PASS" starttime="20240702 17:20:05.326" endtime="20240702 17:20:05.326"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${Y2}</var>
<arg>${Ysize}*0.5</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240702 17:20:05.326" level="INFO">${Y2} = 960.0</msg>
<status status="PASS" starttime="20240702 17:20:05.326" endtime="20240702 17:20:05.327"/>
</kw>
<kw name="Swipe" library="AppiumLibrary">
<arg>${X1}</arg>
<arg>${Y1}</arg>
<arg>${X1}</arg>
<arg>${Y2}</arg>
<doc>Swipe from one point to another point, for an optional duration.</doc>
<msg timestamp="20240702 17:20:05.327" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/touch/perform {"actions": [{"action": "press", "options": {"x": 540, "y": 480}}, {"action": "wait", "options": {"ms": 1000}}, {"action": "moveTo", "options": {"x": 540, "y": 960}}, {"action": "release", "options": {}}]}</msg>
<msg timestamp="20240702 17:20:06.989" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/touch/perform HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:06.989" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:05.327" endtime="20240702 17:20:06.989"/>
</kw>
<kw name="Wait Until Page Contains" library="AppiumLibrary">
<arg>趣招亲</arg>
<arg>3</arg>
<doc>Waits until `text` appears on current page.</doc>
<msg timestamp="20240702 17:20:06.990" level="DEBUG">GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source {}</msg>
<msg timestamp="20240702 17:20:07.230" level="DEBUG">http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source HTTP/1.1" 200 76384</msg>
<msg timestamp="20240702 17:20:07.231" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:06.990" endtime="20240702 17:20:07.231"/>
</kw>
<kw name="Click Element" library="AppiumLibrary">
<arg>xpath=//android.widget.RelativeLayout[@content-desc=\"趣招亲,\"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1]</arg>
<doc>Click element identified by `locator`.</doc>
<msg timestamp="20240702 17:20:07.233" level="INFO">Clicking element 'xpath=//android.widget.RelativeLayout[@content-desc="趣招亲,"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1]'.</msg>
<msg timestamp="20240702 17:20:07.233" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.widget.RelativeLayout[@content-desc=\"\u8da3\u62db\u4eb2,\"]/android.widget.RelativeLayout[1]/android.widget.RelativeLayout[1]/android.widget.ImageView[1]"}</msg>
<msg timestamp="20240702 17:20:07.437" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139</msg>
<msg timestamp="20240702 17:20:07.437" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:07.437" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001e-ffff-ffff00000259/click {"id": "00000000-0000-001e-ffff-ffff00000259"}</msg>
<msg timestamp="20240702 17:20:07.467" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001e-ffff-ffff00000259/click HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:07.467" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:07.232" endtime="20240702 17:20:07.467"/>
</kw>
<kw name="Sleep" library="BuiltIn">
<arg>1</arg>
<doc>Pauses the test executed for the given time.</doc>
<msg timestamp="20240702 17:20:08.469" level="INFO">Slept 1 second</msg>
<status status="PASS" starttime="20240702 17:20:07.468" endtime="20240702 17:20:08.469"/>
</kw>
<kw name="Click Element" library="AppiumLibrary">
<arg>xpath=//android.view.View[@text=\"我的\"]</arg>
<doc>Click element identified by `locator`.</doc>
<msg timestamp="20240702 17:20:08.470" level="INFO">Clicking element 'xpath=//android.view.View[@text="我的"]'.</msg>
<msg timestamp="20240702 17:20:08.471" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.view.View[@text=\"\u6211\u7684\"]"}</msg>
<msg timestamp="20240702 17:20:08.556" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139</msg>
<msg timestamp="20240702 17:20:08.556" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:08.556" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13660000018d/click {"id": "00000000-0000-001b-0000-13660000018d"}</msg>
<msg timestamp="20240702 17:20:09.035" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13660000018d/click HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:09.036" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:08.469" endtime="20240702 17:20:09.036"/>
</kw>
<kw name="Sleep" library="BuiltIn">
<status status="PASS" starttime="20240820 17:57:30.424" endtime="20240820 17:57:30.439"/>
</kw>
<suite id="s1-s1" name="0-Login" source="D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login">
<suite id="s1-s1-s1" name="Login-interface" source="D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\Login-interface.robot">
<kw name="Import Variables" library="BuiltIn" type="SETUP">
<arg>${EXECDIR}\\DA_data.yaml</arg>
<doc>Imports a variable file with the given path and optional arguments.</doc>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="28">
<kw name="Given 读取TXT文件" library="LoginResource">
<kw name="Get File" library="OperatingSystem">
<var>${file}</var>
<arg>D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt</arg>
<doc>Returns the contents of a specified file.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO" html="true">Getting file '&lt;a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt"&gt;D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt&lt;/a&gt;'.</msg>
<msg timestamp="20240820 17:57:31.011" level="INFO">${file} = 手机号
19128859944</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${skip-line}</var>
<arg>1</arg>
<doc>Pauses the test executed for the given time.</doc>
<msg timestamp="20240702 17:20:10.036" level="INFO">Slept 1 second</msg>
<status status="PASS" starttime="20240702 17:20:09.036" endtime="20240702 17:20:10.036"/>
</kw>
<kw name="Click Element" library="AppiumLibrary">
<arg>xpath=//android.view.View[@text=\"微信用户\"]</arg>
<doc>Click element identified by `locator`.</doc>
<msg timestamp="20240702 17:20:10.037" level="INFO">Clicking element 'xpath=//android.view.View[@text="微信用户"]'.</msg>
<msg timestamp="20240702 17:20:10.038" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.view.View[@text=\"\u5fae\u4fe1\u7528\u6237\"]"}</msg>
<msg timestamp="20240702 17:20:10.094" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139</msg>
<msg timestamp="20240702 17:20:10.095" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:10.095" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13010000018d/click {"id": "00000000-0000-001b-0000-13010000018d"}</msg>
<msg timestamp="20240702 17:20:10.115" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13010000018d/click HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:10.115" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:10.036" endtime="20240702 17:20:10.116"/>
</kw>
<kw name="Wait Until Page Contains" library="AppiumLibrary">
<arg>一键登录</arg>
<arg>3</arg>
<doc>Waits until `text` appears on current page.</doc>
<msg timestamp="20240702 17:20:10.116" level="DEBUG">GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source {}</msg>
<msg timestamp="20240702 17:20:10.268" level="DEBUG">http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source HTTP/1.1" 200 38749</msg>
<msg timestamp="20240702 17:20:10.268" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:10.470" level="DEBUG">GET http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source {}</msg>
<msg timestamp="20240702 17:20:10.870" level="DEBUG">http://127.0.0.1:4723 "GET /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/source HTTP/1.1" 200 45147</msg>
<msg timestamp="20240702 17:20:10.870" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:10.116" endtime="20240702 17:20:10.871"/>
</kw>
<kw name="Click Element" library="AppiumLibrary">
<arg>xpath=//*[@text="我已阅读并同意"]</arg>
<doc>Click element identified by `locator`.</doc>
<msg timestamp="20240702 17:20:10.872" level="INFO">Clicking element 'xpath=//*[@text="我已阅读并同意"]'.</msg>
<msg timestamp="20240702 17:20:10.872" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//*[@text=\"\u6211\u5df2\u9605\u8bfb\u5e76\u540c\u610f\"]"}</msg>
<msg timestamp="20240702 17:20:10.928" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139</msg>
<msg timestamp="20240702 17:20:10.929" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:10.929" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13a40000018d/click {"id": "00000000-0000-001b-0000-13a40000018d"}</msg>
<msg timestamp="20240702 17:20:10.947" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13a40000018d/click HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:10.948" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:10.871" endtime="20240702 17:20:10.948"/>
</kw>
<kw name="Click Element" library="AppiumLibrary">
<arg>xpath=//*[@text="一键登录"]</arg>
<doc>Click element identified by `locator`.</doc>
<msg timestamp="20240702 17:20:10.950" level="INFO">Clicking element 'xpath=//*[@text="一键登录"]'.</msg>
<msg timestamp="20240702 17:20:10.950" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//*[@text=\"\u4e00\u952e\u767b\u5f55\"]"}</msg>
<msg timestamp="20240702 17:20:11.754" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139</msg>
<msg timestamp="20240702 17:20:11.754" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:11.754" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13ad0000018d/click {"id": "00000000-0000-001b-0000-13ad0000018d"}</msg>
<msg timestamp="20240702 17:20:11.772" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13ad0000018d/click HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:11.772" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:10.948" endtime="20240702 17:20:11.772"/>
</kw>
<kw name="Click Element" library="AppiumLibrary">
<arg>xpath=//android.view.View[@text=\"180****4975\"]</arg>
<doc>Click element identified by `locator`.</doc>
<msg timestamp="20240702 17:20:11.774" level="INFO">Clicking element 'xpath=//android.view.View[@text="180****4975"]'.</msg>
<msg timestamp="20240702 17:20:11.775" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements {"using": "xpath", "value": "//android.view.View[@text=\"180****4975\"]"}</msg>
<msg timestamp="20240702 17:20:13.642" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/elements HTTP/1.1" 200 139</msg>
<msg timestamp="20240702 17:20:13.642" level="DEBUG">Finished Request</msg>
<msg timestamp="20240702 17:20:13.643" level="DEBUG">POST http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13d200000157/click {"id": "00000000-0000-001b-0000-13d200000157"}</msg>
<msg timestamp="20240702 17:20:13.673" level="DEBUG">http://127.0.0.1:4723 "POST /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef/element/00000000-0000-001b-0000-13d200000157/click HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:13.673" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:11.773" endtime="20240702 17:20:13.673"/>
</kw>
<kw name="Close Application" library="AppiumLibrary">
<doc>Closes the current application and also close webdriver session.</doc>
<msg timestamp="20240702 17:20:13.675" level="DEBUG">Closing application with session id f748b401-7cd1-48b0-84cd-92c2b3407aef</msg>
<msg timestamp="20240702 17:20:13.676" level="DEBUG">DELETE http://127.0.0.1:4723/wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef {}</msg>
<msg timestamp="20240702 17:20:13.875" level="DEBUG">http://127.0.0.1:4723 "DELETE /wd/hub/session/f748b401-7cd1-48b0-84cd-92c2b3407aef HTTP/1.1" 200 14</msg>
<msg timestamp="20240702 17:20:13.876" level="DEBUG">Finished Request</msg>
<status status="PASS" starttime="20240702 17:20:13.674" endtime="20240702 17:20:13.876"/>
</kw>
<status status="PASS" starttime="20240702 17:20:01.056" endtime="20240702 17:20:13.876"/>
</kw>
<status status="PASS" starttime="20240702 17:20:01.055" endtime="20240702 17:20:13.877"/>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${lines}</var>
<arg>-1</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Get Lines Containing String" library="String">
<var>${content}</var>
<arg>${file}</arg>
<arg>${skip-line}</arg>
<arg>${lines}</arg>
<doc>Returns lines of the given ``string`` that contain the ``pattern``.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240820 17:57:31.011" level="INFO">${content} = 19128859944</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<for flavor="IN">
<var>${id}</var>
<value>${content}</value>
<iter>
<var name="${id}">19128859944</var>
<kw name="Split String" library="String">
<var>${id}</var>
<arg>${id}</arg>
<arg>\n</arg>
<doc>Splits the ``string`` using ``separator`` as a delimiter string.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</iter>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${id}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="And 用户手机号验证码登录婚介平台-888888" library="LoginResource" sourcename="用户手机号验证码登录${dating}平台-888888">
<kw name="Create List" library="BuiltIn">
<var>${userid_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${phoneList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${phoneList} = []</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<for flavor="IN">
<var>${account}</var>
<value>@{id}</value>
<iter>
<var name="${account}">19128859944</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg>
<arg>${${dating}.dating域名}</arg>
<arg>${${dating}.AHeader}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240820 17:57:31.011" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${data}</var>
<arg>{ \ \ "account":"${account}", \ \ "accountType":2, \ \ "captcha":888888 }</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240820 17:57:31.011" level="INFO">${data} = { "account":"19128859944", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:31.011"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>/dating-agency-uec/authorize/by-captcha</arg>
<arg>${data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<msg timestamp="20240820 17:57:31.026" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240820 17:57:32.739" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-uec/authorize/by-captcha HTTP/1.1" 200 None</msg>
<msg timestamp="20240820 17:57:32.739" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
path_url=/dating-agency-uec/authorize/by-captcha
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Content-Length': '68'}
body=b'{ "account":"19128859944", "accountType":2, "captcha":888888 }'
</msg>
<msg timestamp="20240820 17:57:32.739" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 20 Aug 2024 09:57:32 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==","userId":"986635834872696832"}}
</msg>
<msg timestamp="20240820 17:57:32.754" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240820 17:57:31.026" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${code}</var>
<arg>${reps.json()}</arg>
<arg>code</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${token}</var>
<arg>${reps.json()['data']}</arg>
<arg>token</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${userId}</var>
<arg>${reps.json()['data']}</arg>
<arg>userId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${userId} = 986635834872696832</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${message}</var>
<arg>${reps.json()}</arg>
<arg>message</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${login_header}</var>
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT ${token}','X-Organization-Id':'963432943739605555'}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Log" library="BuiltIn">
<arg>${login_header}</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==','X-Organization-Id':'963432943739605555'}</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${client_header}</var>
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'QNT ${token}'}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g=='}</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${userid_list}</arg>
<arg>${userId}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${Cheader_list}</arg>
<arg>${client_header}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${Aheader_list}</arg>
<arg>${login_header}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${phoneList}</arg>
<arg>${account}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${code}==0</arg>
<arg>Should Be Equal As Strings</arg>
<arg>${message}</arg>
<arg>successful</arg>
<arg>ELSE</arg>
<arg>Should Be Equal As Strings</arg>
<arg>${message}</arg>
<arg>验证码错误或无效验证码,请重试!</arg>
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<arg>${message}</arg>
<arg>successful</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc>
<msg timestamp="20240820 17:57:32.754" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:32.754"/>
</iter>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:32.754"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${phoneList}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${phoneList} = ['19128859944']</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${userid_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${userid_list} = ['986635834872696832']</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${Aheader_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${Cheader_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g=='}"]</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${login_header}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${client_header}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g=='}</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="And 查询用户的婚介组织" library="LoginResource" sourcename="查询用户的${dating}组织">
<kw name="Create List" library="BuiltIn">
<var>${Aheader}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${login_header}</var>
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">986635834872696832</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg>
<arg>${${dating}.dating域名}</arg>
<arg>${login_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240820 17:57:32.754" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240820 17:57:32.754" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.754"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>/dating-agency-uec/user/list/own-organization</arg>
<arg>params=userId=${userid}</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240820 17:57:32.754" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240820 17:57:32.920" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=986635834872696832 HTTP/1.1" 200 None</msg>
<msg timestamp="20240820 17:57:32.920" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=986635834872696832
path_url=/dating-agency-uec/user/list/own-organization?userId=986635834872696832
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240820 17:57:32.920" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=986635834872696832
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 20 Aug 2024 09:57:32 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":[{"orgId":"963432943739605555","fullName":"xxx","shortName":null}]}
</msg>
<msg timestamp="20240820 17:57:32.920" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.920"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${data}</var>
<arg>${reps.json()}</arg>
<arg>data</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:32.920" level="INFO">${data} = [{'orgId': '963432943739605555', 'fullName': 'xxx', 'shortName': None}]</msg>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:32.920"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${message}</var>
<arg>${reps.json()}</arg>
<arg>message</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:32.920" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:32.920"/>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<arg>${message}</arg>
<arg>successful</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc>
<msg timestamp="20240820 17:57:32.920" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:32.920"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${data}==[]</arg>
<arg>log</arg>
<arg>未获取到组织信息!</arg>
<arg>ELSE</arg>
<arg>log</arg>
<arg>${data}</arg>
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
<kw name="Log" library="BuiltIn">
<arg>${data}</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240820 17:57:32.920" level="INFO">[{'orgId': '963432943739605555', 'fullName': 'xxx', 'shortName': None}]</msg>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:32.920"/>
</kw>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:32.920"/>
</kw>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.920"/>
</iter>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.920"/>
</for>
<status status="PASS" starttime="20240820 17:57:32.754" endtime="20240820 17:57:32.920"/>
</kw>
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
<kw name="Create List" library="BuiltIn">
<var>${matchmakerFlagList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240820 17:57:32.920" level="INFO">${matchmakerFlagList} = []</msg>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:32.920"/>
</kw>
<for flavor="IN">
<var>${admin_header}</var>
<value>@{Aheader_list}</value>
<iter>
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==','X-Organization-Id':'96...</var>
<kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg>
<arg>${${dating}.dating域名}</arg>
<arg>${admin_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240820 17:57:32.920" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240820 17:57:32.920" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:32.920"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-uec/user/get/base-info</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240820 17:57:32.920" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240820 17:57:33.025" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/get/base-info HTTP/1.1" 200 None</msg>
<msg timestamp="20240820 17:57:33.025" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
path_url=/dating-agency-uec/user/get/base-info
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240820 17:57:33.025" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 20 Aug 2024 09:57:33 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"userId":"986635834872696832","realName":"qianniao","nickName":null,"phone":"19128859944","matchmakerFlag":false}}
</msg>
<msg timestamp="20240820 17:57:33.025" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:33.025"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${phone}</var>
<arg>${reps.json()['data']}</arg>
<arg>phone</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:33.025" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240820 17:57:33.025" endtime="20240820 17:57:33.025"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${matchmakerFlag}</var>
<arg>${reps.json()['data']}</arg>
<arg>matchmakerFlag</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:33.025" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240820 17:57:33.025" endtime="20240820 17:57:33.025"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${matchmakerFlagList}</arg>
<arg>${matchmakerFlag}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240820 17:57:33.025" endtime="20240820 17:57:33.025"/>
</kw>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:33.025"/>
</iter>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:33.025"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${phone}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:33.040" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.040"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmakerFlag}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:33.040" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.040"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmakerFlagList}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240820 17:57:33.040" level="INFO">${matchmakerFlagList} = [False]</msg>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.040"/>
</kw>
<status status="PASS" starttime="20240820 17:57:32.920" endtime="20240820 17:57:33.040"/>
</kw>
<status status="PASS" starttime="20240820 17:57:31.011" endtime="20240820 17:57:33.040"/>
</test>
<test id="s1-s1-s1-t2" name="用户扫描红娘二维码注册登录" line="51">
<kw name="Given 扫描婚介红娘二维码" library="LoginResource" sourcename="扫描${dating}红娘二维码">
<for flavor="IN">
<var>${client_header}</var>
<value>@{Cheader_list}</value>
<iter>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g=='}</var>
<kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg>
<arg>${${dating}.dating域名}</arg>
<arg>${client_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240820 17:57:33.040" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795883', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240820 17:57:33.040" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.040"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-uec/user/verify/qrcode</arg>
<arg>params=&amp;qrCodeRecordId=989944284495089664</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240820 17:57:33.040" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=989944284495089664 HTTP/1.1" 200 None</msg>
<msg timestamp="20240820 17:57:33.101" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=989944284495089664
path_url=/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=989944284495089664
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795883', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWndYLTOBZ2vtrxNg6NhkyaKgaZKDfhlE7RsRbTJU0T5g=='}
body=None
</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">MacCyrillic Russian confidence = 0.14221661547437375</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">IBM866 Russian confidence = 0.09751996489671343</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">IBM855 Russian confidence = 0.1706599385692485</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4085339397462577</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240820 17:57:33.101" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=989944284495089664
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 20 Aug 2024 09:57:33 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":200100,"message":"二维码已失效","data":null}
</msg>
<msg timestamp="20240820 17:57:33.101" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.101"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${code}</var>
<arg>${reps.json()}</arg>
<arg>code</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240820 17:57:33.116" level="INFO">${code} = 200100</msg>
<status status="PASS" starttime="20240820 17:57:33.101" endtime="20240820 17:57:33.116"/>
</kw>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.116"/>
</iter>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.116"/>
</for>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.116"/>
</kw>
<status status="PASS" starttime="20240820 17:57:33.040" endtime="20240820 17:57:33.116"/>
</test>
<status status="PASS" starttime="20240702 17:20:00.849" endtime="20240702 17:20:13.877"/>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240820 17:57:30.439" endtime="20240820 17:57:33.116"/>
</suite>
<status status="PASS" starttime="20240702 17:20:00.847" endtime="20240702 17:20:13.879"/>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240820 17:57:30.439" endtime="20240820 17:57:33.116"/>
</suite>
<status status="PASS" starttime="20240702 17:20:00.823" endtime="20240702 17:20:13.880"/>
<status status="PASS" starttime="20240820 17:57:30.409" endtime="20240820 17:57:33.116"/>
</suite>
<statistics>
<total>
<stat pass="1" fail="0" skip="0">All Tests</stat>
<stat pass="2" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="1" fail="0" skip="0" id="s1" name="Dating-agency">Dating-agency</stat>
<stat pass="1" fail="0" skip="0" id="s1-s1" name="LoginUI">Dating-agency.LoginUI</stat>
<stat pass="1" fail="0" skip="0" id="s1-s1-s1" name="Login">Dating-agency.LoginUI.Login</stat>
<stat pass="2" fail="0" skip="0" id="s1" name="Dating-agency">Dating-agency</stat>
<stat pass="2" fail="0" skip="0" id="s1-s1" name="0-Login">Dating-agency.0-Login</stat>
<stat pass="2" fail="0" skip="0" id="s1-s1-s1" name="Login-interface">Dating-agency.0-Login.Login-interface</stat>
</suite>
</statistics>
<errors>

10
output/report.html

@ -1629,22 +1629,22 @@ storage = function () {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,13057],[[4,5,6,0,[],[1,24,13032],[[7,8,9,0,[],[1,26,13028],[],[[10,0,0,[],[1,232,12822],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,0,0]];
window.output["suite"] = [1,2,3,0,[],[1,0,2707],[[4,5,6,7,[],[1,30,2677],[[8,9,10,11,[],[1,30,2677],[],[[12,0,0,[],[1,602,2029],[]],[13,0,0,[],[1,2631,76],[]]],[],[2,2,0,0]]],[],[],[2,2,0,0]]],[],[],[2,2,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*Dating-agency","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency","*..","*LoginUI","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\LoginUI","*../LoginUI","*Login","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\LoginUI\\Login.robot","*../LoginUI/Login.robot","*趣招亲小程序"]);
window.output["strings"] = window.output["strings"].concat(["*","*Dating-agency","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency","*..","*0-Login","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login","*../0-Login","*<p>用户登录婚介平台\x3c/p>","*Login-interface","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\Login-interface.robot","*../0-Login/Login-interface.robot","*<p>接口:短信验证码登录认证\x3c/p>","*手机号验证码登录-888888","*用户扫描红娘二维码注册登录"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:13","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:13","fail":0,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":1,"skip":0},{"elapsed":"00:00:13","fail":0,"id":"s1-s1","label":"Dating-agency.LoginUI","name":"LoginUI","pass":1,"skip":0},{"elapsed":"00:00:13","fail":0,"id":"s1-s1-s1","label":"Dating-agency.LoginUI.Login","name":"Login","pass":1,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:02","fail":0,"label":"All Tests","pass":2,"skip":0}],[],[{"elapsed":"00:00:03","fail":0,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":2,"skip":0},{"elapsed":"00:00:03","fail":0,"id":"s1-s1","label":"Dating-agency.0-Login","name":"0-Login","pass":2,"skip":0},{"elapsed":"00:00:03","fail":0,"id":"s1-s1-s1","label":"Dating-agency.0-Login.Login-interface","name":"Login-interface","pass":2,"skip":0}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1719912000823;
window.output["baseMillis"] = 1724147850409;
</script>
<script type="text/javascript">
window.output["generated"] = 13078;
window.output["generated"] = 2721;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;

Loading…
Cancel
Save