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.
839 lines
66 KiB
839 lines
66 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240518 15:32:24.313" 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="20240518 15:32:24.345" endtime="20240518 15:32:24.345"/>
|
|
</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="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</kw>
|
|
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="27">
|
|
<kw name="Given 读取TXT文件" library="LoginResource">
|
|
<kw name="Get File" library="OperatingSystem">
|
|
<var>${file}</var>
|
|
<arg>D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt</arg>
|
|
<doc>Returns the contents of a specified file.</doc>
|
|
<msg timestamp="20240518 15:32:24.739" 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="20240518 15:32:24.739" level="INFO">${file} = 手机号
|
|
15134891062</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</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="20240518 15:32:24.739" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</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="20240518 15:32:24.739" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</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="20240518 15:32:24.739" level="INFO">1 out of 2 lines matched</msg>
|
|
<msg timestamp="20240518 15:32:24.739" level="INFO">${content} = 15134891062</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">15134891062</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="20240518 15:32:24.739" level="INFO">${id} = ['15134891062']</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</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="20240518 15:32:24.739" level="INFO">${id} = ['15134891062']</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.739"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.753"/>
|
|
</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="20240518 15:32:24.753" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.753" endtime="20240518 15:32:24.753"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240518 15:32:24.754" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.754" endtime="20240518 15:32:24.754"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240518 15:32:24.754" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.754" endtime="20240518 15:32:24.754"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${phoneList}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240518 15:32:24.755" level="INFO">${phoneList} = []</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.754" endtime="20240518 15:32:24.755"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">15134891062</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240518 15:32:24.755" endtime="20240518 15:32:24.755"/>
|
|
</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="20240518 15:32:24.756" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240518 15:32:24.756" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.755" endtime="20240518 15:32:24.756"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{ \ \ "account":"${account}", \ \ "accountType":2, \ \ "captcha":666666 }</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240518 15:32:24.756" level="INFO">${data} = { "account":"15134891062", "accountType":2, "captcha":666666 }</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.756" endtime="20240518 15:32:24.757"/>
|
|
</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="20240518 15:32:24.760" level="DEBUG">Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com</msg>
|
|
<msg timestamp="20240518 15:32:24.793" level="DEBUG">http://dating-agency-api.quzhaoqin.com:80 "POST /dating-agency-uec/authorize/by-captcha HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240518 15:32:24.794" level="INFO">POST Request : url=http://dating-agency-api.quzhaoqin.com/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":"15134891062", "accountType":2, "captcha":666666 }'
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:24.794" level="INFO">POST Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/authorize/by-captcha
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==","userId":"988491861142409216"}}
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:24.794" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.757" endtime="20240518 15:32:24.794"/>
|
|
</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="20240518 15:32:24.795" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.794" endtime="20240518 15:32:24.795"/>
|
|
</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="20240518 15:32:24.796" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.795" endtime="20240518 15:32:24.796"/>
|
|
</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="20240518 15:32:24.797" level="INFO">${userId} = 988491861142409216</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.796" endtime="20240518 15:32:24.797"/>
|
|
</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="20240518 15:32:24.797" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.797" endtime="20240518 15:32:24.797"/>
|
|
</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="20240518 15:32:24.798" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.798" endtime="20240518 15:32:24.798"/>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<arg>${login_header}</arg>
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<msg timestamp="20240518 15:32:24.798" level="INFO">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','X-Organization-Id':'963432943739605555'}</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.798" endtime="20240518 15:32:24.798"/>
|
|
</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="20240518 15:32:24.799" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.798" endtime="20240518 15:32:24.799"/>
|
|
</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="20240518 15:32:24.799" endtime="20240518 15:32:24.799"/>
|
|
</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="20240518 15:32:24.799" endtime="20240518 15:32:24.799"/>
|
|
</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="20240518 15:32:24.800" endtime="20240518 15:32:24.800"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${phoneList}</arg>
|
|
<arg>${account}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240518 15:32:24.800" endtime="20240518 15:32:24.800"/>
|
|
</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="20240518 15:32:24.801" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.801" endtime="20240518 15:32:24.801"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.800" endtime="20240518 15:32:24.801"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.755" endtime="20240518 15:32:24.801"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:24.755" endtime="20240518 15:32:24.801"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${phoneList}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240518 15:32:24.802" level="INFO">${phoneList} = ['15134891062']</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.802" endtime="20240518 15:32:24.802"/>
|
|
</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="20240518 15:32:24.802" level="INFO">${userid_list} = ['988491861142409216']</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.802" endtime="20240518 15:32:24.802"/>
|
|
</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="20240518 15:32:24.803" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.803" endtime="20240518 15:32:24.803"/>
|
|
</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="20240518 15:32:24.803" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}"]</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.803" endtime="20240518 15:32:24.803"/>
|
|
</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="20240518 15:32:24.804" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.804" endtime="20240518 15:32:24.804"/>
|
|
</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="20240518 15:32:24.804" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.804" endtime="20240518 15:32:24.804"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.753" endtime="20240518 15:32:24.805"/>
|
|
</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="20240518 15:32:24.805" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.805" endtime="20240518 15:32:24.805"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">988491861142409216</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240518 15:32:24.806" endtime="20240518 15:32:24.806"/>
|
|
</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="20240518 15:32:24.807" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240518 15:32:24.807" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.806" endtime="20240518 15:32:24.807"/>
|
|
</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="20240518 15:32:24.808" level="DEBUG">Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com</msg>
|
|
<msg timestamp="20240518 15:32:24.832" level="DEBUG">http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-uec/user/list/own-organization?userId=988491861142409216 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240518 15:32:24.832" level="INFO">GET Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/user/list/own-organization?userId=988491861142409216
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=988491861142409216
|
|
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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:24.833" level="INFO">GET Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/user/list/own-organization?userId=988491861142409216
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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="20240518 15:32:24.833" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.807" endtime="20240518 15:32:24.833"/>
|
|
</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="20240518 15:32:24.834" level="INFO">${data} = []</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.833" endtime="20240518 15:32:24.834"/>
|
|
</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="20240518 15:32:24.834" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.834" endtime="20240518 15:32:24.835"/>
|
|
</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="20240518 15:32:24.835" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.835" endtime="20240518 15:32:24.835"/>
|
|
</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="20240518 15:32:24.836" level="INFO">未获取到组织信息!</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.836" endtime="20240518 15:32:24.836"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.835" endtime="20240518 15:32:24.836"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.806" endtime="20240518 15:32:24.836"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:24.805" endtime="20240518 15:32:24.836"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240518 15:32:24.805" endtime="20240518 15:32:24.836"/>
|
|
</kw>
|
|
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${matchmakerFlagList}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240518 15:32:24.837" level="INFO">${matchmakerFlagList} = []</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.837" endtime="20240518 15:32:24.837"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${admin_header}</var>
|
|
<value>@{Aheader_list}</value>
|
|
<iter>
|
|
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','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="20240518 15:32:24.838" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240518 15:32:24.838" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.838" endtime="20240518 15:32:24.839"/>
|
|
</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="20240518 15:32:24.840" level="DEBUG">Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com</msg>
|
|
<msg timestamp="20240518 15:32:24.851" level="DEBUG">http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-uec/user/get/base-info HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240518 15:32:24.851" level="INFO">GET Request : url=http://dating-agency-api.quzhaoqin.com/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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:24.851" level="INFO">GET Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/user/get/base-info
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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":"988491861142409216","realName":null,"nickName":null,"phone":"15134891062","matchmakerFlag":true}}
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:24.851" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.839" endtime="20240518 15:32:24.851"/>
|
|
</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="20240518 15:32:24.851" level="INFO">${phone} = 15134891062</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.851" endtime="20240518 15:32:24.851"/>
|
|
</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="20240518 15:32:24.851" level="INFO">${matchmakerFlag} = True</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.851" endtime="20240518 15:32:24.851"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${matchmakerFlagList}</arg>
|
|
<arg>${matchmakerFlag}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240518 15:32:24.867" endtime="20240518 15:32:24.867"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.838" endtime="20240518 15:32:24.867"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:24.837" endtime="20240518 15:32:24.867"/>
|
|
</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="20240518 15:32:24.867" level="INFO">${phone} = 15134891062</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.867" endtime="20240518 15:32:24.867"/>
|
|
</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="20240518 15:32:24.867" level="INFO">${matchmakerFlag} = True</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.867" endtime="20240518 15:32:24.867"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${matchmakerFlagList}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240518 15:32:24.867" level="INFO">${matchmakerFlagList} = [True]</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.867" endtime="20240518 15:32:24.867"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.837" endtime="20240518 15:32:24.867"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.739" endtime="20240518 15:32:24.867"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240518 15:32:24.345" endtime="20240518 15:32:24.867"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240518 15:32:24.345" endtime="20240518 15:32:24.867"/>
|
|
</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="5-SeekingReward" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\5-SeekingReward">
|
|
<suite id="s1-s2-s1-s1" name="SeekingReward" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\5-SeekingReward\SeekingReward.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="20240518 15:32:24.883" endtime="20240518 15:32:24.883"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-t1" name="红娘推荐嘉宾" line="13">
|
|
<kw name="Given 红娘查询婚介招亲榜列表" library="SeekingRewardResource" 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}</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="20240518 15:32:24.883" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240518 15:32:24.883" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.883" endtime="20240518 15:32:24.883"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/marriage/seeking/reward/page</arg>
|
|
<arg>params=pageNum=1&pageSize=10&matchmakerFlag=${matchmakerFlag}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240518 15:32:24.883" level="DEBUG">Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com</msg>
|
|
<msg timestamp="20240518 15:32:24.922" level="DEBUG">http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240518 15:32:24.922" level="INFO">GET Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True
|
|
path_url=/dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True
|
|
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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">MacCyrillic Russian confidence = 0.03709758906807936</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">IBM866 Russian confidence = 0.03708997045039013</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">IBM855 Russian confidence = 0.0684412747596739</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">TIS-620 Thai confidence = 0.0342708122753199</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3202319060867381</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="INFO">GET Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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":"988486875104808960","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png","nickName":"就是不吃饭","height":"160","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","educationCode":3,"education":"大学本科","age":29,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"Some days the sunsets would be purple and pink. And some days they were a blazing orange setting fire to the clouds on the horizon. It was during one of those sunsets that my father's idea of the whole being greater than the sum of its parts moved from my head to my heart. 有时落日泛起紫红的余晖,有时散发出橘红色的火光燃起天边的晚霞。在这绚烂的日落景象中,我慢慢领悟了父亲所说的整体胜于局部总和的道理。","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":0,"identityTypeName":"本人","amountPaid":0.45,"demandMarriage":{"id":"988898991573962752","isDelete":false,"createTime":"2024-05-17 17:32:38","updateTime":null,"event":null,"miId":988486875104808960,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"minAge":18,"maxAge":41,"minHeight":null,"maxHeight":null,"educationCode":null,"education":null,"maritalStatusCode":null,"maritalStatusName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nativePlaceCode":null,"nativePlaceName":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"minIncome":null,"maxIncome":null,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":null,"constellationCode":null,"constellation":null},"name":"赖勇兰","msrId":"5","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":true},{"miId":"988772976415608832","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/5b00-iyywcsz1328954.jpg","nickName":"帅哥也会emo","height":"187","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","educationCode":3,"education":"大学本科","age":29,"occupationCode":null,"occupation":null,"minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","realNameAudit":1,"describeInfo":"希望能遇到性格好,温柔善良,谈吐佳,气质优雅的她;感情需要的是包容和理解,世界没有两片相同的叶子,每个人的成长环境都不同,三观差不多就好,所处阶段和节奏也不同,不要在过分焦虑中向外攀比,要在看清一切后活出自在,如果你也是个有趣的灵魂,那我们一定能碰撞出灿烂的火花!","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":0,"identityTypeName":"本人","amountPaid":6500.00,"demandMarriage":{"id":"988778487546515456","isDelete":false,"createTime":"2024-05-17 09:33:47","updateTime":null,"event":null,"miId":988772976415608832,"domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","minAge":18,"maxAge":25,"minHeight":156,"maxHeight":170,"educationCode":-1,"education":null,"maritalStatusCode":0,"maritalStatusName":"未婚","nationCode":-1,"nation":null,"bodilyFormCode":-1,"bodilyForm":null,"accountTypeCode":-1,"accountTypeName":null,"nativePlaceCode":-1,"nativePlaceName":null,"occupationCode":null,"occupation":null,"onlyChild":-1,"carPurchaseSituationCode":-1,"carPurchaseSituation":null,"propertyPermitsCode":-1,"propertyPermits":null,"minIncome":5000,"maxIncome":20000,"hometownProvinceCode":-1,"hometownProvinceName":null,"hometownCityCode":-1,"hometownCityName":null,"constellationCode":-1,"constellation":null},"name":"王颖勋","msrId":"4","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":0,"genderValue":"男","educationAudit":false},{"miId":"988539789680709632","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/01457a5b869a22a80120245c09984c.jpg@1280w_1l_2o_100sh (1).jpg","nickName":"花生了什么树","height":"155","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":34,"occupationCode":null,"occupation":null,"minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","realNameAudit":1,"describeInfo":null,"hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":2,"identityTypeName":"母亲","amountPaid":4500.00,"demandMarriage":null,"name":"赖敏怡","msrId":"3","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":false},{"miId":"986353543797673984","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg","nickName":"七月半","height":"163","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":32,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"我内心渴望一份美好的感情,但不强求也不凑合,尊重他人和自己的情感,期待理想中的你能早日出现。在你还没有来到我身边之前,我会好好爱自己,照顾好自己,经营好自己,希望我早日遇到优秀的你,一起成长,共同努力!","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440300,"hometownCityName":"深圳市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":3,"identityTypeName":"亲友","amountPaid":4000.00,"demandMarriage":null,"name":"赖勇兰","msrId":"2","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":false},{"miId":"986344345860968448","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/20201721432758197.jpg","nickName":"qianniao","height":"171","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":40,"occupationCode":null,"occupation":null,"minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":1,"describeInfo":null,"hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440100,"hometownCityName":"广州市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":2,"identityTypeName":"母亲","amountPaid":3500.00,"demandMarriage":{"id":"988496362062614528","isDelete":false,"createTime":"2024-05-16 14:52:43","updateTime":null,"event":null,"miId":986344345860968448,"domicilePlaceCityCode":-1,"domicilePlaceCityName":null,"minAge":18,"maxAge":48,"minHeight":-1,"maxHeight":-1,"educationCode":-1,"education":null,"maritalStatusCode":-1,"maritalStatusName":null,"nationCode":-1,"nation":null,"bodilyFormCode":-1,"bodilyForm":null,"accountTypeCode":-1,"accountTypeName":null,"nativePlaceCode":-1,"nativePlaceName":null,"occupationCode":null,"occupation":null,"onlyChild":-1,"carPurchaseSituationCode":-1,"carPurchaseSituation":null,"propertyPermitsCode":-1,"propertyPermits":null,"minIncome":-1,"maxIncome":-1,"hometownProvinceCode":-1,"hometownProvinceName":null,"hometownCityCode":-1,"hometownCityName":null,"constellationCode":-1,"constellation":null},"name":"李博","msrId":"1","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":0,"genderValue":"男","educationAudit":false}],"total":5,"size":10,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.883" endtime="20240518 15:32:24.947"/>
|
|
</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="20240518 15:32:24.947" level="INFO">${records} = [{'miId': '988486875104808960', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png', 'nickName': '就是不吃饭', 'height': '160', 'provinceCode': 440000, 'provinceNa...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:24.947"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${rewardData}</var>
|
|
<arg>random.choice(${records})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240518 15:32:24.947" level="INFO">${rewardData} = {'miId': '988772976415608832', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/5b00-iyywcsz1328954.jpg', 'nickName': '帅哥也会emo', 'height': '187', 'provinceCode': 440000, 'provi...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:24.947"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${miId}</var>
|
|
<arg>${rewardData}</arg>
|
|
<arg>miId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240518 15:32:24.947" level="INFO">${miId} = 988772976415608832</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:24.947"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${msrId}</var>
|
|
<arg>${rewardData}</arg>
|
|
<arg>msrId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240518 15:32:24.947" level="INFO">${msrId} = 4</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:24.947"/>
|
|
</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="20240518 15:32:24.947" level="INFO">${miId} = 988772976415608832</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:24.947"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${msrId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240518 15:32:24.947" level="INFO">${msrId} = 4</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:24.947"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.883" endtime="20240518 15:32:24.947"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:24.883" endtime="20240518 15:32:24.947"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240518 15:32:24.883" endtime="20240518 15:32:24.947"/>
|
|
</kw>
|
|
<kw name="Then 红娘查询可推荐婚介嘉宾列表" library="SeekingRewardResource" 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}</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="20240518 15:32:24.947" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:24.947"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/candidate/guest/page</arg>
|
|
<arg>params=pageNum=1&pageSize=10&miId=${miId}&msrId=${msrId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240518 15:32:24.947" level="DEBUG">Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com</msg>
|
|
<msg timestamp="20240518 15:32:24.995" level="DEBUG">http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240518 15:32:24.995" level="INFO">GET Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4
|
|
path_url=/dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4
|
|
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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">MacCyrillic Russian confidence = 0.0361802455316919</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">IBM866 Russian confidence = 0.04029099096133577</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">IBM855 Russian confidence = 0.0692125111687387</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">TIS-620 Thai confidence = 0.03437782280600288</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">ISO-8859-9 Turkish confidence = 0.29984206957274595</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240518 15:32:25.011" level="INFO">GET Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:25 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":"986353543797673984","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg","nickName":"七月半","height":"163","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":32,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"我内心渴望一份美好的感情,但不强求也不凑合,尊重他人和自己的情感,期待理想中的你能早日出现。在你还没有来到我身边之前,我会好好爱自己,照顾好自己,经营好自己,希望我早日遇到优秀的你,一起成长,共同努力!","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440300,"hometownCityName":"深圳市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":3,"identityTypeName":"亲友","amountPaid":null,"demandMarriage":null,"name":"赖勇兰","msrId":"4","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":false},{"miId":"988486875104808960","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png","nickName":"就是不吃饭","height":"160","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","educationCode":3,"education":"大学本科","age":29,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"Some days the sunsets would be purple and pink. And some days they were a blazing orange setting fire to the clouds on the horizon. It was during one of those sunsets that my father's idea of the whole being greater than the sum of its parts moved from my head to my heart. 有时落日泛起紫红的余晖,有时散发出橘红色的火光燃起天边的晚霞。在这绚烂的日落景象中,我慢慢领悟了父亲所说的整体胜于局部总和的道理。","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":0,"identityTypeName":"本人","amountPaid":null,"demandMarriage":null,"name":"赖勇兰","msrId":"4","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":true}],"total":2,"size":10,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:25.026" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:25.026"/>
|
|
</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="20240518 15:32:25.026" level="INFO">${records} = [{'miId': '986353543797673984', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg', 'nickName': '七月半', 'height': '163', 'provinceCode': 440000, 'provinceNa...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.026" endtime="20240518 15:32:25.026"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${records}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240518 15:32:25.026" level="INFO">${records} = [{'miId': '986353543797673984', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg', 'nickName': '七月半', 'height': '163', 'provinceCode': 440000, 'provinceNa...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.026" endtime="20240518 15:32:25.026"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${records}==None</arg>
|
|
<arg>log</arg>
|
|
<arg>暂无嘉宾可推荐!</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>选择婚介可推荐嘉宾并推荐</arg>
|
|
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
|
|
<kw name="选择婚介可推荐嘉宾并推荐" library="SeekingRewardResource" sourcename="选择${dating}可推荐嘉宾并推荐">
|
|
<for flavor="IN">
|
|
<var>${records}</var>
|
|
<value>${records}</value>
|
|
<iter>
|
|
<var name="${records}">[{'miId': '986353543797673984', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg', 'nickName': '七月半', 'height': '163', 'provinceCode': 440000, 'provinceNa...</var>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${guestData}</var>
|
|
<arg>random.choice(${records})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240518 15:32:25.031" level="INFO">${guestData} = {'miId': '988486875104808960', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png', 'nickName': '就是不吃饭', 'height': '160', 'provinceCode': 440000, 'provinceNam...</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.030" endtime="20240518 15:32:25.031"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${MsrId}</var>
|
|
<arg>${guestData}</arg>
|
|
<arg>msrId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240518 15:32:25.032" level="INFO">${MsrId} = 4</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.031" endtime="20240518 15:32:25.032"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${guestMiId}</var>
|
|
<arg>${guestData}</arg>
|
|
<arg>miId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240518 15:32:25.032" level="INFO">${guestMiId} = 988486875104808960</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.032" endtime="20240518 15:32:25.033"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${MsrId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240518 15:32:25.033" level="INFO">${MsrId} = 4</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.033" endtime="20240518 15:32:25.033"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${guestMiId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240518 15:32:25.034" level="INFO">${guestMiId} = 988486875104808960</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.033" endtime="20240518 15:32:25.034"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:25.030" endtime="20240518 15:32:25.034"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:25.030" endtime="20240518 15:32:25.034"/>
|
|
</for>
|
|
<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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}</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="20240518 15:32:25.036" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240518 15:32:25.036" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.035" endtime="20240518 15:32:25.036"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{"msrId":"${MsrId}","miId":"${guestMiId}"}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240518 15:32:25.037" level="INFO">${data} = {"msrId":"4","miId":"988486875104808960"}</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.036" endtime="20240518 15:32:25.037"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/recommend/guest/</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240518 15:32:25.038" level="DEBUG">Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com</msg>
|
|
<msg timestamp="20240518 15:32:25.066" level="DEBUG">http://dating-agency-api.quzhaoqin.com:80 "POST /dating-agency-service/user/recommend/guest/ HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240518 15:32:25.066" level="INFO">POST Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/recommend/guest/
|
|
path_url=/dating-agency-service/user/recommend/guest/
|
|
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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'Content-Length': '41'}
|
|
body=b'{"msrId":"4","miId":"988486875104808960"}'
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:25.066" level="INFO">POST Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/recommend/guest/
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:25 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":null}
|
|
</msg>
|
|
<msg timestamp="20240518 15:32:25.066" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.037" endtime="20240518 15:32:25.066"/>
|
|
</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="20240518 15:32:25.066" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.066" endtime="20240518 15:32:25.066"/>
|
|
</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="20240518 15:32:25.066" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240518 15:32:25.066" endtime="20240518 15:32:25.066"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:25.035" endtime="20240518 15:32:25.066"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:25.035" endtime="20240518 15:32:25.066"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240518 15:32:25.029" endtime="20240518 15:32:25.066"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:25.029" endtime="20240518 15:32:25.066"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:25.066"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:25.066"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240518 15:32:24.947" endtime="20240518 15:32:25.066"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240518 15:32:24.883" endtime="20240518 15:32:25.066"/>
|
|
</test>
|
|
<status status="PASS" starttime="20240518 15:32:24.867" endtime="20240518 15:32:25.066"/>
|
|
</suite>
|
|
<doc>招亲榜</doc>
|
|
<status status="PASS" starttime="20240518 15:32:24.867" endtime="20240518 15:32:25.066"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240518 15:32:24.867" endtime="20240518 15:32:25.066"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240518 15:32:24.329" endtime="20240518 15:32:25.066"/>
|
|
</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="5-SeekingReward">Dating-agency.1-Applet.5-SeekingReward</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="SeekingReward">Dating-agency.1-Applet.5-SeekingReward.SeekingReward</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
<msg timestamp="20240518 15:32:24.883" level="ERROR">Error in file 'D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\5-SeekingReward\SeekingRewardResource.robot' on line 128: Creating keyword '红娘给${dating}招亲榜推荐嘉宾' failed: User keyword cannot be empty.</msg>
|
|
</errors>
|
|
</robot>
|