You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1110 lines
76 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240624 16:55:48.439" 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="20240624 16:55:48.470" endtime="20240624 16:55:48.470"/>
</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="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="27">
<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="20240624 16:55:48.908" 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="20240624 16:55:48.908" level="INFO">${file} = 手机号
15187573906</msg>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</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="20240624 16:55:48.908" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</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="20240624 16:55:48.908" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</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="20240624 16:55:48.908" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240624 16:55:48.908" level="INFO">${content} = 15187573906</msg>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</kw>
<for flavor="IN">
<var>${id}</var>
<value>${content}</value>
<iter>
<var name="${id}">15187573906</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="20240624 16:55:48.908" level="INFO">${id} = ['15187573906']</msg>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</kw>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</iter>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</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="20240624 16:55:48.908" level="INFO">${id} = ['15187573906']</msg>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</kw>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:48.908"/>
</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="20240624 16:55:48.921" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240624 16:55:48.921" endtime="20240624 16:55:48.921"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240624 16:55:48.921" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240624 16:55:48.921" endtime="20240624 16:55:48.921"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240624 16:55:48.922" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240624 16:55:48.922" endtime="20240624 16:55:48.922"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${phoneList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240624 16:55:48.922" level="INFO">${phoneList} = []</msg>
<status status="PASS" starttime="20240624 16:55:48.922" endtime="20240624 16:55:48.922"/>
</kw>
<for flavor="IN">
<var>${account}</var>
<value>@{id}</value>
<iter>
<var name="${account}">15187573906</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240624 16:55:48.923" endtime="20240624 16:55:48.923"/>
</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="20240624 16:55:48.924" 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="20240624 16:55:48.924" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240624 16:55:48.923" endtime="20240624 16:55:48.924"/>
</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="20240624 16:55:48.925" level="INFO">${data} = { "account":"15187573906", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240624 16:55:48.925" endtime="20240624 16:55:48.925"/>
</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="20240624 16:55:48.928" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240624 16:55:49.018" 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="20240624 16:55:49.018" 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":"15187573906", "accountType":2, "captcha":888888 }'
</msg>
<msg timestamp="20240624 16:55:49.018" 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': 'Mon, 24 Jun 2024 08:55:49 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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==","userId":"970683652532998144"}}
</msg>
<msg timestamp="20240624 16:55:49.018" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:48.925" endtime="20240624 16:55:49.018"/>
</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="20240624 16:55:49.018" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240624 16:55:49.018" endtime="20240624 16:55:49.018"/>
</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="20240624 16:55:49.018" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==</msg>
<status status="PASS" starttime="20240624 16:55:49.018" endtime="20240624 16:55:49.018"/>
</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="20240624 16:55:49.018" level="INFO">${userId} = 970683652532998144</msg>
<status status="PASS" starttime="20240624 16:55:49.018" endtime="20240624 16:55:49.018"/>
</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="20240624 16:55:49.018" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240624 16:55:49.018" endtime="20240624 16:55:49.018"/>
</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="20240624 16:55:49.024" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240624 16:55:49.018" endtime="20240624 16:55:49.024"/>
</kw>
<kw name="Log" library="BuiltIn">
<arg>${login_header}</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240624 16:55:49.024" level="INFO">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','X-Organization-Id':'963432943739605555'}</msg>
<status status="PASS" starttime="20240624 16:55:49.024" endtime="20240624 16:55:49.024"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${client_header}</var>
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240624 16:55:49.025" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}</msg>
<status status="PASS" starttime="20240624 16:55:49.024" endtime="20240624 16:55:49.025"/>
</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="20240624 16:55:49.025" endtime="20240624 16:55:49.025"/>
</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="20240624 16:55:49.025" endtime="20240624 16:55:49.025"/>
</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="20240624 16:55:49.026" endtime="20240624 16:55:49.026"/>
</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="20240624 16:55:49.026" endtime="20240624 16:55:49.026"/>
</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="20240624 16:55:49.027" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.027" endtime="20240624 16:55:49.027"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.026" endtime="20240624 16:55:49.027"/>
</kw>
<status status="PASS" starttime="20240624 16:55:48.923" endtime="20240624 16:55:49.027"/>
</iter>
<status status="PASS" starttime="20240624 16:55:48.922" endtime="20240624 16:55:49.028"/>
</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="20240624 16:55:49.028" level="INFO">${phoneList} = ['15187573906']</msg>
<status status="PASS" starttime="20240624 16:55:49.028" endtime="20240624 16:55:49.028"/>
</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="20240624 16:55:49.029" level="INFO">${userid_list} = ['970683652532998144']</msg>
<status status="PASS" starttime="20240624 16:55:49.028" endtime="20240624 16:55:49.029"/>
</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="20240624 16:55:49.029" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240624 16:55:49.029" endtime="20240624 16:55:49.029"/>
</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="20240624 16:55:49.030" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}"]</msg>
<status status="PASS" starttime="20240624 16:55:49.029" endtime="20240624 16:55:49.030"/>
</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="20240624 16:55:49.030" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240624 16:55:49.030" endtime="20240624 16:55:49.030"/>
</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="20240624 16:55:49.031" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}</msg>
<status status="PASS" starttime="20240624 16:55:49.030" endtime="20240624 16:55:49.031"/>
</kw>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:49.031"/>
</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="20240624 16:55:49.032" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240624 16:55:49.031" endtime="20240624 16:55:49.032"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${login_header}</var>
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">970683652532998144</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240624 16:55:49.032" endtime="20240624 16:55:49.032"/>
</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="20240624 16:55:49.033" 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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240624 16:55:49.033" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240624 16:55:49.033" endtime="20240624 16:55:49.034"/>
</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="20240624 16:55:49.035" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240624 16:55:49.073" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=970683652532998144 HTTP/1.1" 200 None</msg>
<msg timestamp="20240624 16:55:49.073" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970683652532998144
path_url=/dating-agency-uec/user/list/own-organization?userId=970683652532998144
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240624 16:55:49.073" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970683652532998144
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":[]}
</msg>
<msg timestamp="20240624 16:55:49.073" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.034" endtime="20240624 16:55:49.073"/>
</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="20240624 16:55:49.074" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240624 16:55:49.074" endtime="20240624 16:55:49.074"/>
</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="20240624 16:55:49.075" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240624 16:55:49.075" endtime="20240624 16:55:49.075"/>
</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="20240624 16:55:49.076" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.076" endtime="20240624 16:55:49.076"/>
</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>未获取到组织信息!</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240624 16:55:49.077" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240624 16:55:49.076" endtime="20240624 16:55:49.077"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.076" endtime="20240624 16:55:49.077"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.032" endtime="20240624 16:55:49.077"/>
</iter>
<status status="PASS" starttime="20240624 16:55:49.032" endtime="20240624 16:55:49.077"/>
</for>
<status status="PASS" starttime="20240624 16:55:49.031" endtime="20240624 16:55:49.077"/>
</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="20240624 16:55:49.078" level="INFO">${matchmakerFlagList} = []</msg>
<status status="PASS" starttime="20240624 16:55:49.078" endtime="20240624 16:55:49.078"/>
</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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','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="20240624 16:55:49.079" 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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240624 16:55:49.079" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240624 16:55:49.079" endtime="20240624 16:55:49.079"/>
</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="20240624 16:55:49.081" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240624 16:55:49.127" 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="20240624 16:55:49.127" 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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240624 16:55:49.127" 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': 'Mon, 24 Jun 2024 08:55:49 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":"970683652532998144","realName":null,"nickName":null,"phone":"15187573906","matchmakerFlag":false}}
</msg>
<msg timestamp="20240624 16:55:49.127" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.080" endtime="20240624 16:55:49.127"/>
</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="20240624 16:55:49.127" level="INFO">${phone} = 15187573906</msg>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.127"/>
</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="20240624 16:55:49.127" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.127"/>
</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="20240624 16:55:49.127" endtime="20240624 16:55:49.127"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.078" endtime="20240624 16:55:49.127"/>
</iter>
<status status="PASS" starttime="20240624 16:55:49.078" endtime="20240624 16:55:49.127"/>
</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="20240624 16:55:49.127" level="INFO">${phone} = 15187573906</msg>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.127"/>
</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="20240624 16:55:49.127" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.127"/>
</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="20240624 16:55:49.127" level="INFO">${matchmakerFlagList} = [False]</msg>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.127"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.077" endtime="20240624 16:55:49.127"/>
</kw>
<status status="PASS" starttime="20240624 16:55:48.908" endtime="20240624 16:55:49.127"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240624 16:55:48.487" endtime="20240624 16:55:49.127"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240624 16:55:48.470" endtime="20240624 16:55:49.127"/>
</suite>
<suite id="s1-s2" name="1-Applet" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet">
<suite id="s1-s2-s1" name="7-Chat" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\7-Chat">
<suite id="s1-s2-s1-s1" name="Chat" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\7-Chat\Chat.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="20240624 16:55:49.143" endtime="20240624 16:55:49.143"/>
</kw>
<test id="s1-s2-s1-s1-t1" name="用户发起聊天" line="6">
<kw name="Given 查询婚介征婚人的资料信息" library="ChatResource" sourcename="查询${dating}征婚人的资料信息">
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240624 16:55:49.143" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240624 16:55:49.143" endtime="20240624 16:55:49.143"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${client_header}</var>
<value>${userid_list}</value>
<value>${Cheader_list}</value>
<iter>
<var name="${userId}">970683652532998144</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}</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="20240624 16:55:49.143" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240624 16:55:49.143" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240624 16:55:49.143" endtime="20240624 16:55:49.143"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>/dating-agency-service/user/get/marriage/information/details</arg>
<arg>params=userId=${userId}</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240624 16:55:49.143" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=970683652532998144 HTTP/1.1" 200 None</msg>
<msg timestamp="20240624 16:55:49.234" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970683652532998144
path_url=/dating-agency-service/user/get/marriage/information/details?userId=970683652532998144
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
body=None
</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">MacCyrillic Russian confidence = 0.020159738313495962</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">IBM866 Russian confidence = 0.05205965867996009</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">IBM855 Russian confidence = 0.12460716358312997</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">TIS-620 Thai confidence = 0.044038839044274275</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">ISO-8859-9 Turkish confidence = 0.38009206901435727</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.234" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970683652532998144
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":{"id":"970683653929701376","isDelete":false,"createTime":"2024-03-28 11:11:23","updateTime":null,"event":null,"accountId":null,"userId":"970683652532998144","nickName":"遥远的旅途2024","name":"李雷刚","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/82e53568724f2010025231a600fd78b2.jpg","identityCard":"430426198502033497","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440115,"districtName":"南沙区","birthYear":"1985","birthDate":"1985-02-03","constellationCode":4,"constellation":"金牛座","chineseZodiacCode":null,"chineseZodiac":"牛","height":172,"weight":110,"educationCode":4,"education":"硕士","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","diplomaVerificationCode":null,"describeInfo":null,"identityType":0,"identityTypeName":"本人","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","nationCode":1,"nation":"汉族","bodilyFormCode":3,"bodilyForm":"肥胖","accountTypeCode":0,"accountTypeName":"城市","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":22,"industry":"医疗/护理","occupationCode":113,"occupation":"医生","onlyChild":0,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":5,"propertyPermits":"单位宿舍","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","display":true,"inLove":0,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":61,"phone":null}}
</msg>
<msg timestamp="20240624 16:55:49.234" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.143" endtime="20240624 16:55:49.234"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${miId}</var>
<arg>${reps.json()['data']}</arg>
<arg>id</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.234" level="INFO">${miId} = 970683653929701376</msg>
<status status="PASS" starttime="20240624 16:55:49.234" endtime="20240624 16:55:49.234"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${nickName}</var>
<arg>${reps.json()['data']}</arg>
<arg>nickName</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.250" level="INFO">${nickName} = 遥远的旅途2024</msg>
<status status="PASS" starttime="20240624 16:55:49.234" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${genderCode}</var>
<arg>${reps.json()['data']}</arg>
<arg>genderCode</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.250" level="INFO">${genderCode} = 0</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</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="20240624 16:55:49.250" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${identityCard}</var>
<arg>${reps.json()['data']}</arg>
<arg>identityCard</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.250" level="INFO">${identityCard} = 430426198502033497</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${miId_list}</arg>
<arg>${miId}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</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="20240624 16:55:49.250" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.143" endtime="20240624 16:55:49.250"/>
</iter>
<status status="PASS" starttime="20240624 16:55:49.143" endtime="20240624 16:55:49.250"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${miId_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240624 16:55:49.250" level="INFO">${miId_list} = ['970683653929701376']</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${nickName}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240624 16:55:49.250" level="INFO">${nickName} = 遥远的旅途2024</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${genderCode}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240624 16:55:49.250" level="INFO">${genderCode} = 0</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${identityCard}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240624 16:55:49.250" level="INFO">${identityCard} = 430426198502033497</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</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="20240624 16:55:49.250" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.143" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="When 查询婚介消息列表" library="ChatResource" sourcename="查询${dating}消息列表">
<for flavor="IN ZIP">
<var>${client_header}</var>
<var>${selfMiId}</var>
<value>${Cheader_list}</value>
<value>${miId_list}</value>
<iter>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}</var>
<var name="${selfMiId}">970683653929701376</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="20240624 16:55:49.250" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240624 16:55:49.250" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.250"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-cim/user/page/room</arg>
<arg>params=pageNum=1&amp;pageSize=10&amp;selfMiId=${selfMiId}</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240624 16:55:49.250" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-cim/user/page/room?pageNum=1&amp;pageSize=10&amp;selfMiId=970683653929701376 HTTP/1.1" 200 None</msg>
<msg timestamp="20240624 16:55:49.316" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/room?pageNum=1&amp;pageSize=10&amp;selfMiId=970683653929701376
path_url=/dating-agency-cim/user/page/room?pageNum=1&amp;pageSize=10&amp;selfMiId=970683653929701376
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
body=None
</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">IBM855 Russian confidence = 0.17065993856924846</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">ISO-8859-9 Turkish confidence = 0.48085656396079496</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.316" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/room?pageNum=1&amp;pageSize=10&amp;selfMiId=970683653929701376
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":{"records":[{"roomId":"1002658702513278976","roomType":1,"roomName":"零碎小土豆\uD83D\uDCD5","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg","finalContent":"The future belongs to those who believe in the beauty of their dreams.","finalActivityTime":"2024-06-24 16:55:02","cityName":"广州市","unreadContentCount":0,"genderCode":1}],"total":1,"size":10,"current":1,"pages":1}}
</msg>
<msg timestamp="20240624 16:55:49.316" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${InfomationData}</var>
<arg>${reps.json()['data']}</arg>
<arg>records</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.332" level="INFO">${InfomationData} = [{'roomId': '1002658702513278976', 'roomType': 1, 'roomName': '零碎小土豆📕', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg', 'finalContent': 'The f...</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${InfomationData}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240624 16:55:49.332" level="INFO">${InfomationData} = [{'roomId': '1002658702513278976', 'roomType': 1, 'roomName': '零碎小土豆📕', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg', 'finalContent': 'The f...</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${InfomationData}==[]</arg>
<arg>查询婚介平台相亲列表</arg>
<arg>ELSE</arg>
<arg>遍历消息列表</arg>
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
<kw name="遍历消息列表" library="ChatResource">
<kw name="Evaluate" library="BuiltIn">
<var>${infomation}</var>
<arg>random.choice(${InfomationData})</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240624 16:55:49.332" level="INFO">${infomation} = {'roomId': '1002658702513278976', 'roomType': 1, 'roomName': '零碎小土豆📕', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg', 'finalContent': 'The fu...</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${roomId}</var>
<arg>${infomation}</arg>
<arg>roomId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.332" level="INFO">${roomId} = 1002658702513278976</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${roomName}</var>
<arg>${infomation}</arg>
<arg>roomName</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.332" level="INFO">${roomName} = 零碎小土豆📕</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${roomName}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240624 16:55:49.332" level="INFO">${roomName} = 零碎小土豆📕</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${roomId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240624 16:55:49.332" level="INFO">${roomId} = 1002658702513278976</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.332"/>
</iter>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.332"/>
</for>
<status status="PASS" starttime="20240624 16:55:49.250" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="Then 查询婚介用户的聊天权益" library="ChatResource" sourcename="查询${dating}用户的聊天权益">
<for flavor="IN ZIP">
<var>${client_header}</var>
<var>${selfMiId}</var>
<value>${Cheader_list}</value>
<value>${miId_list}</value>
<iter>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}</var>
<var name="${selfMiId}">970683653929701376</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="20240624 16:55:49.332" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240624 16:55:49.332" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.332"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>/dating-agency-cim/user/get/chat-right-consume</arg>
<arg>params=roomId=${roomId}&amp;selfMiId=${selfMiId}</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240624 16:55:49.332" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240624 16:55:49.379" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-cim/user/get/chat-right-consume?roomId=1002658702513278976&amp;selfMiId=970683653929701376 HTTP/1.1" 200 None</msg>
<msg timestamp="20240624 16:55:49.379" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/get/chat-right-consume?roomId=1002658702513278976&amp;selfMiId=970683653929701376
path_url=/dating-agency-cim/user/get/chat-right-consume?roomId=1002658702513278976&amp;selfMiId=970683653929701376
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
body=None
</msg>
<msg timestamp="20240624 16:55:49.379" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/get/chat-right-consume?roomId=1002658702513278976&amp;selfMiId=970683653929701376
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":{"chatRight":true}}
</msg>
<msg timestamp="20240624 16:55:49.379" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.379"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${chatRight}</var>
<arg>${reps.json()['data']}</arg>
<arg>chatRight</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.379" level="INFO">${chatRight} = True</msg>
<status status="PASS" starttime="20240624 16:55:49.379" endtime="20240624 16:55:49.379"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-mall/user/list/right/by/customer</arg>
<arg>params=miId=${selfMiId}&amp;type=501</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-mall/user/list/right/by/customer?miId=970683653929701376&amp;type=501 HTTP/1.1" 200 None</msg>
<msg timestamp="20240624 16:55:49.426" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-mall/user/list/right/by/customer?miId=970683653929701376&amp;type=501
path_url=/dating-agency-mall/user/list/right/by/customer?miId=970683653929701376&amp;type=501
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
body=None
</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-JP Japanese prober hit error at byte 56</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">GB2312 Chinese prober hit error at byte 64</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-KR Korean prober hit error at byte 56</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">CP949 Korean prober hit error at byte 56</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">Big5 Chinese prober hit error at byte 57</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-TW Taiwan prober hit error at byte 56</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">utf-8 confidence = 0.87625</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-JP not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">GB2312 not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-KR not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">CP949 not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">Big5 not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-TW not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">ISO-8859-5 Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">ISO-8859-7 Greek confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">windows-1253 Greek confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">windows-1251 Bulgarian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4939546726022934</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">utf-8 confidence = 0.87625</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-JP not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">GB2312 not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-KR not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">CP949 not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">Big5 not active</msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">EUC-TW not active</msg>
<msg timestamp="20240624 16:55:49.426" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-mall/user/list/right/by/customer?miId=970683653929701376&amp;type=501
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":[{"rightName":"聊天卡","type":501,"rightSpecUnit":102,"startTime":"2024-06-24 16:48:48","endTime":"2024-06-29 16:48:48","remainingDays":5,"rightCount":2,"dailyUseLimit":-1,"dailyUseCount":1,"enable":true}]}
</msg>
<msg timestamp="20240624 16:55:49.426" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.379" endtime="20240624 16:55:49.426"/>
</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="20240624 16:55:49.426" level="INFO">${data} = [{'rightName': '聊天卡', 'type': 501, 'rightSpecUnit': 102, 'startTime': '2024-06-24 16:48:48', 'endTime': '2024-06-29 16:48:48', 'remainingDays': 5, 'rightCount': 2, 'dailyUseLimit': -1, 'dailyUseCount'...</msg>
<status status="PASS" starttime="20240624 16:55:49.426" endtime="20240624 16:55:49.426"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${chatRight}==False and ${data}==[]</arg>
<arg>数据库新增聊天卡权益</arg>
<arg>ELSE IF</arg>
<arg>${chatRight}==False and ${data}!=[]</arg>
<arg>聊天消耗婚介用户权益</arg>
<arg>ELSE IF</arg>
<arg>${chatRight}==True</arg>
<arg>使用婚介常用语聊天</arg>
<arg>ELSE</arg>
<arg>LOG</arg>
<arg>正常聊天</arg>
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
<kw name="使用婚介常用语聊天" library="ChatResource" sourcename="使用${dating}常用语聊天">
<for flavor="IN ZIP">
<var>${client_header}</var>
<var>${selfmiId}</var>
<value>${Cheader_list}</value>
<value>${miId_list}</value>
<iter>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}</var>
<var name="${selfmiId}">970683653929701376</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="20240624 16:55:49.426" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240624 16:55:49.426" endtime="20240624 16:55:49.426"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-cim/user/page/common-chat-template/by/customer</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240624 16:55:49.426" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-cim/user/page/common-chat-template/by/customer HTTP/1.1" 200 None</msg>
<msg timestamp="20240624 16:55:49.473" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/common-chat-template/by/customer
path_url=/dating-agency-cim/user/page/common-chat-template/by/customer
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
body=None
</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">IBM866 Russian confidence = 0.04293064457159178</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">IBM855 Russian confidence = 0.016445265691132117</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">TIS-620 Thai confidence = 0.07036654784268855</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">ISO-8859-9 Turkish confidence = 0.31050097644885893</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240624 16:55:49.473" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/common-chat-template/by/customer
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":{"records":[{"commonContent":"The future belongs to those who believe in the beauty of their dreams."},{"commonContent":"微信号:qianniao"},{"commonContent":"nice to meet you\uD83E\uDD1D\uD83E\uDD1D\uD83E\uDD1D"},{"commonContent":"你做过最开心的事情是什么?"},{"commonContent":"你觉得现在过年还有年味吗?"},{"commonContent":"独门独户不独居,相亲相敬常相知。"}],"total":6,"size":10,"current":1,"pages":1}}
</msg>
<msg timestamp="20240624 16:55:49.473" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.426" endtime="20240624 16:55:49.473"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${records}</var>
<arg>${reps.json()['data']}</arg>
<arg>records</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.473" level="INFO">${records} = [{'commonContent': 'The future belongs to those who believe in the beauty of their dreams.'}, {'commonContent': '微信号:qianniao'}, {'commonContent': 'nice to meet you🤝🤝🤝'}, {'commonContent': '你做过最开心的事情是...</msg>
<status status="PASS" starttime="20240624 16:55:49.473" endtime="20240624 16:55:49.473"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${CommonData}</var>
<arg>random.choice(${records})</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240624 16:55:49.473" level="INFO">${CommonData} = {'commonContent': '你觉得现在过年还有年味吗?'}</msg>
<status status="PASS" starttime="20240624 16:55:49.473" endtime="20240624 16:55:49.473"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${commonContent}</var>
<arg>${CommonData}</arg>
<arg>commonContent</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240624 16:55:49.473" level="INFO">${commonContent} = 你觉得现在过年还有年味吗?</msg>
<status status="PASS" starttime="20240624 16:55:49.473" endtime="20240624 16:55:49.473"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${data}</var>
<arg>{"selfMiId":"${selfmiId}","content":"${commonContent}","roomId":"${roomId}"}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240624 16:55:49.473" level="INFO">${data} = {"selfMiId":"970683653929701376","content":"你觉得现在过年还有年味吗?","roomId":"1002658702513278976"}</msg>
<status status="PASS" starttime="20240624 16:55:49.473" endtime="20240624 16:55:49.473"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-cim/user/send/content</arg>
<arg>${data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<msg timestamp="20240624 16:55:49.639" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-cim/user/send/content HTTP/1.1" 200 None</msg>
<msg timestamp="20240624 16:55:49.654" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/send/content
path_url=/dating-agency-cim/user/send/content
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', 'Content-Length': '116'}
body=b'{"selfMiId":"970683653929701376","content":"\xe4\xbd\xa0\xe8\xa7\x89\xe5\xbe\x97\xe7\x8e\xb0\xe5\x9c\xa8\xe8\xbf\x87\xe5\xb9\xb4\xe8\xbf\x98\xe6\x9c\x89\xe5\xb9\xb4\xe5\x91\xb3\xe5\x90\x97\xef\xbc\x9f","roomId":"1002658702513278976"}'
</msg>
<msg timestamp="20240624 16:55:49.654" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/send/content
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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="20240624 16:55:49.654" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240624 16:55:49.473" endtime="20240624 16:55:49.654"/>
</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="20240624 16:55:49.654" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240624 16:55:49.654" endtime="20240624 16:55:49.654"/>
</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="20240624 16:55:49.654" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240624 16:55:49.654" endtime="20240624 16:55:49.654"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${code}==200100</arg>
<arg>log</arg>
<arg>${message}</arg>
<arg>ELSE</arg>
<arg>log</arg>
<arg>消息发送成功</arg>
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
<kw name="Log" library="BuiltIn">
<arg>消息发送成功</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240624 16:55:49.658" level="INFO">消息发送成功</msg>
<status status="PASS" starttime="20240624 16:55:49.658" endtime="20240624 16:55:49.658"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.654" endtime="20240624 16:55:49.658"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.426" endtime="20240624 16:55:49.658"/>
</iter>
<status status="PASS" starttime="20240624 16:55:49.426" endtime="20240624 16:55:49.658"/>
</for>
<status status="PASS" starttime="20240624 16:55:49.426" endtime="20240624 16:55:49.658"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.426" endtime="20240624 16:55:49.659"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.659"/>
</iter>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.659"/>
</for>
<status status="PASS" starttime="20240624 16:55:49.332" endtime="20240624 16:55:49.659"/>
</kw>
<status status="PASS" starttime="20240624 16:55:49.143" endtime="20240624 16:55:49.659"/>
</test>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.660"/>
</suite>
<doc>1、嘉宾和嘉宾聊天
2、嘉宾和红娘聊天</doc>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.660"/>
</suite>
<status status="PASS" starttime="20240624 16:55:49.127" endtime="20240624 16:55:49.661"/>
</suite>
<status status="PASS" starttime="20240624 16:55:48.454" endtime="20240624 16:55:49.662"/>
</suite>
<statistics>
<total>
<stat pass="2" 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-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="1-Applet">Dating-agency.1-Applet</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1" name="7-Chat">Dating-agency.1-Applet.7-Chat</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="Chat">Dating-agency.1-Applet.7-Chat.Chat</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>