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.
1407 lines
97 KiB
1407 lines
97 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240419 16:23:40.605" 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="20240419 16:23:40.637" endtime="20240419 16:23:40.637"/>
|
|
</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="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</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="20240419 16:23:40.984" 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="20240419 16:23:40.984" level="INFO">${file} = 手机号
|
|
13448902715
|
|
13525397706</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</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="20240419 16:23:40.984" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</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="20240419 16:23:40.984" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</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="20240419 16:23:40.984" level="INFO">2 out of 3 lines matched</msg>
|
|
<msg timestamp="20240419 16:23:40.984" level="INFO">${content} = 13448902715
|
|
13525397706</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">13448902715
|
|
13525397706</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="20240419 16:23:40.984" level="INFO">${id} = ['13448902715', '13525397706']</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</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="20240419 16:23:40.984" level="INFO">${id} = ['13448902715', '13525397706']</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.984"/>
|
|
</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="20240419 16:23:40.994" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:40.994"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240419 16:23:40.994" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.994" endtime="20240419 16:23:40.994"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240419 16:23:40.994" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.994" endtime="20240419 16:23:40.994"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">13448902715</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:40.995" endtime="20240419 16:23:40.995"/>
|
|
</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="20240419 16:23:40.997" 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="20240419 16:23:40.997" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.995" endtime="20240419 16:23:40.997"/>
|
|
</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="20240419 16:23:40.997" level="INFO">${data} = { "account":"13448902715", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.997" endtime="20240419 16:23:40.997"/>
|
|
</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="20240419 16:23:41.000" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.089" 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="20240419 16:23:41.089" 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":"13448902715", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.089" 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': 'Fri, 19 Apr 2024 08:23:55 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==","userId":"978668893159690240"}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.089" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:40.997" endtime="20240419 16:23:41.089"/>
|
|
</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="20240419 16:23:41.089" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.089" endtime="20240419 16:23:41.089"/>
|
|
</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="20240419 16:23:41.089" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.089" endtime="20240419 16:23:41.089"/>
|
|
</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="20240419 16:23:41.105" level="INFO">${userId} = 978668893159690240</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.089" endtime="20240419 16:23:41.105"/>
|
|
</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="20240419 16:23:41.105" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.105" endtime="20240419 16:23:41.105"/>
|
|
</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="20240419 16:23:41.105" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.105" endtime="20240419 16:23:41.105"/>
|
|
</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="20240419 16:23:41.105" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.105" endtime="20240419 16:23:41.105"/>
|
|
</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="20240419 16:23:41.105" endtime="20240419 16:23:41.105"/>
|
|
</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="20240419 16:23:41.108" endtime="20240419 16:23:41.108"/>
|
|
</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="20240419 16:23:41.108" endtime="20240419 16:23:41.108"/>
|
|
</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="20240419 16:23:41.109" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.109" endtime="20240419 16:23:41.109"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.108" endtime="20240419 16:23:41.109"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:40.995" endtime="20240419 16:23:41.109"/>
|
|
</iter>
|
|
<iter>
|
|
<var name="${account}">13525397706</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.110" endtime="20240419 16:23:41.110"/>
|
|
</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="20240419 16:23:41.111" 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="20240419 16:23:41.111" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.110" endtime="20240419 16:23:41.111"/>
|
|
</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="20240419 16:23:41.111" level="INFO">${data} = { "account":"13525397706", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.111" endtime="20240419 16:23:41.111"/>
|
|
</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="20240419 16:23:41.113" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.186" 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="20240419 16:23:41.202" 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":"13525397706", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.202" 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': 'Fri, 19 Apr 2024 08:23:55 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==","userId":"978668872108478464"}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.202" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.112" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${userId} = 978668872108478464</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.109" endtime="20240419 16:23:41.202"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240419 16:23:40.995" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${phone} = 13525397706</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${phone} = 13525397706</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${userid_list} = ['978668893159690240', '978668872108478464']</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}", "{'Content-Type':'...</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.202" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.202" endtime="20240419 16:23:41.202"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:41.202"/>
|
|
</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="20240419 16:23:41.217" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.217" endtime="20240419 16:23:41.217"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">978668893159690240</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.217" endtime="20240419 16:23:41.217"/>
|
|
</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="20240419 16:23:41.217" 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.217" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.217" endtime="20240419 16:23:41.217"/>
|
|
</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="20240419 16:23:41.217" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.257" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=978668893159690240 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.258" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668893159690240
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=978668893159690240
|
|
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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.258" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668893159690240
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:55 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="20240419 16:23:41.258" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.217" endtime="20240419 16:23:41.258"/>
|
|
</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="20240419 16:23:41.258" level="INFO">${data} = []</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.258"/>
|
|
</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="20240419 16:23:41.258" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.258"/>
|
|
</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="20240419 16:23:41.258" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.258"/>
|
|
</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="20240419 16:23:41.258" level="INFO">未获取到组织信息!</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.258"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.258"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.217" endtime="20240419 16:23:41.258"/>
|
|
</iter>
|
|
<iter>
|
|
<var name="${userId}">978668872108478464</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.258"/>
|
|
</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="20240419 16:23:41.258" 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.258" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.258"/>
|
|
</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="20240419 16:23:41.258" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.289" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=978668872108478464 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.306" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668872108478464
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=978668872108478464
|
|
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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.306" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668872108478464
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:55 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="20240419 16:23:41.306" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.306"/>
|
|
</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="20240419 16:23:41.306" level="INFO">${data} = []</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.306"/>
|
|
</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="20240419 16:23:41.306" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.306"/>
|
|
</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="20240419 16:23:41.306" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.306"/>
|
|
</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="20240419 16:23:41.306" level="INFO">未获取到组织信息!</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.306"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.306"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.258" endtime="20240419 16:23:41.306"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240419 16:23:41.217" endtime="20240419 16:23:41.306"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240419 16:23:41.217" endtime="20240419 16:23:41.306"/>
|
|
</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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==','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="20240419 16:23:41.306" 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.306" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.306"/>
|
|
</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="20240419 16:23:41.306" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.353" 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="20240419 16:23:41.353" 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.353" 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': 'Fri, 19 Apr 2024 08:23:55 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":"978668893159690240","realName":null,"nickName":null,"phone":"13448902715","matchmakerFlag":false}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.353" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.353"/>
|
|
</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="20240419 16:23:41.369" level="INFO">${phone} = 13448902715</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.353" endtime="20240419 16:23:41.369"/>
|
|
</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="20240419 16:23:41.369" level="INFO">${matchmakerFlag} = False</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.369" endtime="20240419 16:23:41.369"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.369"/>
|
|
</iter>
|
|
<iter>
|
|
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==','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="20240419 16:23:41.369" 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.369" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.369" endtime="20240419 16:23:41.369"/>
|
|
</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="20240419 16:23:41.372" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.425" 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="20240419 16:23:41.425" 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.425" 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': 'Fri, 19 Apr 2024 08:23:55 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":"978668872108478464","realName":null,"nickName":null,"phone":"13525397706","matchmakerFlag":false}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.425" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.369" endtime="20240419 16:23:41.425"/>
|
|
</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="20240419 16:23:41.428" level="INFO">${phone} = 13525397706</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.425" endtime="20240419 16:23:41.428"/>
|
|
</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="20240419 16:23:41.428" level="INFO">${matchmakerFlag} = False</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.428" endtime="20240419 16:23:41.428"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.369" endtime="20240419 16:23:41.428"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.429"/>
|
|
</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="20240419 16:23:41.429" level="INFO">${phone} = 13525397706</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.429" endtime="20240419 16:23:41.429"/>
|
|
</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="20240419 16:23:41.430" level="INFO">${matchmakerFlag} = False</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.429" endtime="20240419 16:23:41.430"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.306" endtime="20240419 16:23:41.430"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:40.984" endtime="20240419 16:23:41.430"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240419 16:23:40.637" endtime="20240419 16:23:41.430"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240419 16:23:40.637" endtime="20240419 16:23:41.431"/>
|
|
</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="1-WriteInfo" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\1-WriteInfo">
|
|
<suite id="s1-s2-s1-s1" name="Infomation" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\1-WriteInfo\Infomation.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="20240419 16:23:41.482" endtime="20240419 16:23:41.486"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-t1" name="用户首次填写资料" line="9">
|
|
<kw name="Given 首次查询婚介征婚人资料" library="InfoResource" 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}">978668893159690240</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.488" endtime="20240419 16:23:41.488"/>
|
|
</kw>
|
|
<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="20240419 16:23:41.489" 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.489" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.488" endtime="20240419 16:23:41.489"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/first/fill/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240419 16:23:41.491" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.544" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.545" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240
|
|
path_url=/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240
|
|
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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">IBM866 Russian confidence = 0.0660245463695509</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">IBM855 Russian confidence = 0.15096840719587368</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">TIS-620 Thai confidence = 0.030753949746680637</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3531548785285078</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:55 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":"978733730317340672","accountId":null,"userId":"978668893159690240","nickName":"可乐无糖加冰","genderCode":1,"homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440113,"cityName":"广州市","districtCode":440113,"districtName":"番禺区","birthYear":"2004","educationCode":0,"education":"高中及以下","incomeCode":2,"income":"5001~8000","height":"141","maritalStatusCode":null,"maritalStatusName":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","identityType":2,"identityTypeName":null,"fillSerialNumber":8}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.490" endtime="20240419 16:23:41.546"/>
|
|
</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="20240419 16:23:41.546" level="INFO">${miId} = 978733730317340672</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</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="20240419 16:23:41.546" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</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="20240419 16:23:41.546" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${fillSerialNumber}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>fillSerialNumber</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240419 16:23:41.546" level="INFO">${fillSerialNumber} = 8</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</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="20240419 16:23:41.546" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</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="20240419 16:23:41.546" level="INFO">${miId} = 978733730317340672</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</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="20240419 16:23:41.546" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</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="20240419 16:23:41.546" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${fillSerialNumber}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240419 16:23:41.546" level="INFO">${fillSerialNumber} = 8</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${fillSerialNumber}==9</arg>
|
|
<arg>填写婚介征婚人的基础资料</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==0</arg>
|
|
<arg>填写婚介征婚人资料-性别开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==1</arg>
|
|
<arg>填写婚介征婚人资料-城市开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==2</arg>
|
|
<arg>填写婚介征婚人的资料-家乡开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==3</arg>
|
|
<arg>填写婚介征婚人的资料-出生年份开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==4</arg>
|
|
<arg>填写婚介征婚人的资料-身高开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==5</arg>
|
|
<arg>填写婚介征婚人的资料-学历开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==6</arg>
|
|
<arg>填写婚介征婚人的资料-月收入开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==7</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="InfoResource" 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}">978668893159690240</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</kw>
|
|
<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="20240419 16:23:41.546" 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.546"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/get/first/fill/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240419 16:23:41.546" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.594" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.594" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240
|
|
path_url=/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240
|
|
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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSInQ+lrY4SSczYT59gEUL+KU7Z+hS9Yq4vibxJDs6bbAw=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">IBM866 Russian confidence = 0.0660245463695509</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">IBM855 Russian confidence = 0.15096840719587368</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">TIS-620 Thai confidence = 0.030753949746680637</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3531548785285078</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668893159690240
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:55 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":"978733730317340672","accountId":null,"userId":"978668893159690240","nickName":"可乐无糖加冰","genderCode":1,"homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440113,"cityName":"广州市","districtCode":440113,"districtName":"番禺区","birthYear":"2004","educationCode":0,"education":"高中及以下","incomeCode":2,"income":"5001~8000","height":"141","maritalStatusCode":null,"maritalStatusName":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","identityType":2,"identityTypeName":null,"fillSerialNumber":8}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.609"/>
|
|
</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="20240419 16:23:41.609" level="INFO">${miId} = 978733730317340672</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.609" endtime="20240419 16:23:41.609"/>
|
|
</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="20240419 16:23:41.609" level="INFO">${miId} = 978733730317340672</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.609" endtime="20240419 16:23:41.609"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.609"/>
|
|
</iter>
|
|
<iter>
|
|
<var name="${userId}">978668872108478464</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.609" endtime="20240419 16:23:41.609"/>
|
|
</kw>
|
|
<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="20240419 16:23:41.609" 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.609" endtime="20240419 16:23:41.609"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/get/first/fill/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240419 16:23:41.609" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464
|
|
path_url=/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464
|
|
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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">MacCyrillic Russian confidence = 0.056582439525633195</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">IBM855 Russian confidence = 0.10144491704425918</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3733052703867422</msg>
|
|
<msg timestamp="20240419 16:23:41.650" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.666" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:55 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":"978733732204777472","accountId":null,"userId":"978668872108478464","nickName":null,"genderCode":1,"homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440111,"cityName":"广州市","districtCode":440111,"districtName":"白云区","birthYear":"2004","educationCode":1,"education":"中专","incomeCode":3,"income":"8001~12000","height":"140","maritalStatusCode":null,"maritalStatusName":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","identityType":0,"identityTypeName":null,"fillSerialNumber":7}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.667" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.609" endtime="20240419 16:23:41.667"/>
|
|
</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="20240419 16:23:41.668" level="INFO">${miId} = 978733732204777472</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.668" endtime="20240419 16:23:41.668"/>
|
|
</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="20240419 16:23:41.668" level="INFO">${miId} = 978733732204777472</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.668" endtime="20240419 16:23:41.668"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.609" endtime="20240419 16:23:41.668"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.668"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.668"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.546" endtime="20240419 16:23:41.668"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.488" endtime="20240419 16:23:41.668"/>
|
|
</iter>
|
|
<iter>
|
|
<var name="${userId}">978668872108478464</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.668" endtime="20240419 16:23:41.668"/>
|
|
</kw>
|
|
<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="20240419 16:23:41.668" 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.668" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.668" endtime="20240419 16:23:41.668"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/first/fill/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240419 16:23:41.668" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464
|
|
path_url=/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464
|
|
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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">MacCyrillic Russian confidence = 0.056582439525633195</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">IBM855 Russian confidence = 0.10144491704425918</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3733052703867422</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=978668872108478464
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:56 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":"978733732204777472","accountId":null,"userId":"978668872108478464","nickName":null,"genderCode":1,"homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440111,"cityName":"广州市","districtCode":440111,"districtName":"白云区","birthYear":"2004","educationCode":1,"education":"中专","incomeCode":3,"income":"8001~12000","height":"140","maritalStatusCode":null,"maritalStatusName":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","identityType":0,"identityTypeName":null,"fillSerialNumber":7}}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.713" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.668" endtime="20240419 16:23:41.713"/>
|
|
</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="20240419 16:23:41.713" level="INFO">${miId} = 978733732204777472</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.713" endtime="20240419 16:23:41.713"/>
|
|
</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="20240419 16:23:41.713" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.713" endtime="20240419 16:23:41.713"/>
|
|
</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="20240419 16:23:41.713" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.713" endtime="20240419 16:23:41.713"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${fillSerialNumber}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>fillSerialNumber</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240419 16:23:41.713" level="INFO">${fillSerialNumber} = 7</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.713" endtime="20240419 16:23:41.713"/>
|
|
</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="20240419 16:23:41.713" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.713" endtime="20240419 16:23:41.713"/>
|
|
</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="20240419 16:23:41.729" level="INFO">${miId} = 978733732204777472</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.713" endtime="20240419 16:23:41.729"/>
|
|
</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="20240419 16:23:41.729" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</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="20240419 16:23:41.729" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${fillSerialNumber}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240419 16:23:41.729" level="INFO">${fillSerialNumber} = 7</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${fillSerialNumber}==9</arg>
|
|
<arg>填写婚介征婚人的基础资料</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==0</arg>
|
|
<arg>填写婚介征婚人资料-性别开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==1</arg>
|
|
<arg>填写婚介征婚人资料-城市开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==2</arg>
|
|
<arg>填写婚介征婚人的资料-家乡开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==3</arg>
|
|
<arg>填写婚介征婚人的资料-出生年份开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==4</arg>
|
|
<arg>填写婚介征婚人的资料-身高开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==5</arg>
|
|
<arg>填写婚介征婚人的资料-学历开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==6</arg>
|
|
<arg>填写婚介征婚人的资料-月收入开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==7</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="InfoResource" sourcename="填写${dating}征婚人的资料-昵称开始">
|
|
<kw name="选择婚介征婚人的昵称" library="InfoResource" sourcename="选择${dating}征婚人的昵称">
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${Name}</var>
|
|
<arg>["缘来是你","洛天神女","寻那个TA","一片烨","王小帅","牛仔","张先生","就等你了","故乡的原风景","万里&长城","雪落下的地方","天蝎座的宁静","烟火","白色气球","带你去浪漫的土耳其","诺贝尔可爱奖","死于脚气攻心","发型不乱,一切好办","朝颜","茯苓","不4辣妹好烦","拉粑粑小魔仙","榆木脑袋/(ㄒoㄒ)/~~","社交悍匪","西红柿炖前男友","^.^心碎小饭包","美女也会emo","爸道总裁","去银行整点金条","观input萨","4.435km/s","炉火糖粥","十一是亿","出桃公主","量贩草莓果泡","风止何安","钟于的尽头是终于","Komorebi","Agoni","Miratowa","Coisini","是牛奶味呀","偷走月亮的o(=•ェ•=)m","一口吃成大胖次","转角撞到小花花","恰似惊鸿落人间","阿啾啾","只吃一口不会胖滴","一贫如喜羊羊","鸭鸭进京赶烤","bug鸭陆","满圈猪猪我最肥","☀日落也会跑","不掉小珍🐖","快乐的刘油果","小地瓜🍠","火鸡味锅巴","晕头小🐕","钞票收割机","吃土豆长大的马铃薯","Tony带水","古塔拉黑暗之神","换胃思烤","你没好果汁吃","元气少女锅德缸","对方正在长头发","关你peace","狂炫老板画的大饼","皮蛋solo粥","梁山伯与祝英抬杠","讨一身可爱","半口奶酪","一丢丢可爱","小不忍则卖大萌","春风十里吹不动你","夏目友人赖账","狂踹瘸子那条好腿","三条腿瘸了两条","蛋黄派来的","BOB!!!","激萌美少女李逵","老衲我不用飘柔","村里在逃翠花❀","onetwo恰恰恰","果真不赖妈妈","不是山谷","十二","花未眠","小熊扁干","穿靴子的猫🐱","可乐无糖加冰","一勺刚刚好","呆熊吐泡泡ε=ε=ε=(~ ̄▽ ̄)~","25点说晚安","酿了一秋的甜","难哄小掌柜","未完结的故事","摆烂小鱼","控制不住喜欢你","这一秒的心动♥","乌梅子酱","十三月末","大不了胖点","零一秒","换个路口转弯","那场漫长雨季","MEI有一米六","大雨倾盆的情","去有风小院","发很久的呆","普通市民","每天都好困😴","不煲电话粥","奶椰西米露","Number one","4Udo","七月绝版","虞美人盛开的山坡","3kyo","想和你互相耽误","书柜里的情书","小石头爱上结巴","歌好听你好看","人生实难万圆,小满即可安心","半夏xia","这条小鱼在乎","那时我们不懂永远","碎不着","独角戏","甜梨","秋棠子淮南","有點困💤","许愿池🫧","小歪.Babyづ","⭐星偷走睡意","伞下铭","棠梨煎雪","直到遇见了你,我只喜欢你","勾指起誓","藏","又见江南雨","偶尔也会发呆","不做小困包","BB饼干🍪","水蜜桃🍑","下雨天🌧️","³º只花🌸","巧克力🍫饼干","带你去抓怪兽👾","想你时关键词","YoYo","偷听少女许愿","没哥帅就闭麦","一觉睡到小时候","花生了什么树","摘一口袋星星送给你","大糖糕僧","哇哒西蛙","著名奶茶鉴定家","睡眠艺术家","夜猫子协会常任理事","国家一级退堂鼓选手","我比纸巾还能扯","水煮美人鱼","话不投机养乐多","屁大点事分享者","月亮邮递员","妈妈说名字太长会有傻子跟着念","有关部门","过期小朋友","向晚"]</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240419 16:23:41.729" level="INFO">${Name} = ["缘来是你","洛天神女","寻那个TA","一片烨","王小帅","牛仔","张先生","就等你了","故乡的原风景","万里&长城","雪落下的地方","天蝎座的宁静","烟火","白色气球","带你去浪漫的土耳其","诺贝尔可爱奖","死于脚气攻心","发型不乱,一切好办","朝颜","茯苓","不4辣妹好烦","拉粑粑小魔仙","榆木脑袋/(ㄒoㄒ)/~~","社交悍匪","西红柿炖前男...</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${nickName}</var>
|
|
<arg>random.choice(${Name})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240419 16:23:41.729" level="INFO">${nickName} = 牛仔</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${Number}</var>
|
|
<arg>7</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240419 16:23:41.729" level="INFO">${Number} = 7</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</kw>
|
|
<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="20240419 16:23:41.729" 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.729" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{"id":"${miId}","fillSerialNumber":${Number},"nickName":"${nickName}"}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240419 16:23:41.729" level="INFO">${data} = {"id":"978733732204777472","fillSerialNumber":7,"nickName":"牛仔"}</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.729"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/save/first/fill/marriage/Information</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240419 16:23:41.729" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.880" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/save/first/fill/marriage/Information HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.880" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/first/fill/marriage/Information
|
|
path_url=/dating-agency-service/user/save/first/fill/marriage/Information
|
|
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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg==', 'Content-Length': '68'}
|
|
body=b'{"id":"978733732204777472","fillSerialNumber":7,"nickName":"\xe7\x89\x9b\xe4\xbb\x94"}'
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.880" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/first/fill/marriage/Information
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:56 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":"978733732204777472"}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.896" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.896"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${id}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>data</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240419 16:23:41.896" level="INFO">${id} = 978733732204777472</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.896" endtime="20240419 16:23:41.896"/>
|
|
</kw>
|
|
<kw name="Should Be Equal" library="BuiltIn">
|
|
<arg>${id}</arg>
|
|
<arg>${miId}</arg>
|
|
<doc>Fails if the given objects are unequal.</doc>
|
|
<msg timestamp="20240419 16:23:41.896" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.896" endtime="20240419 16:23:41.896"/>
|
|
</kw>
|
|
<kw name="查询婚介用户资料百分比" library="InfoResource" sourcename="查询${dating}用户资料百分比">
|
|
<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="20240419 16:23:41.896" 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240419 16:23:41.896" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.896" endtime="20240419 16:23:41.896"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/marriage/information/data/scoring</arg>
|
|
<arg>params=miId=${miId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240419 16:23:41.896" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240419 16:23:41.927" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/data/scoring?miId=978733732204777472 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240419 16:23:41.927" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/data/scoring?miId=978733732204777472
|
|
path_url=/dating-agency-service/user/get/marriage/information/data/scoring?miId=978733732204777472
|
|
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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL5FKhfOAwMDo9gKfYDqlVYKDfAvSHLTu0bYQApOm7dScg=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.927" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/data/scoring?miId=978733732204777472
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 19 Apr 2024 08:23:56 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":18}
|
|
</msg>
|
|
<msg timestamp="20240419 16:23:41.927" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.896" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${percentData}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>data</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240419 16:23:41.927" level="INFO">${percentData} = 18</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.927" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<kw name="Set Variable If" library="BuiltIn">
|
|
<var>${percentData}</var>
|
|
<arg>'${percentData}'=='null'</arg>
|
|
<arg>0</arg>
|
|
<arg>${percentData}</arg>
|
|
<doc>Sets variable based on the given condition.</doc>
|
|
<msg timestamp="20240419 16:23:41.927" level="INFO">${percentData} = 18</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.927" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${percentData}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240419 16:23:41.927" level="INFO">${percentData} = 18</msg>
|
|
<status status="PASS" starttime="20240419 16:23:41.927" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.896" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.729" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.668" endtime="20240419 16:23:41.927"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240419 16:23:41.487" endtime="20240419 16:23:41.927"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240419 16:23:41.487" endtime="20240419 16:23:41.927"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240419 16:23:41.486" endtime="20240419 16:23:41.927"/>
|
|
</test>
|
|
<status status="PASS" starttime="20240419 16:23:41.436" endtime="20240419 16:23:41.927"/>
|
|
</suite>
|
|
<doc>登陆后填写基础资料</doc>
|
|
<status status="PASS" starttime="20240419 16:23:41.434" endtime="20240419 16:23:41.927"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240419 16:23:41.432" endtime="20240419 16:23:41.927"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240419 16:23:40.621" endtime="20240419 16:23:41.943"/>
|
|
</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="1-WriteInfo">Dating-agency.1-Applet.1-WriteInfo</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="Infomation">Dating-agency.1-Applet.1-WriteInfo.Infomation</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
</errors>
|
|
</robot>
|