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.
 
 
 

742 lines
48 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240328 13:53:08.037" rpa="false" schemaversion="4">
<suite id="s1" name="Dating-agency" source="D:\LYL\Study\Robot_framework\space\Dating-agency">
<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="20240328 13:53:08.179" endtime="20240328 13:53:08.179"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="17">
<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="20240328 13:53:08.179" level="INFO" html="true">Getting file '&lt;a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt"&gt;D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt&lt;/a&gt;'.</msg>
<msg timestamp="20240328 13:53:08.179" level="INFO">${file} = 手机号
13473579062</msg>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.179"/>
</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="20240328 13:53:08.179" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.179"/>
</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="20240328 13:53:08.179" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.179"/>
</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="20240328 13:53:08.179" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240328 13:53:08.179" level="INFO">${content} = 13473579062</msg>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.179"/>
</kw>
<for flavor="IN">
<var>${id}</var>
<value>${content}</value>
<iter>
<var name="${id}">13473579062</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="20240328 13:53:08.179" level="INFO">${id} = ['13473579062']</msg>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.190"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.190"/>
</iter>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.190"/>
</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="20240328 13:53:08.190" level="INFO">${id} = ['13473579062']</msg>
<status status="PASS" starttime="20240328 13:53:08.190" endtime="20240328 13:53:08.190"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.191"/>
</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="20240328 13:53:08.191" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240328 13:53:08.191" endtime="20240328 13:53:08.191"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240328 13:53:08.192" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240328 13:53:08.191" endtime="20240328 13:53:08.192"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240328 13:53:08.192" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240328 13:53:08.192" endtime="20240328 13:53:08.192"/>
</kw>
<for flavor="IN">
<var>${account}</var>
<value>@{id}</value>
<iter>
<var name="${account}">13473579062</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240328 13:53:08.193" endtime="20240328 13:53:08.193"/>
</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="20240328 13:53:08.194" 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="20240328 13:53:08.195" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240328 13:53:08.193" endtime="20240328 13:53:08.195"/>
</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="20240328 13:53:08.195" level="INFO">${data} = { "account":"13473579062", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240328 13:53:08.195" endtime="20240328 13:53:08.195"/>
</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="20240328 13:53:08.198" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240328 13:53:08.267" 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="20240328 13:53:08.267" 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":"13473579062", "accountType":2, "captcha":888888 }'
</msg>
<msg timestamp="20240328 13:53:08.267" 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': 'Thu, 28 Mar 2024 05:53:08 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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==","userId":"970721561407524864"}}
</msg>
<msg timestamp="20240328 13:53:08.267" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.196" endtime="20240328 13:53:08.267"/>
</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="20240328 13:53:08.267" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240328 13:53:08.267" endtime="20240328 13:53:08.267"/>
</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="20240328 13:53:08.283" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==</msg>
<status status="PASS" starttime="20240328 13:53:08.267" endtime="20240328 13:53:08.283"/>
</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="20240328 13:53:08.283" level="INFO">${userId} = 970721561407524864</msg>
<status status="PASS" starttime="20240328 13:53:08.283" endtime="20240328 13:53:08.283"/>
</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="20240328 13:53:08.283" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240328 13:53:08.283" endtime="20240328 13:53:08.283"/>
</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="20240328 13:53:08.283" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240328 13:53:08.283" endtime="20240328 13:53:08.283"/>
</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="20240328 13:53:08.283" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}</msg>
<status status="PASS" starttime="20240328 13:53:08.283" endtime="20240328 13:53:08.283"/>
</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="20240328 13:53:08.283" endtime="20240328 13:53:08.286"/>
</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="20240328 13:53:08.286" endtime="20240328 13:53:08.286"/>
</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="20240328 13:53:08.286" endtime="20240328 13:53:08.287"/>
</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="20240328 13:53:08.287" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.287" endtime="20240328 13:53:08.287"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.287" endtime="20240328 13:53:08.288"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.192" endtime="20240328 13:53:08.288"/>
</iter>
<status status="PASS" starttime="20240328 13:53:08.192" endtime="20240328 13:53:08.288"/>
</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="20240328 13:53:08.288" level="INFO">${phone} = 13473579062</msg>
<status status="PASS" starttime="20240328 13:53:08.288" endtime="20240328 13:53:08.288"/>
</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="20240328 13:53:08.289" level="INFO">${phone} = 13473579062</msg>
<status status="PASS" starttime="20240328 13:53:08.288" endtime="20240328 13:53:08.289"/>
</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="20240328 13:53:08.289" level="INFO">${userid_list} = ['970721561407524864']</msg>
<status status="PASS" starttime="20240328 13:53:08.289" endtime="20240328 13:53:08.289"/>
</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="20240328 13:53:08.290" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240328 13:53:08.289" endtime="20240328 13:53:08.290"/>
</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="20240328 13:53:08.290" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}"]</msg>
<status status="PASS" starttime="20240328 13:53:08.290" endtime="20240328 13:53:08.290"/>
</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="20240328 13:53:08.291" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240328 13:53:08.290" endtime="20240328 13:53:08.291"/>
</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="20240328 13:53:08.291" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}</msg>
<status status="PASS" starttime="20240328 13:53:08.291" endtime="20240328 13:53:08.291"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.191" endtime="20240328 13:53:08.291"/>
</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="20240328 13:53:08.292" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240328 13:53:08.292" endtime="20240328 13:53:08.292"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${login_header}</var>
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">970721561407524864</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240328 13:53:08.293" endtime="20240328 13:53:08.293"/>
</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="20240328 13:53:08.294" 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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240328 13:53:08.294" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240328 13:53:08.293" endtime="20240328 13:53:08.294"/>
</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="20240328 13:53:08.295" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240328 13:53:08.330" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=970721561407524864 HTTP/1.1" 200 None</msg>
<msg timestamp="20240328 13:53:08.331" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970721561407524864
path_url=/dating-agency-uec/user/list/own-organization?userId=970721561407524864
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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240328 13:53:08.331" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970721561407524864
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 28 Mar 2024 05:53:08 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="20240328 13:53:08.331" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.294" endtime="20240328 13:53:08.331"/>
</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="20240328 13:53:08.332" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240328 13:53:08.331" endtime="20240328 13:53:08.332"/>
</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="20240328 13:53:08.333" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240328 13:53:08.332" endtime="20240328 13:53:08.333"/>
</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="20240328 13:53:08.333" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.333" endtime="20240328 13:53:08.333"/>
</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="20240328 13:53:08.334" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240328 13:53:08.334" endtime="20240328 13:53:08.334"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.334" endtime="20240328 13:53:08.334"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.293" endtime="20240328 13:53:08.334"/>
</iter>
<status status="PASS" starttime="20240328 13:53:08.292" endtime="20240328 13:53:08.335"/>
</for>
<status status="PASS" starttime="20240328 13:53:08.292" endtime="20240328 13:53:08.335"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.179" endtime="20240328 13:53:08.335"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240328 13:53:08.069" endtime="20240328 13:53:08.335"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240328 13:53:08.053" endtime="20240328 13:53:08.336"/>
</suite>
<suite id="s1-s2" name="1-Applet" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet">
<suite id="s1-s2-s1" name="2-Homepage" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage">
<suite id="s1-s2-s1-s1" name="MarriageInfo" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo">
<suite id="s1-s2-s1-s1-s1" name="DataAuthentication" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo\DataAuthentication.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="20240328 13:53:08.363" endtime="20240328 13:53:08.363"/>
</kw>
<test id="s1-s2-s1-s1-s1-t1" name="添加征婚人联系方式" line="84">
<kw name="Given 查询婚介征婚人的资料信息" library="Authentication" 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}">970721561407524864</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}</var>
<kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg>
<arg>${${dating}.dating域名}</arg>
<arg>${client_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240328 13:53:08.379" 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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240328 13:53:08.379" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240328 13:53:08.363" endtime="20240328 13:53:08.379"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>/dating-agency-service/user/get/marriage/information/details</arg>
<arg>params=userId=${userId}</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240328 13:53:08.381" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240328 13:53:08.447" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=970721561407524864 HTTP/1.1" 200 None</msg>
<msg timestamp="20240328 13:53:08.447" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970721561407524864
path_url=/dating-agency-service/user/get/marriage/information/details?userId=970721561407524864
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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}
body=None
</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">IBM866 Russian confidence = 0.055771221754656375</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">IBM855 Russian confidence = 0.11623896744654695</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">ISO-8859-9 Turkish confidence = 0.382118544063159</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.452" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970721561407524864
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 28 Mar 2024 05:53:08 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":"970721563563397120","isDelete":false,"createTime":"2024-03-28 13:42:01","updateTime":null,"event":null,"accountId":null,"userId":"970721561407524864","nickName":"Tough","name":"王颖勋","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/24ef3e3c4e781b97c9e3da52cc2a6a88.jpg","identityCard":"44058319951227041X","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440183,"districtName":"增城市","birthYear":"1995","birthDate":"1995-12-27","constellationCode":1,"constellation":"水瓶座","chineseZodiacCode":null,"chineseZodiac":"猪","height":183,"weight":120,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":"777019439926121667","describeInfo":null,"self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":1,"nation":"汉族","bodilyFormCode":3,"bodilyForm":"肥胖","accountTypeCode":0,"accountTypeName":"城市","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":4,"propertyPermits":"婚后购房","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240328 13:53:08.452" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.379" endtime="20240328 13:53:08.452"/>
</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="20240328 13:53:08.452" level="INFO">${miId} = 970721563563397120</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${nickName}</var>
<arg>${reps.json()['data']}</arg>
<arg>nickName</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240328 13:53:08.452" level="INFO">${nickName} = Tough</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240328 13:53:08.452" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</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="20240328 13:53:08.452" level="INFO">${genderCode} = 0</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</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="20240328 13:53:08.452" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${miId_list}</arg>
<arg>${miId}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</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="20240328 13:53:08.452" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.363" endtime="20240328 13:53:08.452"/>
</iter>
<status status="PASS" starttime="20240328 13:53:08.363" endtime="20240328 13:53:08.452"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${nickName}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240328 13:53:08.452" level="INFO">${nickName} = Tough</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${miId_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240328 13:53:08.452" level="INFO">${miId_list} = ['970721563563397120']</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</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="20240328 13:53:08.452" level="INFO">${genderCode} = 0</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.452"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.363" endtime="20240328 13:53:08.452"/>
</kw>
<kw name="When 提交婚介征婚人的联系方式" library="Authentication" sourcename="提交${dating}征婚人的联系方式">
<doc>$length}=8 生成的手机号位数,不包含开头3位,默认8位</doc>
<for flavor="IN">
<var>${client_header}</var>
<value>@{Cheader_list}</value>
<iter>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}</var>
<kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg>
<arg>${${dating}.dating域名}</arg>
<arg>${client_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240328 13:53:08.452" 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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240328 13:53:08.452" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.467"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-service/user/get/family/ties/list</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240328 13:53:08.467" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/family/ties/list HTTP/1.1" 200 None</msg>
<msg timestamp="20240328 13:53:08.499" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/family/ties/list
path_url=/dating-agency-service/user/get/family/ties/list
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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}
body=None
</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">windows-1253 Greek confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">TIS-620 Thai confidence = 0.10994537034438327</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">ISO-8859-9 Turkish confidence = 0.39016317654662896</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240328 13:53:08.499" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/family/ties/list
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 28 Mar 2024 05:53:08 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":[{"value":0,"desc":"本人"},{"value":1,"desc":"父母"},{"value":2,"desc":"亲友"}]}
</msg>
<msg timestamp="20240328 13:53:08.499" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.467" endtime="20240328 13:53:08.499"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${data_list}</var>
<arg>${reps.json()}</arg>
<arg>data</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240328 13:53:08.499" level="INFO">${data_list} = [{'value': 0, 'desc': '本人'}, {'value': 1, 'desc': '父母'}, {'value': 2, 'desc': '亲友'}]</msg>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.499"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${relationship}</var>
<arg>random.choice(${data_list})</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240328 13:53:08.499" level="INFO">${relationship} = {'value': 2, 'desc': '亲友'}</msg>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.499"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${familyTies}</var>
<arg>${relationship}</arg>
<arg>desc</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240328 13:53:08.499" level="INFO">${familyTies} = 亲友</msg>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.499"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${familyTiesCode}</var>
<arg>${relationship}</arg>
<arg>value</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240328 13:53:08.499" level="INFO">${familyTiesCode} = 2</msg>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.499"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.499"/>
</iter>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.499"/>
</for>
<for flavor="IN ZIP">
<var>${miId}</var>
<var>${client_header}</var>
<value>${miId_list}</value>
<value>${Cheader_list}</value>
<iter>
<var name="${miId}">970721563563397120</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}</var>
<kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg>
<arg>${${dating}.dating域名}</arg>
<arg>${client_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240328 13:53:08.499" 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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.499"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${relation_data}</var>
<arg>{"familyTies":"${familyTies}","familyTiesCode":${familyTiesCode},"phone":"${phone}","wechatId":"","miId":"${miId}"}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240328 13:53:08.499" level="INFO">${relation_data} = {"familyTies":"亲友","familyTiesCode":2,"phone":"13473579062","wechatId":"","miId":"970721563563397120"}</msg>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.499"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-service/user/save/marriage/seeking/contact</arg>
<arg>${relation_data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<msg timestamp="20240328 13:53:08.499" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240328 13:53:08.556" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/save/marriage/seeking/contact HTTP/1.1" 200 None</msg>
<msg timestamp="20240328 13:53:08.571" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/seeking/contact
path_url=/dating-agency-service/user/save/marriage/seeking/contact
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/g6O5DXHixyNrf7trVdI61848K9KFx+JJaBE/UipIS2C1TD4zVSvl1eQMIUiB2Owo1R/i/dBuvo9n4mKA==', 'Content-Length': '106'}
body=b'{"familyTies":"\xe4\xba\xb2\xe5\x8f\x8b","familyTiesCode":2,"phone":"13473579062","wechatId":"","miId":"970721563563397120"}'
</msg>
<msg timestamp="20240328 13:53:08.571" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/seeking/contact
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 28 Mar 2024 05:53:08 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":"970724361319354368"}
</msg>
<msg timestamp="20240328 13:53:08.571" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.571"/>
</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="20240328 13:53:08.571" level="INFO">${data} = 970724361319354368</msg>
<status status="PASS" starttime="20240328 13:53:08.571" endtime="20240328 13:53:08.571"/>
</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="20240328 13:53:08.571" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240328 13:53:08.571" endtime="20240328 13:53:08.571"/>
</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="20240328 13:53:08.571" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240328 13:53:08.571" endtime="20240328 13:53:08.571"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.571"/>
</iter>
<status status="PASS" starttime="20240328 13:53:08.499" endtime="20240328 13:53:08.571"/>
</for>
<status status="PASS" starttime="20240328 13:53:08.452" endtime="20240328 13:53:08.571"/>
</kw>
<status status="PASS" starttime="20240328 13:53:08.363" endtime="20240328 13:53:08.571"/>
</test>
<doc>资料认证</doc>
<status status="PASS" starttime="20240328 13:53:08.341" endtime="20240328 13:53:08.571"/>
</suite>
<doc>征婚人资料</doc>
<status status="PASS" starttime="20240328 13:53:08.340" endtime="20240328 13:53:08.571"/>
</suite>
<status status="PASS" starttime="20240328 13:53:08.339" endtime="20240328 13:53:08.571"/>
</suite>
<status status="PASS" starttime="20240328 13:53:08.337" endtime="20240328 13:53:08.571"/>
</suite>
<status status="PASS" starttime="20240328 13:53:08.037" endtime="20240328 13:53:08.571"/>
</suite>
<statistics>
<total>
<stat pass="2" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="2" fail="0" skip="0" id="s1" name="Dating-agency">Dating-agency</stat>
<stat pass="1" fail="0" skip="0" id="s1-s1" name="0-Login">Dating-agency.0-Login</stat>
<stat pass="1" fail="0" skip="0" id="s1-s1-s1" name="Login-interface">Dating-agency.0-Login.Login-interface</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2" name="1-Applet">Dating-agency.1-Applet</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1" name="2-Homepage">Dating-agency.1-Applet.2-Homepage</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="MarriageInfo">Dating-agency.1-Applet.2-Homepage.MarriageInfo</stat>
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1-s1" name="DataAuthentication">Dating-agency.1-Applet.2-Homepage.MarriageInfo.DataAuthentication</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>