Browse Source

优化

master
LG_lai 1 year ago
parent
commit
971774c45c
10 changed files with 290 additions and 354 deletions
  1. 14
      0-Login/LoginResource.robot
  2. 4
      3-Operation/Applet/Home/Operation.robot
  3. 61
      3-Operation/Applet/Home/OperationResources.robot
  4. 0
      3-Operation/Applet/Home/__init__.robot
  5. 8
      3-Operation/Web/OperationCenter/Operation.robot
  6. 42
      3-Operation/Web/OperationCenter/OperationResources.robot
  7. 2
      3-Operation/Web/OperationCenter/__init__.robot
  8. 10
      output/log.html
  9. 493
      output/output.xml
  10. 10
      output/report.html

14
0-Login/LoginResource.robot

@ -193,12 +193,24 @@ Library ImageHorizonLibrary
Create Session dating ${${dating}.dating域名} ${login_header}
${reps} GET On Session dating /dating-agency-uec/user/list/own-organization params=userId=${userid}
${data} Get From Dictionary ${reps.json()} data #获取用户组织数据
Set Global Variable ${data}
${message} Get From Dictionary ${reps.json()} message
Should Be Equal As Strings ${message} successful
Run Keyword If ${data}==[] log 未获取到组织信息!
... ELSE log ${data}
... ELSE 遍历用户组织信息
END
遍历用户组织信息
#遍历用户组织信息
FOR ${orgdata} IN @{data}
${orgdata} Evaluate random.choice(${data}) random #随机获取用户组织信息
${orgId} Get From Dictionary ${orgdata} orgId #组织id
${fullName} Get From Dictionary ${orgdata} fullName #组织name
#${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':'${token}','X-ORGANIZATION-ID':'${orgId}'} #招亲宝小程序
END
Set Global Variable ${client_header}
获取${dating}平台用户baseinfo
#获取baseinfo
${matchmakerFlagList} Create List

2-Web/OperationCenter/Operation.robot → 3-Operation/Applet/Home/Operation.robot

@ -3,10 +3,6 @@ Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml
Resource OperationResources.robot
*** Test Cases ***
创建一级代理商组织
Given 创建婚介一级代理商
Then 查询婚介一级代理列表
邀请绑定代理人
Given 扫描婚介邀请绑定代理人二维码
Then 用户绑定婚介运营中心

61
3-Operation/Applet/Home/OperationResources.robot

@ -0,0 +1,61 @@
*** Settings ***
Library urllib3
Library String
Library DateTime
Library Collections
Library RequestsLibrary
Library DatabaseLibrary
*** Keywords ***
扫描${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=mark=50325897884795883&qrCodeRecordId=1023654201504436224
${code} Get From Dictionary ${reps.json()} code
${orgId} Get From Dictionary ${reps.json()['data']['metaData']} orgId #运营中心组织id
END
Set Global Variable ${orgId}
用户绑定${dating}运营中心
#用户绑定运营中心
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
${data} Set Variable {"orgId":${orgId}}
${reps} POST On Session dating dating-agency-uec/user/bind/operation-center ${data.encode('utf-8')}
${message} Get From Dictionary ${reps.json()} message
Should Be Equal As Strings ${message} successful
END
邀请${dating}用户开店
#代理商邀请用户开店
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
region固定省市-广州
Disable Warnings
Create Session region http://qncloud.oss-cn-shenzhen.aliyuncs.com
${reps} GET On Session region address.json
${local_data} Get From Dictionary ${reps.json()} data
FOR ${province} IN @{local_data} #省列表数据
${provinceCode} Get From Dictionary ${province} value #获取省编码
${provinceName} Get From Dictionary ${province} label #获取省名称
Exit For Loop If '${provinceName}'=='广东省'
END
${city_data} Get From Dictionary ${province} children #广东省市列表数据
FOR ${city} IN @{city_data}
${cityCode} Get From Dictionary ${city} value #获取市编码
${cityName} Get From Dictionary ${city} label #获取市名称
Exit For Loop If '${cityName}'=='广州市'
END
${district_data} Get From Dictionary ${city} children #广州市列表数据
log ${district_data}
${district} Evaluate random.choice(${district_data}) random
${districtCode} Get From Dictionary ${district} value #随机获取广州市区编码
${districtName} Get From Dictionary ${district} label #随机获取广州市区名称
Set Global Variable ${cityCode}
Set Global Variable ${cityName}
Set Global Variable ${districtCode}
Set Global Variable ${districtName}
Set Global Variable ${provinceCode}
Set Global Variable ${provinceName}

2-Web/OperationCenter/__init__.robot → 3-Operation/Applet/Home/__init__.robot

8
3-Operation/Web/OperationCenter/Operation.robot

@ -0,0 +1,8 @@
*** Settings ***
Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml
Resource OperationResources.robot
*** Test Cases ***
创建一级代理商组织
Given 创建婚介一级代理商
Then 查询婚介一级代理列表

2-Web/OperationCenter/OperationResources.robot → 3-Operation/Web/OperationCenter/OperationResources.robot

@ -46,22 +46,30 @@ Library DatabaseLibrary
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=mark=50325897884795883&qrCodeRecordId=1023654201504436224
${code} Get From Dictionary ${reps.json()} code
${orgId} Get From Dictionary ${reps.json()['data']['metaData']} orgId #运营中心组织id
region固定省市-广州
Disable Warnings
Create Session region http://qncloud.oss-cn-shenzhen.aliyuncs.com
${reps} GET On Session region address.json
${local_data} Get From Dictionary ${reps.json()} data
FOR ${province} IN @{local_data} #省列表数据
${provinceCode} Get From Dictionary ${province} value #获取省编码
${provinceName} Get From Dictionary ${province} label #获取省名称
Exit For Loop If '${provinceName}'=='广东省'
END
Set Global Variable ${orgId}
用户绑定${dating}运营中心
#用户绑定运营中心
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
${data} Set Variable {"orgId":${orgId}}
${reps} POST On Session dating dating-agency-uec/user/bind/operation-center ${data.encode('utf-8')}
${message} Get From Dictionary ${reps.json()} message
Should Be Equal As Strings ${message} successful
${city_data} Get From Dictionary ${province} children #广东省市列表数据
FOR ${city} IN @{city_data}
${cityCode} Get From Dictionary ${city} value #获取市编码
${cityName} Get From Dictionary ${city} label #获取市名称
Exit For Loop If '${cityName}'=='广州市'
END
${district_data} Get From Dictionary ${city} children #广州市列表数据
log ${district_data}
${district} Evaluate random.choice(${district_data}) random
${districtCode} Get From Dictionary ${district} value #随机获取广州市区编码
${districtName} Get From Dictionary ${district} label #随机获取广州市区名称
Set Global Variable ${cityCode}
Set Global Variable ${cityName}
Set Global Variable ${districtCode}
Set Global Variable ${districtName}
Set Global Variable ${provinceCode}
Set Global Variable ${provinceName}

2
3-Operation/Web/OperationCenter/__init__.robot

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

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

493
output/output.xml

@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240821 15:17:46.453" rpa="false" schemaversion="4">
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240821 17:48:26.769" 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="20240821 15:17:46.498" endtime="20240821 15:17:46.498"/>
<status status="PASS" starttime="20240821 17:48:26.808" endtime="20240821 17:48:26.816"/>
</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="20240821 15:17:47.117" endtime="20240821 15:17:47.134"/>
<status status="PASS" starttime="20240821 17:48:28.601" endtime="20240821 17:48:28.605"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="28">
<kw name="Given 读取TXT文件" library="LoginResource">
@ -19,24 +19,24 @@
<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="20240821 15:17:47.134" 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="20240821 15:17:47.134" level="INFO">${file} = 手机号
<msg timestamp="20240821 17:48:28.607" 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="20240821 17:48:28.612" level="INFO">${file} = 手机号
19128859944</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<status status="PASS" starttime="20240821 17:48:28.607" endtime="20240821 17:48:28.612"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${skip-line}</var>
<arg>1</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240821 15:17:47.134" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.613" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240821 17:48:28.612" endtime="20240821 17:48:28.613"/>
</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="20240821 15:17:47.134" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.613" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240821 17:48:28.613" endtime="20240821 17:48:28.613"/>
</kw>
<kw name="Get Lines Containing String" library="String">
<var>${content}</var>
@ -44,9 +44,9 @@
<arg>${skip-line}</arg>
<arg>${lines}</arg>
<doc>Returns lines of the given ``string`` that contain the ``pattern``.</doc>
<msg timestamp="20240821 15:17:47.134" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240821 15:17:47.134" level="INFO">${content} = 19128859944</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.614" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240821 17:48:28.614" level="INFO">${content} = 19128859944</msg>
<status status="PASS" starttime="20240821 17:48:28.613" endtime="20240821 17:48:28.614"/>
</kw>
<for flavor="IN">
<var>${id}</var>
@ -58,45 +58,45 @@
<arg>${id}</arg>
<arg>\n</arg>
<doc>Splits the ``string`` using ``separator`` as a delimiter string.</doc>
<msg timestamp="20240821 15:17:47.134" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.615" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240821 17:48:28.614" endtime="20240821 17:48:28.615"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<status status="PASS" starttime="20240821 17:48:28.614" endtime="20240821 17:48:28.615"/>
</iter>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<status status="PASS" starttime="20240821 17:48:28.614" endtime="20240821 17:48:28.615"/>
</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="20240821 15:17:47.134" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.615" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240821 17:48:28.615" endtime="20240821 17:48:28.616"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<status status="PASS" starttime="20240821 17:48:28.606" endtime="20240821 17:48:28.616"/>
</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="20240821 15:17:47.134" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.616" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240821 17:48:28.616" endtime="20240821 17:48:28.616"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240821 15:17:47.134" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.617" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240821 17:48:28.617" endtime="20240821 17:48:28.617"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240821 15:17:47.134" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.617" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240821 17:48:28.617" endtime="20240821 17:48:28.617"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${phoneList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240821 15:17:47.134" level="INFO">${phoneList} = []</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.618" level="INFO">${phoneList} = []</msg>
<status status="PASS" starttime="20240821 17:48:28.618" endtime="20240821 17:48:28.618"/>
</kw>
<for flavor="IN">
<var>${account}</var>
@ -105,23 +105,23 @@
<var name="${account}">19128859944</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<status status="PASS" starttime="20240821 17:48:28.618" endtime="20240821 17:48:28.619"/>
</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="20240821 15:17:47.134" 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="20240821 15:17:47.134" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.620" 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="20240821 17:48:28.620" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 17:48:28.619" endtime="20240821 17:48:28.620"/>
</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="20240821 15:17:47.134" level="INFO">${data} = { "account":"19128859944", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.134"/>
<msg timestamp="20240821 17:48:28.621" level="INFO">${data} = { "account":"19128859944", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240821 17:48:28.620" endtime="20240821 17:48:28.621"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
@ -129,96 +129,96 @@
<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="20240821 15:17:47.148" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 15:17:47.253" 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="20240821 15:17:47.253" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
<msg timestamp="20240821 17:48:28.624" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 17:48:29.792" 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="20240821 17:48:29.794" 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="20240821 15:17:47.253" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
<msg timestamp="20240821 17:48:29.795" 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': 'Wed, 21 Aug 2024 07:17:47 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==","userId":"986635834872696832"}}
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 21 Aug 2024 09:48:29 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==","userId":"986635834872696832"}}
</msg>
<msg timestamp="20240821 15:17:47.253" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.253"/>
<msg timestamp="20240821 17:48:29.795" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 17:48:28.621" endtime="20240821 17:48:29.795"/>
</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="20240821 15:17:47.253" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240821 15:17:47.253" endtime="20240821 15:17:47.253"/>
<msg timestamp="20240821 17:48:29.796" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240821 17:48:29.796" endtime="20240821 17:48:29.796"/>
</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="20240821 15:17:47.253" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==</msg>
<status status="PASS" starttime="20240821 15:17:47.253" endtime="20240821 15:17:47.253"/>
<msg timestamp="20240821 17:48:29.797" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==</msg>
<status status="PASS" starttime="20240821 17:48:29.797" endtime="20240821 17:48:29.797"/>
</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="20240821 15:17:47.253" level="INFO">${userId} = 986635834872696832</msg>
<status status="PASS" starttime="20240821 15:17:47.253" endtime="20240821 15:17:47.253"/>
<msg timestamp="20240821 17:48:29.798" level="INFO">${userId} = 986635834872696832</msg>
<status status="PASS" starttime="20240821 17:48:29.797" endtime="20240821 17:48:29.798"/>
</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="20240821 15:17:47.253" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240821 15:17:47.253" endtime="20240821 15:17:47.253"/>
<msg timestamp="20240821 17:48:29.799" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240821 17:48:29.798" endtime="20240821 17:48:29.799"/>
</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="20240821 15:17:47.268" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240821 15:17:47.253" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.799" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240821 17:48:29.799" endtime="20240821 17:48:29.799"/>
</kw>
<kw name="Log" library="BuiltIn">
<arg>${login_header}</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240821 15:17:47.268" level="INFO">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==','X-Organization-Id':'963432943739605555'}</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.799" level="INFO">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==','X-Organization-Id':'963432943739605555'}</msg>
<status status="PASS" starttime="20240821 17:48:29.799" endtime="20240821 17:48:29.800"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${client_header}</var>
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'${token}'}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240821 15:17:47.268" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.800" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg=='}</msg>
<status status="PASS" starttime="20240821 17:48:29.800" endtime="20240821 17:48:29.800"/>
</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="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:29.800" endtime="20240821 17:48:29.800"/>
</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="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:29.801" endtime="20240821 17:48:29.801"/>
</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="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:29.801" endtime="20240821 17:48:29.801"/>
</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="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:29.801" endtime="20240821 17:48:29.801"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${code}==0</arg>
@ -234,61 +234,61 @@
<arg>${message}</arg>
<arg>successful</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc>
<msg timestamp="20240821 15:17:47.268" level="DEBUG">Argument types are:
<msg timestamp="20240821 17:48:29.802" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:29.802" endtime="20240821 17:48:29.802"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:29.802" endtime="20240821 17:48:29.802"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:28.618" endtime="20240821 17:48:29.802"/>
</iter>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:28.618" endtime="20240821 17:48:29.803"/>
</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="20240821 15:17:47.268" level="INFO">${phoneList} = ['19128859944']</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.803" level="INFO">${phoneList} = ['19128859944']</msg>
<status status="PASS" starttime="20240821 17:48:29.803" endtime="20240821 17:48:29.803"/>
</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="20240821 15:17:47.268" level="INFO">${userid_list} = ['986635834872696832']</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.804" level="INFO">${userid_list} = ['986635834872696832']</msg>
<status status="PASS" starttime="20240821 17:48:29.803" endtime="20240821 17:48:29.804"/>
</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="20240821 15:17:47.268" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.804" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240821 17:48:29.804" endtime="20240821 17:48:29.804"/>
</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="20240821 15:17:47.268" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}"]</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.805" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg=='}"]</msg>
<status status="PASS" starttime="20240821 17:48:29.804" endtime="20240821 17:48:29.805"/>
</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="20240821 15:17:47.268" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.805" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240821 17:48:29.805" endtime="20240821 17:48:29.805"/>
</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="20240821 15:17:47.268" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.806" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795883','Authorization':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg=='}</msg>
<status status="PASS" starttime="20240821 17:48:29.805" endtime="20240821 17:48:29.806"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:28.616" endtime="20240821 17:48:29.806"/>
</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="20240821 15:17:47.268" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.807" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240821 17:48:29.807" endtime="20240821 17:48:29.807"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
@ -297,19 +297,19 @@
<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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==','X-Organization-Id':'96...</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<status status="PASS" starttime="20240821 17:48:29.808" endtime="20240821 17:48:29.808"/>
</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="20240821 15:17:47.268" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240821 15:17:47.268" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.268"/>
<msg timestamp="20240821 17:48:29.809" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240821 17:48:29.809" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 17:48:29.808" endtime="20240821 17:48:29.809"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
@ -317,45 +317,76 @@
<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="20240821 15:17:47.268" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 15:17:47.313" 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="20240821 15:17:47.313" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=986635834872696832
<msg timestamp="20240821 17:48:29.810" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 17:48:29.867" 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="20240821 17:48:29.867" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==', 'X-Organization-Id': '963432943739605555'}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240821 15:17:47.313" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=986635834872696832
<msg timestamp="20240821 17:48:29.868" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240821 17:48:29.868" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.869" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">TIS-620 Thai confidence = 0.20561212116352198</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">ISO-8859-9 Turkish confidence = 0.24977335999371533</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.870" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.871" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.871" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.871" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.871" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.871" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240821 17:48:29.871" 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': 'Wed, 21 Aug 2024 07:17:47 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}]}
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 21 Aug 2024 09:48:29 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},{"orgId":"1023568243073355776","fullName":"婚恋一级代理商2024-08-21","shortName":null}]}
</msg>
<msg timestamp="20240821 15:17:47.313" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.313"/>
<msg timestamp="20240821 17:48:29.871" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 17:48:29.809" endtime="20240821 17:48:29.871"/>
</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="20240821 15:17:47.313" level="INFO">${data} = [{'orgId': '963432943739605555', 'fullName': 'xxx', 'shortName': None}]</msg>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.313"/>
<msg timestamp="20240821 17:48:29.873" level="INFO">${data} = [{'orgId': '963432943739605555', 'fullName': 'xxx', 'shortName': None}, {'orgId': '1023568243073355776', 'fullName': '婚恋一级代理商2024-08-21', 'shortName': None}]</msg>
<status status="PASS" starttime="20240821 17:48:29.872" endtime="20240821 17:48:29.873"/>
</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="20240821 15:17:47.313" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.313"/>
<msg timestamp="20240821 17:48:29.874" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240821 17:48:29.873" endtime="20240821 17:48:29.874"/>
</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="20240821 15:17:47.313" level="DEBUG">Argument types are:
<msg timestamp="20240821 17:48:29.875" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.313"/>
<status status="PASS" starttime="20240821 17:48:29.874" endtime="20240821 17:48:29.875"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${data}==[]</arg>
@ -368,306 +399,124 @@
<kw name="Log" library="BuiltIn">
<arg>${data}</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240821 15:17:47.313" level="INFO">[{'orgId': '963432943739605555', 'fullName': 'xxx', 'shortName': None}]</msg>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.313"/>
<msg timestamp="20240821 17:48:29.876" level="INFO">[{'orgId': '963432943739605555', 'fullName': 'xxx', 'shortName': None}, {'orgId': '1023568243073355776', 'fullName': '婚恋一级代理商2024-08-21', 'shortName': None}]</msg>
<status status="PASS" starttime="20240821 17:48:29.876" endtime="20240821 17:48:29.876"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.313"/>
<status status="PASS" starttime="20240821 17:48:29.875" endtime="20240821 17:48:29.877"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.313"/>
<status status="PASS" starttime="20240821 17:48:29.807" endtime="20240821 17:48:29.877"/>
</iter>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.313"/>
<status status="PASS" starttime="20240821 17:48:29.807" endtime="20240821 17:48:29.877"/>
</for>
<status status="PASS" starttime="20240821 15:17:47.268" endtime="20240821 15:17:47.313"/>
<status status="PASS" starttime="20240821 17:48:29.806" endtime="20240821 17:48:29.877"/>
</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="20240821 15:17:47.313" level="INFO">${matchmakerFlagList} = []</msg>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.313"/>
<msg timestamp="20240821 17:48:29.878" level="INFO">${matchmakerFlagList} = []</msg>
<status status="PASS" starttime="20240821 17:48:29.878" endtime="20240821 17:48:29.878"/>
</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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==','X-Organization-Id':'96...</var>
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==','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="20240821 15:17:47.313" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240821 15:17:47.313" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.313"/>
<msg timestamp="20240821 17:48:29.879" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240821 17:48:29.879" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 17:48:29.879" endtime="20240821 17:48:29.879"/>
</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="20240821 15:17:47.313" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 15:17:47.374" 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="20240821 15:17:47.374" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
<msg timestamp="20240821 17:48:29.881" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 17:48:29.936" 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="20240821 17:48:29.936" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==', 'X-Organization-Id': '963432943739605555'}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oXQAFWFoSX6Kg5PODTEDTN9889dTzl/+I4BGak0mlytLg==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240821 15:17:47.374" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
<msg timestamp="20240821 17:48:29.936" 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': 'Wed, 21 Aug 2024 07:17:47 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 21 Aug 2024 09:48:29 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="20240821 15:17:47.374" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.374"/>
<msg timestamp="20240821 17:48:29.937" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 17:48:29.880" endtime="20240821 17:48:29.937"/>
</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="20240821 15:17:47.374" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240821 15:17:47.374" endtime="20240821 15:17:47.374"/>
<msg timestamp="20240821 17:48:29.938" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240821 17:48:29.937" endtime="20240821 17:48:29.938"/>
</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="20240821 15:17:47.374" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240821 15:17:47.374" endtime="20240821 15:17:47.374"/>
<msg timestamp="20240821 17:48:29.939" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240821 17:48:29.938" endtime="20240821 17:48:29.939"/>
</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="20240821 15:17:47.374" endtime="20240821 15:17:47.374"/>
<status status="PASS" starttime="20240821 17:48:29.939" endtime="20240821 17:48:29.939"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.374"/>
<status status="PASS" starttime="20240821 17:48:29.878" endtime="20240821 17:48:29.939"/>
</iter>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.374"/>
<status status="PASS" starttime="20240821 17:48:29.878" endtime="20240821 17:48:29.939"/>
</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="20240821 15:17:47.374" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240821 15:17:47.374" endtime="20240821 15:17:47.374"/>
<msg timestamp="20240821 17:48:29.940" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240821 17:48:29.940" endtime="20240821 17:48:29.940"/>
</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="20240821 15:17:47.374" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240821 15:17:47.374" endtime="20240821 15:17:47.374"/>
<msg timestamp="20240821 17:48:29.940" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240821 17:48:29.940" endtime="20240821 17:48:29.940"/>
</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="20240821 15:17:47.374" level="INFO">${matchmakerFlagList} = [False]</msg>
<status status="PASS" starttime="20240821 15:17:47.374" endtime="20240821 15:17:47.374"/>
<msg timestamp="20240821 17:48:29.941" level="INFO">${matchmakerFlagList} = [False]</msg>
<status status="PASS" starttime="20240821 17:48:29.941" endtime="20240821 17:48:29.941"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.313" endtime="20240821 15:17:47.374"/>
<status status="PASS" starttime="20240821 17:48:29.877" endtime="20240821 17:48:29.941"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.134" endtime="20240821 15:17:47.374"/>
<status status="PASS" starttime="20240821 17:48:28.606" endtime="20240821 17:48:29.941"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240821 15:17:46.498" endtime="20240821 15:17:47.374"/>
<status status="PASS" starttime="20240821 17:48:26.820" endtime="20240821 17:48:29.942"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240821 15:17:46.498" endtime="20240821 15:17:47.374"/>
<status status="PASS" starttime="20240821 17:48:26.816" endtime="20240821 17:48:29.943"/>
</suite>
<suite id="s1-s2" name="2-Web" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web">
<suite id="s1-s2-s1" name="OperationCenter" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web\OperationCenter">
<suite id="s1-s2-s1-s1" name="Operation" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web\OperationCenter\Operation.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="20240821 15:17:47.389" endtime="20240821 15:17:47.389"/>
</kw>
<test id="s1-s2-s1-s1-t1" name="邀请绑定代理人" line="10">
<kw name="Given 扫描婚介邀请绑定代理人二维码" library="OperationResources" 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':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}</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="20240821 15:17:47.404" 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': 'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240821 15:17:47.404" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 15:17:47.404" endtime="20240821 15:17:47.404"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-uec/user/verify/qrcode</arg>
<arg>params=mark=50325897884795883&amp;qrCodeRecordId=1023654201504436224</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240821 15:17:47.404" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/verify/qrcode?mark=50325897884795883&amp;qrCodeRecordId=1023654201504436224 HTTP/1.1" 200 None</msg>
<msg timestamp="20240821 15:17:47.464" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?mark=50325897884795883&amp;qrCodeRecordId=1023654201504436224
path_url=/dating-agency-uec/user/verify/qrcode?mark=50325897884795883&amp;qrCodeRecordId=1023654201504436224
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': 'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}
body=None
</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.464" level="DEBUG">TIS-620 Thai confidence = 0.20561212116352198</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4021687182647685</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240821 15:17:47.479" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?mark=50325897884795883&amp;qrCodeRecordId=1023654201504436224
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 21 Aug 2024 07:17:47 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":{"redirectUrl":"/page","metaData":{"orgName":"婚恋一级代理商2024-08-21","orgId":"1023568243073355776"}}}
</msg>
<msg timestamp="20240821 15:17:47.479" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.404" endtime="20240821 15:17:47.479"/>
</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="20240821 15:17:47.479" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.479"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${orgId}</var>
<arg>${reps.json()['data']['metaData']}</arg>
<arg>orgId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240821 15:17:47.479" level="INFO">${orgId} = 1023568243073355776</msg>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.479"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.404" endtime="20240821 15:17:47.479"/>
</iter>
<status status="PASS" starttime="20240821 15:17:47.404" endtime="20240821 15:17:47.479"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${orgId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240821 15:17:47.479" level="INFO">${orgId} = 1023568243073355776</msg>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.479"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.404" endtime="20240821 15:17:47.479"/>
</kw>
<kw name="Then 用户绑定婚介运营中心" library="OperationResources" 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':'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}</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="20240821 15:17:47.479" 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': 'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.479"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${data}</var>
<arg>{"orgId":${orgId}}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240821 15:17:47.479" level="INFO">${data} = {"orgId":1023568243073355776}</msg>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.479"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-uec/user/bind/operation-center</arg>
<arg>${data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<msg timestamp="20240821 15:17:47.479" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240821 15:17:47.584" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-uec/user/bind/operation-center HTTP/1.1" 200 None</msg>
<msg timestamp="20240821 15:17:47.584" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/bind/operation-center
path_url=/dating-agency-uec/user/bind/operation-center
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': 'iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWpAD2y1e0/HkzwNLBSPYvprwQhLeQP7fLOjXCZLFr+wg==', 'Content-Length': '29'}
body=b'{"orgId":1023568243073355776}'
</msg>
<msg timestamp="20240821 15:17:47.584" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/bind/operation-center
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 21 Aug 2024 07:17:47 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":null}
</msg>
<msg timestamp="20240821 15:17:47.584" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.584"/>
</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="20240821 15:17:47.584" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240821 15:17:47.584" endtime="20240821 15:17:47.584"/>
</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="20240821 15:17:47.584" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240821 15:17:47.584" endtime="20240821 15:17:47.584"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.584"/>
</iter>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.584"/>
</for>
<status status="PASS" starttime="20240821 15:17:47.479" endtime="20240821 15:17:47.584"/>
</kw>
<status status="PASS" starttime="20240821 15:17:47.389" endtime="20240821 15:17:47.584"/>
</test>
<status status="PASS" starttime="20240821 15:17:47.389" endtime="20240821 15:17:47.584"/>
</suite>
<doc>分销代理</doc>
<status status="PASS" starttime="20240821 15:17:47.389" endtime="20240821 15:17:47.599"/>
</suite>
<status status="PASS" starttime="20240821 15:17:47.374" endtime="20240821 15:17:47.599"/>
</suite>
<status status="PASS" starttime="20240821 15:17:46.468" endtime="20240821 15:17:47.599"/>
<status status="PASS" starttime="20240821 17:48:26.785" endtime="20240821 17:48:29.944"/>
</suite>
<statistics>
<total>
<stat pass="2" fail="0" skip="0">All Tests</stat>
<stat pass="1" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="2" fail="0" skip="0" id="s1" name="Dating-agency">Dating-agency</stat>
<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="0-Login">Dating-agency.0-Login</stat>
<stat pass="1" fail="0" skip="0" id="s1-s1-s1" name="Login-interface">Dating-agency.0-Login.Login-interface</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2" name="2-Web">Dating-agency.2-Web</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1" name="OperationCenter">Dating-agency.2-Web.OperationCenter</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="Operation">Dating-agency.2-Web.OperationCenter.Operation</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,1131],[[4,5,6,7,[],[1,30,876],[[8,9,10,11,[],[1,30,876],[],[[12,0,0,[],[1,666,240],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]],[13,14,15,0,[],[1,906,225],[[16,17,18,19,[],[1,921,210],[[20,21,22,0,[],[1,921,195],[],[[23,0,0,[],[1,921,195],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[2,2,0,0]];
window.output["suite"] = [1,2,3,0,[],[1,0,3159],[[4,5,6,7,[],[1,31,3127],[[8,9,10,11,[],[1,35,3122],[],[[12,0,0,[],[1,1821,1335],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,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","*..","*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","*2-Web","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\2-Web","*../2-Web","*OperationCenter","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\2-Web\\OperationCenter","*../2-Web/OperationCenter","*<p>分销代理\x3c/p>","*Operation","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\2-Web\\OperationCenter\\Operation.robot","*../2-Web/OperationCenter/Operation.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:00","fail":0,"label":"All Tests","pass":2,"skip":0}],[],[{"elapsed":"00:00:01","fail":0,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":2,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1","label":"Dating-agency.0-Login","name":"0-Login","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1-s1","label":"Dating-agency.0-Login.Login-interface","name":"Login-interface","pass":1,"skip":0},{"elapsed":"00:00:00","fail":0,"id":"s1-s2","label":"Dating-agency.2-Web","name":"2-Web","pass":1,"skip":0},{"elapsed":"00:00:00","fail":0,"id":"s1-s2-s1","label":"Dating-agency.2-Web.OperationCenter","name":"OperationCenter","pass":1,"skip":0},{"elapsed":"00:00:00","fail":0,"id":"s1-s2-s1-s1","label":"Dating-agency.2-Web.OperationCenter.Operation","name":"Operation","pass":1,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:01","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:03","fail":0,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":1,"skip":0},{"elapsed":"00:00:03","fail":0,"id":"s1-s1","label":"Dating-agency.0-Login","name":"0-Login","pass":1,"skip":0},{"elapsed":"00:00:03","fail":0,"id":"s1-s1-s1","label":"Dating-agency.0-Login.Login-interface","name":"Login-interface","pass":1,"skip":0}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1724224666468;
window.output["baseMillis"] = 1724233706785;
</script>
<script type="text/javascript">
window.output["generated"] = 1146;
window.output["generated"] = 3183;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;

Loading…
Cancel
Save