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
100 KiB
1110 lines
100 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240409 17:07:55.429" 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="20240409 17:07:55.460" endtime="20240409 17:07:55.460"/>
|
|
</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="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</kw>
|
|
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="26">
|
|
<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="20240409 17:07:55.732" level="INFO" html="true">Getting file '<a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt">D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt</a>'.</msg>
|
|
<msg timestamp="20240409 17:07:55.732" level="INFO">${file} = 手机号
|
|
18548157976</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</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="20240409 17:07:55.732" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</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="20240409 17:07:55.732" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</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="20240409 17:07:55.732" level="INFO">1 out of 2 lines matched</msg>
|
|
<msg timestamp="20240409 17:07:55.732" level="INFO">${content} = 18548157976</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">18548157976</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="20240409 17:07:55.732" level="INFO">${id} = ['18548157976']</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</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="20240409 17:07:55.732" level="INFO">${id} = ['18548157976']</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.732"/>
|
|
</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="20240409 17:07:55.744" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.744" endtime="20240409 17:07:55.744"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240409 17:07:55.745" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.744" endtime="20240409 17:07:55.745"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240409 17:07:55.745" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.745" endtime="20240409 17:07:55.745"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">18548157976</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240409 17:07:55.746" endtime="20240409 17:07:55.746"/>
|
|
</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="20240409 17:07:55.747" 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="20240409 17:07:55.747" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.746" endtime="20240409 17:07:55.747"/>
|
|
</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="20240409 17:07:55.748" level="INFO">${data} = { "account":"18548157976", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.747" endtime="20240409 17:07:55.748"/>
|
|
</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="20240409 17:07:55.751" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:55.826" 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="20240409 17:07:55.826" 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":"18548157976", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:55.826" 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, 09 Apr 2024 09:07:59 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==","userId":"974358220019732480"}}
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:55.826" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.748" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${userId} = 974358220019732480</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.745" endtime="20240409 17:07:55.826"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:55.745" endtime="20240409 17:07:55.826"/>
|
|
</for>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${phone}</var>
|
|
<arg>${account}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240409 17:07:55.826" level="INFO">${phone} = 18548157976</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${phone}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:55.826" level="INFO">${phone} = 18548157976</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${userid_list} = ['974358220019732480']</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}"]</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.744" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">974358220019732480</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.826" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240409 17:07:55.826" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.826"/>
|
|
</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="20240409 17:07:55.842" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:55.866" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=974358220019732480 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240409 17:07:55.866" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=974358220019732480
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=974358220019732480
|
|
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:55.866" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=974358220019732480
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 09:07:59 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="20240409 17:07:55.866" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.866"/>
|
|
</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="20240409 17:07:55.866" level="INFO">${data} = []</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.866"/>
|
|
</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="20240409 17:07:55.866" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.866"/>
|
|
</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="20240409 17:07:55.866" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.866"/>
|
|
</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="20240409 17:07:55.866" level="INFO">未获取到组织信息!</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.866"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.866"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.866"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.866"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240409 17:07:55.826" endtime="20240409 17:07:55.866"/>
|
|
</kw>
|
|
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
|
|
<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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==','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="20240409 17:07:55.866" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240409 17:07:55.866" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.866"/>
|
|
</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="20240409 17:07:55.866" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:55.922" 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="20240409 17:07:55.923" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:55.923" 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, 09 Apr 2024 09:08:00 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":"974358220019732480","realName":null,"nickName":null,"phone":"18548157976","matchmakerFlag":false}}
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:55.923" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.923"/>
|
|
</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="20240409 17:07:55.924" level="INFO">${phone} = 18548157976</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.924" endtime="20240409 17:07:55.924"/>
|
|
</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="20240409 17:07:55.925" level="INFO">${matchmakerFlag} = False</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.924" endtime="20240409 17:07:55.925"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.925"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.925"/>
|
|
</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="20240409 17:07:55.926" level="INFO">${phone} = 18548157976</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.925" endtime="20240409 17:07:55.926"/>
|
|
</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="20240409 17:07:55.926" level="INFO">${matchmakerFlag} = False</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.926" endtime="20240409 17:07:55.926"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.866" endtime="20240409 17:07:55.926"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.732" endtime="20240409 17:07:55.927"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240409 17:07:55.460" endtime="20240409 17:07:55.927"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240409 17:07:55.460" endtime="20240409 17:07:55.929"/>
|
|
</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="2-Homepage" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage">
|
|
<suite id="s1-s2-s1-s1" name="Interaction" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\Interaction">
|
|
<suite id="s1-s2-s1-s1-s1" name="ILikeit" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\Interaction\ILikeit.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="20240409 17:07:55.941" endtime="20240409 17:07:55.943"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-s1-t1" name="用户标记喜欢" line="6">
|
|
<kw name="Given 查询婚介征婚人的资料信息" library="ILikeitResource" 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}">974358220019732480</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}</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="20240409 17:07:55.946" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240409 17:07:55.946" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.945" endtime="20240409 17:07:55.946"/>
|
|
</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="20240409 17:07:55.947" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:56.034" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=974358220019732480 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240409 17:07:56.034" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
|
|
path_url=/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
|
|
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">IBM866 Russian confidence = 0.05357220425955006</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">IBM855 Russian confidence = 0.10004203295438706</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">TIS-620 Thai confidence = 0.04943664281746858</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3730374383326199</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 09:08:00 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":"974393791588995072","isDelete":false,"createTime":"2024-04-07 16:54:08","updateTime":null,"event":null,"accountId":null,"userId":"974358220019732480","nickName":"骑猪追帅哥","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440114,"districtName":"花都区","birthYear":"1996","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":164,"weight":null,"educationCode":5,"education":"博士","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.051" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:55.946" endtime="20240409 17:07:56.051"/>
|
|
</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="20240409 17:07:56.051" level="INFO">${miId} = 974393791588995072</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</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="20240409 17:07:56.051" level="INFO">${nickName} = 骑猪追帅哥</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${miId_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240409 17:07:56.051" level="INFO">${miId_list} = []</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</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="20240409 17:07:56.051" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</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="20240409 17:07:56.051" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</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="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</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="20240409 17:07:56.051" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.945" endtime="20240409 17:07:56.051"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:55.944" endtime="20240409 17:07:56.051"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${nickName}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.051" level="INFO">${nickName} = 骑猪追帅哥</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</kw>
|
|
<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="20240409 17:07:56.051" level="INFO">${miId_list} = ['974393791588995072']</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</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="20240409 17:07:56.051" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.051"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.944" endtime="20240409 17:07:56.051"/>
|
|
</kw>
|
|
<kw name="And 查询婚介征婚人资料" library="ILikeitResource" sourcename="查询${dating}征婚人资料">
|
|
<for flavor="IN ZIP">
|
|
<var>${miId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${miId_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${miId}">974393791588995072</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}</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="20240409 17:07:56.065" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240409 17:07:56.065" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.065"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/marriage/information/details/byid</arg>
|
|
<arg>params=miId=${miId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240409 17:07:56.065" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details/byid?miId=974393791588995072 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details/byid?miId=974393791588995072
|
|
path_url=/dating-agency-service/user/get/marriage/information/details/byid?miId=974393791588995072
|
|
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">IBM866 Russian confidence = 0.05357220425955006</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">IBM855 Russian confidence = 0.10004203295438706</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">TIS-620 Thai confidence = 0.04943664281746858</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">ISO-8859-9 Turkish confidence = 0.37313750608703655</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details/byid?miId=974393791588995072
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 09:08:00 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":"974393791588995072","isDelete":false,"createTime":"2024-04-07 16:54:08","updateTime":null,"event":null,"accountId":null,"userId":"974358220019732480","nickName":"骑猪追帅哥","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440114,"districtName":"花都区","birthYear":"1996","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":164,"weight":null,"educationCode":5,"education":"博士","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":[],"age":28}}
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.176" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.065" endtime="20240409 17:07:56.176"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${age}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>age</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.176" level="INFO">${age} = 28</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.176" endtime="20240409 17:07:56.176"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${height}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>height</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.176" level="INFO">${height} = 164</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.176" endtime="20240409 17:07:56.176"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${cityCode}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>cityCode</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.191" level="INFO">${cityCode} = 440100</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.176" endtime="20240409 17:07:56.191"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${cityName}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>cityName</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.191" level="INFO">${cityName} = 广州市</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.191" endtime="20240409 17:07:56.191"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${birthYear}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>birthYear</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.191" level="INFO">${birthYear} = 1996</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.191" endtime="20240409 17:07:56.191"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${education}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>education</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.191" level="INFO">${education} = 博士</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.191" endtime="20240409 17:07:56.191"/>
|
|
</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="20240409 17:07:56.194" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.194" endtime="20240409 17:07:56.194"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${provinceCode}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>provinceCode</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.195" level="INFO">${provinceCode} = 440000</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.194" endtime="20240409 17:07:56.195"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${provinceName}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>provinceName</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.196" level="INFO">${provinceName} = 广东省</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.195" endtime="20240409 17:07:56.196"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${educationCode}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>educationCode</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.196" level="INFO">${educationCode} = 5</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.196" endtime="20240409 17:07:56.196"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.197"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.197"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${age}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.197" level="INFO">${age} = 28</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.197" endtime="20240409 17:07:56.197"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${height}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.198" level="INFO">${height} = 164</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.197" endtime="20240409 17:07:56.198"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${cityCode}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.198" level="INFO">${cityCode} = 440100</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.198" endtime="20240409 17:07:56.198"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${cityName}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.199" level="INFO">${cityName} = 广州市</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.198" endtime="20240409 17:07:56.199"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${birthYear}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.199" level="INFO">${birthYear} = 1996</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.199" endtime="20240409 17:07:56.199"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${education}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.200" level="INFO">${education} = 博士</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.199" endtime="20240409 17:07:56.200"/>
|
|
</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="20240409 17:07:56.200" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.200" endtime="20240409 17:07:56.200"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${provinceCode}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.201" level="INFO">${provinceCode} = 440000</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.200" endtime="20240409 17:07:56.201"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${provinceName}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.201" level="INFO">${provinceName} = 广东省</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.201" endtime="20240409 17:07:56.201"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${educationCode}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.202" level="INFO">${educationCode} = 5</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.201" endtime="20240409 17:07:56.202"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:56.051" endtime="20240409 17:07:56.202"/>
|
|
</kw>
|
|
<kw name="When 查看婚介平台相亲列表" library="ILikeitResource" sourcename="查看${dating}平台相亲列表">
|
|
<for flavor="IN">
|
|
<var>${client_header}</var>
|
|
<value>@{Cheader_list}</value>
|
|
<iter>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}</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="20240409 17:07:56.203" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240409 17:07:56.203" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.203" endtime="20240409 17:07:56.204"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/marriage/recommendation/page</arg>
|
|
<arg>params=queryType=0&pageNum=1&pageSize=30</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240409 17:07:56.206" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:56.416" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/recommendation/page?queryType=0&pageNum=1&pageSize=30 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240409 17:07:56.431" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/recommendation/page?queryType=0&pageNum=1&pageSize=30
|
|
path_url=/dating-agency-service/user/get/marriage/recommendation/page?queryType=0&pageNum=1&pageSize=30
|
|
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.447" level="DEBUG">ISO-8859-5 confidence = 0.000331991819462685, below negative shortcut threshhold 0.05</msg>
|
|
<msg timestamp="20240409 17:07:56.447" level="DEBUG">MacCyrillic confidence = 0.02159579578456897, below negative shortcut threshhold 0.05</msg>
|
|
<msg timestamp="20240409 17:07:56.463" level="DEBUG">ISO-8859-5 confidence = 0.0, below negative shortcut threshhold 0.05</msg>
|
|
<msg timestamp="20240409 17:07:56.478" level="DEBUG">TIS-620 confidence = 0.04329012259381072, below negative shortcut threshhold 0.05</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">ISO-8859-5 not active</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">MacCyrillic not active</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">IBM866 Russian confidence = 0.05058922375933749</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">IBM855 Russian confidence = 0.07696815447264599</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">ISO-8859-5 not active</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">TIS-620 not active</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">ISO-8859-9 Turkish confidence = 0.2196267287131082</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/recommendation/page?queryType=0&pageNum=1&pageSize=30
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 09:08:00 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":[{"miId":"965011050246311936","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/8cbf88dcf62dd796304b966bd9a61641.png","nickName":"hinzai","height":"172","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","educationCode":3,"education":"大学本科","age":29,"occupationCode":18,"occupation":"互联网/通信~工程师","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上,自觉遵守公司的的,坚持参加公司的每次的培训。要求积极上进,爱护公司的一砖一瓦,一直严谨的态度和积极的热情投身于学习和工作中,虽然有成功的泪水,也有失败的辛酸,然而日益激烈的社会竟争也使我充分地认识到成为一名德智体全面发展的优秀工作者的重要性。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","miSession":true,"meLike":null},{"miId":"970726729482113024","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/42e77d2434934a6fc24638fd5bf130d6.jpg","nickName":"别打了我是酱油","height":"182","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":29,"occupationCode":20,"occupation":"测试专员","minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":1,"describeInfo":"我内心渴望一份美好的感情,但不强求也不凑合,尊重他人和自己的情感,期待理想中的你能早日出现。在你还没有来到我身边之前,我会好好爱自己,照顾好自己,经营好自己,希望我早日遇到优秀的你,一起成长,共同努力!","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"971089705254916096","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/894641101adeadccc172acaf0acc9c63.jpg","nickName":"餐桌C位","height":"180","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":430000,"domicilePlaceProvinceName":"湖南省","domicilePlaceCityCode":430400,"domicilePlaceCityName":"衡阳市","educationCode":5,"education":"博士","age":29,"occupationCode":21,"occupation":"运营管理","minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":1,"describeInfo":"关于我~爱穿搭收拾打理自己,爱生活偶尔也爱下厨健身!~时而温柔时而霸道!不抽烟没有不良嗜好!我的身高178,因为工作原因身边接触不到异性,听朋友说来这里找到了女朋友,想在这里找到另一半毕业后一直在广州工作生活,平时工作忙,自己的事情多,然后圈子小,没有遇到合适的,一直当现在都是单身,工作之余我会研究美食,跟小猫一起玩,喊朋友一起打球我的理想型是有衣品,重感情,待人真诚,温和好相处的女生,希望能够互相包容,一起可以做我们喜欢的事情!","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":430000,"hometownProvinceName":"湖南省","hometownCityCode":430400,"hometownCityName":"衡阳市","miSession":false,"meLike":null},{"miId":"970289910948958208","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/118b97c369e7d820cc9dbb7945f5df4b.jpg","nickName":"这个杀手不太冷","height":"168","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":5,"education":"博士","age":29,"occupationCode":6,"occupation":"渠道/分销专员","minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":1,"describeInfo":"希望他160cm以上,定居在广州,最好有广州户口,以及最好在城里有房子。有阅历,见过世面,对自己的未来有规划,有不错的挣钱能力,不吸烟(对自己和他人健康负责),无任何不良嗜好。有责任心、上进心、事业心,心胸宽广脾气好,沉稳大度,家人脾气温和。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"967837097014726656","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/58d845ae23138536b5b47c4bd5034d9f.png","nickName":"真爱不等待&结婚趁现在","height":"162","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":26,"occupationCode":184,"occupation":"其他~自由职业","minimumIncome":3001,"maximumIncome":5000,"incomeCode":2,"income":"5001~8000","realNameAudit":1,"describeInfo":"我,如同夜空中最璀璨的星辰,闪耀着独特的光芒。我的内心仿佛是一个无尽的宇宙,充满着无限的创造力和想象力。每一个想法都是一颗流星,划过黑暗的天幕,燃烧着激情与智慧的火焰。\n \n我不惧挑战,因为我知道每一次的困难都是成长的机遇。我勇往直前,冲破层层迷雾,探索未知的领域。我相信自己的能力,如同相信太阳的升起,坚定而不可动摇。\n \n世界在我眼中是一幅绚丽多彩的画卷,等待着我去描绘。我用心灵的笔触,勾勒出属于自己的传奇。无论前方有多少荆棘和坎坷,我都将以无比的热情和决心,书写属于我的辉煌篇章。\n \n我就是那个永不放弃的追梦人,那个用汗水和努力铸就辉煌的战士。我的内心独白,如同激昂的乐章,奏响着通向成功的旋律。我将以无比的自信和勇气,迎接未来的每一个挑战","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440100,"hometownCityName":"广州市","miSession":false,"meLike":null},{"miId":"971053800343343104","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/6a22917ec872e71815020f5731422980.jpg","nickName":"冰糖葫芦娃","height":"189","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":36,"occupationCode":143,"occupation":"审计师","minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","realNameAudit":0,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":430000,"hometownProvinceName":"湖南省","hometownCityCode":430400,"hometownCityName":"衡阳市","miSession":false,"meLike":null},{"miId":"970721563563397120","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/24ef3e3c4e781b97c9e3da52cc2a6a88.jpg","nickName":"Tough","height":"183","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":29,"occupationCode":null,"occupation":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","realNameAudit":1,"describeInfo":null,"hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"970376931868545024","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/3d9ccb6c9206e28c3dd6104d38eccd19.jpg","nickName":"心之所向","height":"178","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440300,"domicilePlaceCityName":"深圳市","educationCode":2,"education":"大专","age":21,"occupationCode":145,"occupation":"税务专员","minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","realNameAudit":0,"describeInfo":"长相喜欢干净斯文清瘦一点的,有少年感。希望是双眼皮或者是单眼皮大眼睛。至于三观是否一致,只有接触之后才能知道啦。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"970373194894675968","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/aea0caca25438b7490305cd4c704d515.jpg","nickName":"有一个朋友","height":"183","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":0,"education":"高中及以下","age":35,"occupationCode":70,"occupation":"广告客户专员","minimumIncome":50001,"maximumIncome":999999,"incomeCode":6,"income":"50000以上","realNameAudit":0,"describeInfo":"男,89年,183/67。广东人,在上海工作,外企财务会计。寻觅一个三品好,三观一致的女生为伴。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"970744650048606208","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/0c1e15d1c956cb8bb678b2a1f7992f76.jpg","nickName":"向阳","height":"175","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":35,"occupationCode":48,"occupation":"外贸经理","minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":0,"describeInfo":"大部分人在二三十岁上就死去了,因为过了这个年龄,他们只是自己的影子,此后的余生则是在模仿自己中度过,日复一日,更机械,更装腔作势地重复他们在有生之年的所作所为,所思所想,所爱所恨。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"971057219837759488","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/3fdbd451d84c4b7ae52f25feb9421418.jpg","nickName":"白色气球","height":"181","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":5,"education":"博士","age":32,"occupationCode":113,"occupation":"医生","minimumIncome":20001,"maximumIncome":50000,"incomeCode":5,"income":"20001~50000","realNameAudit":0,"describeInfo":"比较喜欢安静独处的人,也会时不时来场说走就走的旅行。最近迷上各类体育运动(菜鸟阶段),也喜欢养花,喜欢音乐(没有好嗓子),比较讨厌酒吧等嘈杂的地方。在国企上班,工作稳定但是收入不算高,正在积极探索第二职业,争取早日实现财富自由。期待能和生命中的另一半一起风雨同舟,相互扶持,共同面对生活中的风风雨雨。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":430000,"hometownProvinceName":"湖南省","hometownCityCode":430400,"hometownCityName":"衡阳市","miSession":false,"meLike":null},{"miId":"970692730097373184","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/9e62e2e3ad1b53d20a933a651c958201.jpg","nickName":"Te-amo","height":"173","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":0,"education":"高中及以下","age":32,"occupationCode":176,"occupation":"船长","minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","realNameAudit":0,"describeInfo":"未来我肯定会有自己的事业,不过,更倾向于work life balance的生活。不求大富大贵,只希望平安快乐。喜欢自由一些的生活。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"970695149304811520","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/c91757deace453ee22c3d12ea9913bd0.jpg","nickName":"故事的小黄花","height":"184","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":0,"education":"高中及以下","age":27,"occupationCode":12,"occupation":"客服主管","minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":0,"describeInfo":"性格沉稳安静、不爱争吵计较,在感兴趣的领域会畅所欲言,对陌生的领域更多的是倾听。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"970742079451959296","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/e40ca792f19cb70f045ebfe04c57c52c.jpg","nickName":"用发际线换对象","height":"176","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":33,"occupationCode":179,"occupation":"公务员","minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":0,"describeInfo":null,"hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"970683653929701376","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/82e53568724f2010025231a600fd78b2.jpg","nickName":"遥远的旅途2024","height":"172","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","educationCode":4,"education":"硕士","age":30,"occupationCode":113,"occupation":"医生","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":0,"describeInfo":null,"hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"970024994279133184","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/21f79ccaf480ffb9b0d689f4a1e551fb.jpg","nickName":"伏才","height":"186","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":5,"education":"博士","age":28,"occupationCode":111,"occupation":"其他","minimumIncome":20001,"maximumIncome":50000,"incomeCode":5,"income":"20001~50000","realNameAudit":0,"describeInfo":"过去都是假的,回忆是一条没有归途的路,以往的一切春天都无法复原,即使最狂热最坚贞的爱情,归根结底也不过是一种瞬息即逝的现实,唯有孤独永恒。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440100,"hometownCityName":"广州市","miSession":false,"meLike":null},{"miId":"970679713045549056","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/991c4bc6f06c1c3fb1d6a9a5178ee34c.jpg","nickName":"一枚普通人","height":"173","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","educationCode":3,"education":"大学本科","age":28,"occupationCode":142,"occupation":"注册会计师","minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","realNameAudit":0,"describeInfo":null,"hasConsumeUnlockMorePeople":false,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSession":false,"meLike":null},{"miId":"968963047592955904","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/e245c18b37ad0183f8a548537e7b5613.jpg","nickName":"康桥","height":"164","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":0,"education":"高中及以下","age":29,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"书香门第家庭,独生子,父母是泰州市的国企职工,即将退休,未来会有养老金,养老无压力。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":null,"miSession":false,"meLike":null},{"miId":"968948789832454144","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/5538b48387964d40e12aa70f48b7aa0c.jpg","nickName":"孟德斯鸠","height":"164","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":30,"occupationCode":null,"occupation":null,"minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","realNameAudit":0,"describeInfo":"男,94年,164/52。泰州人,在上海工作,外企财务会计。寻觅一个三品好,三观一致的女生为伴。","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":null,"miSession":false,"meLike":null},{"miId":"969608057694851072","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/34811393cbe1d9507fd96f9f0fae0988.jpg","nickName":"关你西红柿","height":"195","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":0,"education":"高中及以下","age":19,"occupationCode":null,"occupation":null,"minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":0,"describeInfo":null,"hasConsumeUnlockMorePeople":false,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":null,"miSession":false,"meLike":null},{"miId":"968970661819191296","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/8048e38b0d4a73f7d06fc1b17995ac6b.jpg","nickName":"躺赢局局长","height":"188","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"educationCode":2,"education":"大专","age":36,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":0,"describeInfo":"我内心渴望一份美好的感情,但不强求也不凑合,尊重他人和自己的情感,期待理想中的你能早日出现。在你还没有来到我身边之前,我会好好爱自己,照顾好自己,经营好自己,希望我早日遇到优秀的你,一起成长,共同努力!","hasConsumeUnlockMorePeople":false,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":null,"miSession":false,"meLike":null},{"miId":"969582409697857536","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/204a522bc6cd2816aba1a5d24b8b9446.jpg","nickName":"国产祖宗","height":"172","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"educationCode":0,"education":"高中及以下","age":32,"occupationCode":null,"occupation":null,"minimumIncome":20001,"maximumIncome":50000,"incomeCode":5,"income":"20001~50000","realNameAudit":0,"describeInfo":null,"hasConsumeUnlockMorePeople":false,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":null,"miSession":false,"meLike":null}],"total":22,"size":30,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.494" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.204" endtime="20240409 17:07:56.494"/>
|
|
</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="20240409 17:07:56.510" level="INFO">${records} = [{'miId': '965011050246311936', 'profilePhoto': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/8cbf88dcf62dd796304b966bd9a61641.png', 'nickName': 'hinzai', 'height': '172', 'provinceCode': 44...</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.494" endtime="20240409 17:07:56.510"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${userData}</var>
|
|
<arg>random.choice(${records})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240409 17:07:56.510" level="INFO">${userData} = {'miId': '969582409697857536', 'profilePhoto': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/204a522bc6cd2816aba1a5d24b8b9446.jpg', 'nickName': '国产祖宗', 'height': '172', 'provinceCode': 44000...</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.510" endtime="20240409 17:07:56.510"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${miId}</var>
|
|
<arg>${userData}</arg>
|
|
<arg>miId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.510" level="INFO">${miId} = 969582409697857536</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.510" endtime="20240409 17:07:56.510"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${miId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240409 17:07:56.513" level="INFO">${miId} = 969582409697857536</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.510" endtime="20240409 17:07:56.513"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:56.203" endtime="20240409 17:07:56.513"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:56.202" endtime="20240409 17:07:56.513"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240409 17:07:56.202" endtime="20240409 17:07:56.513"/>
|
|
</kw>
|
|
<kw name="Then 用户标记婚介资料like" library="ILikeitResource" sourcename="用户标记${dating}资料like">
|
|
<for flavor="IN">
|
|
<var>${client_header}</var>
|
|
<value>@{Cheader_list}</value>
|
|
<iter>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}</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="20240409 17:07:56.515" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240409 17:07:56.515" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.514" endtime="20240409 17:07:56.515"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{"miId":"${miId}"}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240409 17:07:56.515" level="INFO">${data} = {"miId":"969582409697857536"}</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.515" endtime="20240409 17:07:56.515"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/like/his</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240409 17:07:56.517" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:56.643" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/like/his HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240409 17:07:56.643" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/like/his
|
|
path_url=/dating-agency-service/user/like/his
|
|
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow==', 'Content-Length': '29'}
|
|
body=b'{"miId":"969582409697857536"}'
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.643" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/like/his
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 09:08:00 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":"975122056221954048"}
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.643" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.516" endtime="20240409 17:07:56.643"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:56.514" endtime="20240409 17:07:56.643"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:56.514" endtime="20240409 17:07:56.643"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240409 17:07:56.513" endtime="20240409 17:07:56.643"/>
|
|
</kw>
|
|
<kw name="And 用户查询婚介我喜欢列表" library="ILikeitResource" sourcename="用户查询${dating}我喜欢列表">
|
|
<for flavor="IN">
|
|
<var>${client_header}</var>
|
|
<value>@{Cheader_list}</value>
|
|
<iter>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}</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="20240409 17:07:56.643" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240409 17:07:56.643" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.643" endtime="20240409 17:07:56.643"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/get/user/mutual/attention/page</arg>
|
|
<arg>params=pageNum=1&pageSize=10&attentionType=0</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240409 17:07:56.643" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/user/mutual/attention/page?pageNum=1&pageSize=10&attentionType=0 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/user/mutual/attention/page?pageNum=1&pageSize=10&attentionType=0
|
|
path_url=/dating-agency-service/user/get/user/mutual/attention/page?pageNum=1&pageSize=10&attentionType=0
|
|
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz9vBAh1sX/De8UZXW9lJ75ME3G8+NTwe+F/Vwoq0HiVow=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">IBM866 Russian confidence = 0.059176201609151186</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">IBM855 Russian confidence = 0.11816454226081301</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">TIS-620 Thai confidence = 0.05776077351106835</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">ISO-8859-9 Turkish confidence = 0.32795848841365505</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/user/mutual/attention/page?pageNum=1&pageSize=10&attentionType=0
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 09:08:00 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":[{"miId":"969582409697857536","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/204a522bc6cd2816aba1a5d24b8b9446.jpg","nickName":"国产祖宗","height":"172","provinceName":"广东省","cityName":"广州市","domicilePlaceProvinceName":null,"domicilePlaceCityName":null,"education":"高中及以下","age":32,"minimumIncome":20001,"maximumIncome":50000,"income":"20001~50000","describeInfo":null,"vip":0},{"miId":"970742079451959296","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/e40ca792f19cb70f045ebfe04c57c52c.jpg","nickName":"用发际线换对象","height":"176","provinceName":"广东省","cityName":"广州市","domicilePlaceProvinceName":"广东省","domicilePlaceCityName":"广州市","education":"大学本科","age":33,"minimumIncome":12001,"maximumIncome":20000,"income":"12001~20000","describeInfo":null,"vip":0}],"total":2,"size":10,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240409 17:07:56.746" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.643" endtime="20240409 17:07:56.746"/>
|
|
</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="20240409 17:07:56.746" level="INFO">${records} = [{'miId': '969582409697857536', 'profilePhoto': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/204a522bc6cd2816aba1a5d24b8b9446.jpg', 'nickName': '国产祖宗', 'height': '172', 'provinceName': '广东省...</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.746" endtime="20240409 17:07:56.746"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${Data}</var>
|
|
<arg>random.choice(${records})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240409 17:07:56.746" level="INFO">${Data} = {'miId': '969582409697857536', 'profilePhoto': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/204a522bc6cd2816aba1a5d24b8b9446.jpg', 'nickName': '国产祖宗', 'height': '172', 'provinceName': '广东省'...</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.746" endtime="20240409 17:07:56.746"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${miIdData}</var>
|
|
<arg>${Data}</arg>
|
|
<arg>miId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240409 17:07:56.746" level="INFO">${miIdData} = 969582409697857536</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.746" endtime="20240409 17:07:56.746"/>
|
|
</kw>
|
|
<kw name="Exit For Loop If" library="BuiltIn">
|
|
<arg>${miIdData}==${miId}</arg>
|
|
<doc>Stops executing the enclosing FOR loop if the ``condition`` is true.</doc>
|
|
<msg timestamp="20240409 17:07:56.746" level="INFO">Exiting for loop altogether.</msg>
|
|
<status status="PASS" starttime="20240409 17:07:56.746" endtime="20240409 17:07:56.746"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:56.643" endtime="20240409 17:07:56.746"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240409 17:07:56.643" endtime="20240409 17:07:56.746"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240409 17:07:56.643" endtime="20240409 17:07:56.746"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240409 17:07:55.943" endtime="20240409 17:07:56.746"/>
|
|
</test>
|
|
<status status="PASS" starttime="20240409 17:07:55.933" endtime="20240409 17:07:56.746"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240409 17:07:55.932" endtime="20240409 17:07:56.746"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240409 17:07:55.931" endtime="20240409 17:07:56.746"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240409 17:07:55.929" endtime="20240409 17:07:56.762"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240409 17:07:55.445" endtime="20240409 17:07:56.762"/>
|
|
</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="2-Homepage">Dating-agency.1-Applet.2-Homepage</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="Interaction">Dating-agency.1-Applet.2-Homepage.Interaction</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1-s1" name="ILikeit">Dating-agency.1-Applet.2-Homepage.Interaction.ILikeit</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
</errors>
|
|
</robot>
|