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.
 
 
 

842 lines
57 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240507 11:42:17.094" 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="20240507 11:42:17.126" endtime="20240507 11:42:17.126"/>
</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="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</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="20240507 11:42:17.534" 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="20240507 11:42:17.534" level="INFO">${file} = 手机号
19128859944</msg>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</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="20240507 11:42:17.534" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</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="20240507 11:42:17.534" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</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="20240507 11:42:17.534" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240507 11:42:17.534" level="INFO">${content} = 19128859944</msg>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</kw>
<for flavor="IN">
<var>${id}</var>
<value>${content}</value>
<iter>
<var name="${id}">19128859944</var>
<kw name="Split String" library="String">
<var>${id}</var>
<arg>${id}</arg>
<arg>\n</arg>
<doc>Splits the ``string`` using ``separator`` as a delimiter string.</doc>
<msg timestamp="20240507 11:42:17.534" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.534"/>
</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="20240507 11:42:17.544" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.544"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.544"/>
</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="20240507 11:42:17.545" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240507 11:42:17.544" endtime="20240507 11:42:17.545"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240507 11:42:17.545" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240507 11:42:17.545" endtime="20240507 11:42:17.545"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240507 11:42:17.545" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240507 11:42:17.545" endtime="20240507 11:42:17.546"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${phoneList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240507 11:42:17.546" level="INFO">${phoneList} = []</msg>
<status status="PASS" starttime="20240507 11:42:17.546" endtime="20240507 11:42:17.546"/>
</kw>
<for flavor="IN">
<var>${account}</var>
<value>@{id}</value>
<iter>
<var name="${account}">19128859944</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240507 11:42:17.547" endtime="20240507 11:42:17.547"/>
</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="20240507 11:42:17.548" 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="20240507 11:42:17.548" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240507 11:42:17.547" endtime="20240507 11:42:17.548"/>
</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="20240507 11:42:17.548" level="INFO">${data} = { "account":"19128859944", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240507 11:42:17.548" endtime="20240507 11:42:17.549"/>
</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="20240507 11:42:17.552" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240507 11:42:17.653" 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="20240507 11:42:17.653" 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="20240507 11:42:17.653" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 07 May 2024 03:42:17 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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==","userId":"984445097062043648"}}
</msg>
<msg timestamp="20240507 11:42:17.653" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.549" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${userId} = 984445097062043648</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</kw>
<kw name="Log" library="BuiltIn">
<arg>${login_header}</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240507 11:42:17.653" level="INFO">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==','X-Organization-Id':'963432943739605555'}</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA=='}</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.546" endtime="20240507 11:42:17.653"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.546" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${phoneList} = ['19128859944']</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${userid_list} = ['984445097062043648']</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA=='}"]</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.653" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240507 11:42:17.653" endtime="20240507 11:42:17.653"/>
</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="20240507 11:42:17.668" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA=='}</msg>
<status status="PASS" starttime="20240507 11:42:17.668" endtime="20240507 11:42:17.668"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.544" endtime="20240507 11:42:17.668"/>
</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="20240507 11:42:17.668" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240507 11:42:17.668" endtime="20240507 11:42:17.668"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${login_header}</var>
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">984445097062043648</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240507 11:42:17.668" endtime="20240507 11:42:17.668"/>
</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="20240507 11:42:17.672" 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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240507 11:42:17.672" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240507 11:42:17.668" endtime="20240507 11:42:17.672"/>
</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="20240507 11:42:17.673" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=984445097062043648 HTTP/1.1" 200 None</msg>
<msg timestamp="20240507 11:42:17.693" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=984445097062043648
path_url=/dating-agency-uec/user/list/own-organization?userId=984445097062043648
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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">windows-1253 Greek confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">ISO-8859-9 Turkish confidence = 0.2794564987311486</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.693" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.708" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.708" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.708" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.708" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=984445097062043648
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 07 May 2024 03:42:17 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":"趣招亲","shortName":"趣招亲"}]}
</msg>
<msg timestamp="20240507 11:42:17.708" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.672" endtime="20240507 11:42:17.708"/>
</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="20240507 11:42:17.708" level="INFO">${data} = [{'orgId': '963432943739605555', 'fullName': '趣招亲', 'shortName': '趣招亲'}]</msg>
<status status="PASS" starttime="20240507 11:42:17.708" endtime="20240507 11:42:17.708"/>
</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="20240507 11:42:17.708" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240507 11:42:17.708" endtime="20240507 11:42:17.708"/>
</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="20240507 11:42:17.708" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.708" endtime="20240507 11:42:17.708"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${data}==[]</arg>
<arg>log</arg>
<arg>未获取到组织信息!</arg>
<arg>ELSE</arg>
<arg>log</arg>
<arg>${data}</arg>
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
<kw name="Log" library="BuiltIn">
<arg>${data}</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240507 11:42:17.708" level="INFO">[{'orgId': '963432943739605555', 'fullName': '趣招亲', 'shortName': '趣招亲'}]</msg>
<status status="PASS" starttime="20240507 11:42:17.708" endtime="20240507 11:42:17.708"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.708" endtime="20240507 11:42:17.713"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.668" endtime="20240507 11:42:17.713"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.668" endtime="20240507 11:42:17.713"/>
</for>
<status status="PASS" starttime="20240507 11:42:17.668" endtime="20240507 11:42:17.713"/>
</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="20240507 11:42:17.714" level="INFO">${matchmakerFlagList} = []</msg>
<status status="PASS" starttime="20240507 11:42:17.714" endtime="20240507 11:42:17.714"/>
</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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==','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="20240507 11:42:17.715" 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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240507 11:42:17.715" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240507 11:42:17.714" endtime="20240507 11:42:17.715"/>
</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="20240507 11:42:17.716" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240507 11:42:17.749" 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="20240507 11:42:17.749" 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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-JP Japanese prober hit error at byte 84</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">GB2312 Chinese prober hit error at byte 93</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-KR Korean prober hit error at byte 84</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">CP949 Korean prober hit error at byte 84</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">Big5 Chinese prober hit error at byte 85</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-TW Taiwan prober hit error at byte 84</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">utf-8 confidence = 0.87625</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-JP not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">GB2312 not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-KR not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">CP949 not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">Big5 not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-TW not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">ISO-8859-5 Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">IBM866 Russian confidence = 0.15928260933129862</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">IBM855 Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">ISO-8859-7 Greek confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">windows-1253 Greek confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">windows-1251 Bulgarian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">ISO-8859-9 Turkish confidence = 0.45166295398184836</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">utf-8 confidence = 0.87625</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-JP not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">GB2312 not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-KR not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">CP949 not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">Big5 not active</msg>
<msg timestamp="20240507 11:42:17.749" level="DEBUG">EUC-TW not active</msg>
<msg timestamp="20240507 11:42:17.749" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 07 May 2024 03:42:17 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":"984445097062043648","realName":"嘉宾2号","nickName":null,"phone":"19128859944","matchmakerFlag":false}}
</msg>
<msg timestamp="20240507 11:42:17.749" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.715" endtime="20240507 11:42:17.749"/>
</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="20240507 11:42:17.765" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240507 11:42:17.749" endtime="20240507 11:42:17.765"/>
</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="20240507 11:42:17.765" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240507 11:42:17.765" endtime="20240507 11:42:17.765"/>
</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="20240507 11:42:17.765" endtime="20240507 11:42:17.765"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.714" endtime="20240507 11:42:17.765"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.714" endtime="20240507 11:42:17.765"/>
</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="20240507 11:42:17.765" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240507 11:42:17.765" endtime="20240507 11:42:17.765"/>
</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="20240507 11:42:17.765" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240507 11:42:17.765" endtime="20240507 11:42:17.765"/>
</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="20240507 11:42:17.765" level="INFO">${matchmakerFlagList} = [False]</msg>
<status status="PASS" starttime="20240507 11:42:17.765" endtime="20240507 11:42:17.765"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.713" endtime="20240507 11:42:17.765"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.534" endtime="20240507 11:42:17.765"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240507 11:42:17.126" endtime="20240507 11:42:17.765"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240507 11:42:17.126" endtime="20240507 11:42:17.765"/>
</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="Invite" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\Invite">
<suite id="s1-s2-s1-s1" name="Invite" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\Invite\Invite.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="20240507 11:42:17.780" endtime="20240507 11:42:17.780"/>
</kw>
<test id="s1-s2-s1-s1-t1" name="红娘邀请嘉宾" line="6">
<kw name="Given 红娘邀请婚介用户成为嘉宾" library="InviteResource" sourcename="红娘邀请${dating}用户成为嘉宾">
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${client_header}</var>
<value>${userid_list}</value>
<value>${Cheader_list}</value>
<iter>
<var name="${userId}">984445097062043648</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA=='}</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="20240507 11:42:17.780" 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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240507 11:42:17.780" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.780"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${matchmakerUserId}</var>
<arg>977568001438126080</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240507 11:42:17.780" level="INFO">${matchmakerUserId} = 977568001438126080</msg>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.780"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${data}</var>
<arg>{"initiatorUserId":${matchmakerUserId}}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240507 11:42:17.780" level="INFO">${data} = {"initiatorUserId":977568001438126080}</msg>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.780"/>
</kw>
<kw name="Post Request" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-service/user/save/matchmaker/invite/user?userId=${userId}</arg>
<arg>${data.encode('utf-8')}</arg>
<doc>*DEPRECATED* Please use `POST On Session` instead.</doc>
<msg timestamp="20240507 11:42:17.780" level="WARN">Keyword 'RequestsLibrary.Post Request' is deprecated. Please use `POST On Session` instead.</msg>
<msg timestamp="20240507 11:42:17.780" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240507 11:42:17.845" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/save/matchmaker/invite/user?userId=984445097062043648 HTTP/1.1" 200 None</msg>
<msg timestamp="20240507 11:42:17.845" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/matchmaker/invite/user?userId=984445097062043648
path_url=/dating-agency-service/user/save/matchmaker/invite/user?userId=984445097062043648
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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==', 'Content-Length': '38'}
body=b'{"initiatorUserId":977568001438126080}'
</msg>
<msg timestamp="20240507 11:42:17.845" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/matchmaker/invite/user?userId=984445097062043648
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 07 May 2024 03:42:17 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="20240507 11:42:17.845" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.845"/>
</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="20240507 11:42:17.845" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.845"/>
</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="20240507 11:42:17.845" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.845"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.845"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.845"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmakerUserId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240507 11:42:17.845" level="INFO">${matchmakerUserId} = 977568001438126080</msg>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.845"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.845"/>
</kw>
<kw name="When 后台查询婚介红娘列表" library="InviteResource" sourcename="后台查询${dating}红娘列表">
<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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==','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="20240507 11:42:17.845" 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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240507 11:42:17.845" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.845"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-uec/user/page/matchmaker</arg>
<arg>params=pageSize=10&amp;pageNum=1</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240507 11:42:17.861" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240507 11:42:17.908" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/page/matchmaker?pageSize=10&amp;pageNum=1 HTTP/1.1" 200 None</msg>
<msg timestamp="20240507 11:42:17.908" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/page/matchmaker?pageSize=10&amp;pageNum=1
path_url=/dating-agency-uec/user/page/matchmaker?pageSize=10&amp;pageNum=1
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/g6O5DXHixyNrf7tnAn13ZeueImXdcl5AcFrkbfhgvtcv9N5t9ZMPpiJawAhes/PQQ0iiOeA7wDWfjrFA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.914" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">MacCyrillic Russian confidence = 0.008374978466824234</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">IBM866 Russian confidence = 0.0227546584758998</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">IBM855 Russian confidence = 0.1138903430918236</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">TIS-620 Thai confidence = 0.010499833347856622</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3668018692448854</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.915" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.916" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240507 11:42:17.916" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/page/matchmaker?pageSize=10&amp;pageNum=1
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 07 May 2024 03:42:17 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":[{"id":"982651594233483264","userId":"977568001438126080","name":"15121074365","phone":"15121074365","identityCard":"662864550556977669","enable":true,"createTime":"2024-04-30 11:47:42","serviceAreaList":[{"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440184,"districtName":"从化市"}]},{"id":"981270314208071680","userId":"978668013433786368","name":"就是不吃饭","phone":"15014242835","identityCard":"441481199509213863","enable":true,"createTime":"2024-04-26 13:59:01","serviceAreaList":[{"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440106,"districtName":"天河区"},{"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区"}]},{"id":"981312240928034816","userId":"968624964985032704","name":"qianniao","phone":"13168550964","identityCard":"44058319951227041X","enable":true,"createTime":"2024-04-25 09:55:29","serviceAreaList":[{"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440105,"districtName":"海珠区"},{"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区"}]},{"id":"980559527067914240","userId":"970781671202885632","name":"李博2","phone":"18565126880","identityCard":"429006198410300956","enable":true,"createTime":"2024-04-24 17:13:55","serviceAreaList":[{"provinceCode":110000,"provinceName":"北京市","cityCode":110100,"cityName":"北京市","districtCode":110101,"districtName":"东城区"}]},{"id":"979784994299973632","userId":"968563840231018496","name":"李博","phone":"18565126880","identityCard":"429006198410300956","enable":false,"createTime":"2024-04-19 17:31:00","serviceAreaList":[{"provinceCode":110000,"provinceName":"北京市","cityCode":110100,"cityName":"北京市","districtCode":110101,"districtName":"东城区"},{"provinceCode":110000,"provinceName":"北京市","cityCode":110100,"cityName":"北京市","districtCode":110106,"districtName":"丰台区"}]}],"total":5,"size":10,"current":1,"pages":1}}
</msg>
<msg timestamp="20240507 11:42:17.916" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.916"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${matchmaker_list}</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="20240507 11:42:17.918" level="INFO">${matchmaker_list} = [{'id': '982651594233483264', 'userId': '977568001438126080', 'name': '15121074365', 'phone': '15121074365', 'identityCard': '662864550556977669', 'enable': True, 'createTime': '2024-04-30 11:47:42', ...</msg>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmaker_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240507 11:42:17.918" level="INFO">${matchmaker_list} = [{'id': '982651594233483264', 'userId': '977568001438126080', 'name': '15121074365', 'phone': '15121074365', 'identityCard': '662864550556977669', 'enable': True, 'createTime': '2024-04-30 11:47:42', ...</msg>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</kw>
<kw name="遍历红娘列表" library="InviteResource">
<for flavor="IN">
<var>${matchmaker}</var>
<value>@{matchmaker_list}</value>
<iter>
<var name="${matchmaker}">{'id': '982651594233483264', 'userId': '977568001438126080', 'name': '15121074365', 'phone': '15121074365', 'identityCard': '662864550556977669', 'enable': True, 'createTime': '2024-04-30 11:47:42', '...</var>
<kw name="Get From Dictionary" library="Collections">
<var>${matchmakerId}</var>
<arg>${matchmaker}</arg>
<arg>id</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240507 11:42:17.918" level="INFO">${matchmakerId} = 982651594233483264</msg>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${userId}</var>
<arg>${matchmaker}</arg>
<arg>userId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240507 11:42:17.918" level="INFO">${userId} = 977568001438126080</msg>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</kw>
<kw name="Exit For Loop If" library="BuiltIn">
<arg>${userId}==${matchmakerUserId}</arg>
<doc>Stops executing the enclosing FOR loop if the ``condition`` is true.</doc>
<msg timestamp="20240507 11:42:17.918" level="INFO">Exiting for loop altogether.</msg>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmakerId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240507 11:42:17.918" level="INFO">${matchmakerId} = 982651594233483264</msg>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.918"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.918"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.918"/>
</for>
<status status="PASS" starttime="20240507 11:42:17.845" endtime="20240507 11:42:17.918"/>
</kw>
<kw name="Then 数据库查询是否邀请成功" library="InviteResource">
<for flavor="IN">
<var>${userId}</var>
<value>@{userid_list}</value>
<iter>
<var name="${userId}">984445097062043648</var>
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'</arg>
<doc>Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
connect to the database using the map string `db_custom_param_string`.</doc>
<msg timestamp="20240507 11:42:17.934" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.973"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check}</var>
<arg>SELECT matchmaker_id FROM `dating_agency_service`.`da_matchmaker_marriage_information` WHERE `user_id` = '${userId}' AND `matchmaker_id` = '${matchmakerId}' AND `is_delete` = '0' AND `relation_type` = '1'</arg>
<doc>Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
input `sansTran` to True to run command without an explicit transaction commit or rollback.
Set optional input `returnAsDict` to True to return values as a list of dictionaries.</doc>
<msg timestamp="20240507 11:42:17.973" level="INFO">Executing : Query | SELECT matchmaker_id FROM `dating_agency_service`.`da_matchmaker_marriage_information` WHERE `user_id` = '984445097062043648' AND `matchmaker_id` = '982651594233483264' AND `is_delete` = '0' AND `relation_type` = '1' </msg>
<msg timestamp="20240507 11:42:17.989" level="INFO">${check} = ((982651594233483264,),)</msg>
<status status="PASS" starttime="20240507 11:42:17.973" endtime="20240507 11:42:17.989"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${matchmaker_id}</var>
<arg>${check[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240507 11:42:17.989" level="INFO">${matchmaker_id} = 982651594233483264</msg>
<status status="PASS" starttime="20240507 11:42:17.989" endtime="20240507 11:42:17.989"/>
</kw>
<kw name="Should Be Equal" library="BuiltIn">
<arg>${matchmaker_id}</arg>
<arg>${matchmakerId}</arg>
<doc>Fails if the given objects are unequal.</doc>
<msg timestamp="20240507 11:42:17.989" level="DEBUG">Argument types are:
&lt;class 'int'&gt;
&lt;class 'int'&gt;</msg>
<status status="PASS" starttime="20240507 11:42:17.989" endtime="20240507 11:42:17.989"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.989"/>
</iter>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.989"/>
</for>
<status status="PASS" starttime="20240507 11:42:17.918" endtime="20240507 11:42:17.989"/>
</kw>
<status status="PASS" starttime="20240507 11:42:17.780" endtime="20240507 11:42:17.989"/>
</test>
<status status="PASS" starttime="20240507 11:42:17.765" endtime="20240507 11:42:17.989"/>
</suite>
<doc>1、红娘邀请加盟
2、红娘邀请嘉宾
3、邀请帮忙认证
4、资料分享</doc>
<status status="PASS" starttime="20240507 11:42:17.765" endtime="20240507 11:42:17.989"/>
</suite>
<status status="PASS" starttime="20240507 11:42:17.765" endtime="20240507 11:42:18.005"/>
</suite>
<status status="PASS" starttime="20240507 11:42:17.094" endtime="20240507 11:42:18.005"/>
</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="Invite">Dating-agency.1-Applet.Invite</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="Invite">Dating-agency.1-Applet.Invite.Invite</stat>
</suite>
</statistics>
<errors>
<msg timestamp="20240507 11:42:17.780" level="WARN">Keyword 'RequestsLibrary.Post Request' is deprecated. Please use `POST On Session` instead.</msg>
</errors>
</robot>