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.
 
 
 

489 lines
29 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240523 10:49:37.956" 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="20240523 10:49:37.987" endtime="20240523 10:49:37.987"/>
</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="20240523 10:49:38.414" endtime="20240523 10:49:38.429"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888,phone" line="34">
<kw name="Given 生成随机手机号" library="LoginResource">
<kw name="Create List" library="BuiltIn">
<var>${phoneList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240523 10:49:38.429" level="INFO">${phoneList} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${phoneList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240523 10:49:38.429" level="INFO">${phoneList} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${num}</var>
<arg>random.choice(["139","188","185","136","158","151","132","156","189","187","135","134"])</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240523 10:49:38.429" level="INFO">${num} = 185</msg>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${number}</var>
<arg>"".join(random.sample("01234567897",8))</arg>
<arg>random,string</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240523 10:49:38.429" level="INFO">${number} = 45198367</msg>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${phone}</var>
<arg>${num}${number}</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240523 10:49:38.429" level="INFO">${phone} = 18545198367</msg>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${phoneList}</arg>
<arg>${phone}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${phoneList}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240523 10:49:38.429" level="INFO">${phoneList} = [18545198367]</msg>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.429"/>
</kw>
<kw name="When 用户手机号验证码登录婚介平台-phone" library="LoginResource" sourcename="用户手机号验证码登录${dating}平台-phone">
<kw name="Create List" library="BuiltIn">
<var>${userid_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240523 10:49:38.438" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.438" endtime="20240523 10:49:38.438"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240523 10:49:38.438" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.438" endtime="20240523 10:49:38.438"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240523 10:49:38.439" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.438" endtime="20240523 10:49:38.439"/>
</kw>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240523 10:49:38.439" endtime="20240523 10:49:38.439"/>
</kw>
<for flavor="IN">
<var>${phone}</var>
<value>@{phoneList}</value>
<iter>
<var name="${phone}">18545198367</var>
<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="20240523 10:49:38.440" 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="20240523 10:49:38.440" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240523 10:49:38.439" endtime="20240523 10:49:38.441"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${data}</var>
<arg>{ \ \ "account":"${phone}", \ \ "accountType":2, \ \ "captcha":888888 }</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240523 10:49:38.441" level="INFO">${data} = { "account":"18545198367", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240523 10:49:38.441" endtime="20240523 10:49:38.441"/>
</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="20240523 10:49:38.444" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240523 10:49:38.544" 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="20240523 10:49:38.544" 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":"18545198367", "accountType":2, "captcha":888888 }'
</msg>
<msg timestamp="20240523 10:49:38.544" 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, 23 May 2024 02:49:38 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/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==","userId":"990971902271033344"}}
</msg>
<msg timestamp="20240523 10:49:38.544" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240523 10:49:38.441" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240523 10:49:38.544" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==</msg>
<status status="PASS" starttime="20240523 10:49:38.544" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" level="INFO">${userId} = 990971902271033344</msg>
<status status="PASS" starttime="20240523 10:49:38.544" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240523 10:49:38.544" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240523 10:49:38.544" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg=='}</msg>
<status status="PASS" starttime="20240523 10:49:38.544" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" endtime="20240523 10:49:38.544"/>
</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="20240523 10:49:38.544" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${phoneList}</arg>
<arg>${phone}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.439" endtime="20240523 10:49:38.560"/>
</iter>
<status status="PASS" starttime="20240523 10:49:38.439" endtime="20240523 10:49:38.560"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${phoneList}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240523 10:49:38.560" level="INFO">${phoneList} = [18545198367, 18545198367]</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="INFO">${userid_list} = ['990971902271033344']</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg=='}"]</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg=='}</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${login_header}</var>
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">990971902271033344</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" 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/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240523 10:49:38.560" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.560"/>
</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="20240523 10:49:38.560" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240523 10:49:38.606" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=990971902271033344 HTTP/1.1" 200 None</msg>
<msg timestamp="20240523 10:49:38.606" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=990971902271033344
path_url=/dating-agency-uec/user/list/own-organization?userId=990971902271033344
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/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240523 10:49:38.607" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=990971902271033344
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 23 May 2024 02:49:38 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="20240523 10:49:38.607" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.607"/>
</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="20240523 10:49:38.608" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.607" endtime="20240523 10:49:38.608"/>
</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="20240523 10:49:38.609" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240523 10:49:38.608" endtime="20240523 10:49:38.609"/>
</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="20240523 10:49:38.610" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240523 10:49:38.609" endtime="20240523 10:49:38.610"/>
</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="20240523 10:49:38.610" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240523 10:49:38.610" endtime="20240523 10:49:38.611"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.610" endtime="20240523 10:49:38.611"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.611"/>
</iter>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.611"/>
</for>
<status status="PASS" starttime="20240523 10:49:38.560" endtime="20240523 10:49:38.611"/>
</kw>
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
<kw name="Create List" library="BuiltIn">
<var>${matchmakerFlagList}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240523 10:49:38.612" level="INFO">${matchmakerFlagList} = []</msg>
<status status="PASS" starttime="20240523 10:49:38.612" endtime="20240523 10:49:38.612"/>
</kw>
<for flavor="IN">
<var>${admin_header}</var>
<value>@{Aheader_list}</value>
<iter>
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==','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="20240523 10:49:38.613" 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/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240523 10:49:38.613" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240523 10:49:38.613" endtime="20240523 10:49:38.613"/>
</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="20240523 10:49:38.615" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240523 10:49:38.648" 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="20240523 10:49:38.648" 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/g6O5DXHixyNrf7trhtP5bb5LTFTojKf0lUJzRzIynhHOkOn5c7en8uSR+WVENfrFdWOwdUXqq6wCzGcg==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240523 10:49:38.648" 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': 'Thu, 23 May 2024 02:49:38 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":"990971902271033344","realName":null,"nickName":null,"phone":"18545198367","matchmakerFlag":false}}
</msg>
<msg timestamp="20240523 10:49:38.648" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240523 10:49:38.614" endtime="20240523 10:49:38.648"/>
</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="20240523 10:49:38.648" level="INFO">${phone} = 18545198367</msg>
<status status="PASS" starttime="20240523 10:49:38.648" endtime="20240523 10:49:38.648"/>
</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="20240523 10:49:38.664" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240523 10:49:38.648" endtime="20240523 10:49:38.664"/>
</kw>
<kw name="Append To List" library="Collections">
<arg>${matchmakerFlagList}</arg>
<arg>${matchmakerFlag}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240523 10:49:38.664" endtime="20240523 10:49:38.664"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.612" endtime="20240523 10:49:38.664"/>
</iter>
<status status="PASS" starttime="20240523 10:49:38.612" endtime="20240523 10:49:38.664"/>
</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="20240523 10:49:38.664" level="INFO">${phone} = 18545198367</msg>
<status status="PASS" starttime="20240523 10:49:38.664" endtime="20240523 10:49:38.664"/>
</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="20240523 10:49:38.667" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240523 10:49:38.664" endtime="20240523 10:49:38.667"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmakerFlagList}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240523 10:49:38.668" level="INFO">${matchmakerFlagList} = [False]</msg>
<status status="PASS" starttime="20240523 10:49:38.667" endtime="20240523 10:49:38.668"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.611" endtime="20240523 10:49:38.668"/>
</kw>
<kw name="Then 写入数据到txt文件" library="LoginResource">
<kw name="Set Variable" library="BuiltIn">
<var>${file_path}</var>
<arg>${EXECDIR}\\Phone.txt</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240523 10:49:38.669" level="INFO">${file_path} = D:\LYL\Study\Robot_framework\space\Dating-agency\Phone.txt</msg>
<status status="PASS" starttime="20240523 10:49:38.669" endtime="20240523 10:49:38.669"/>
</kw>
<kw name="Append To File" library="OperatingSystem">
<arg>${file_path}</arg>
<arg>${phone},888888\n</arg>
<doc>Appends the given content to the specified file.</doc>
<msg timestamp="20240523 10:49:38.670" level="INFO" html="true">Appended to file '&lt;a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\Phone.txt"&gt;D:\LYL\Study\Robot_framework\space\Dating-agency\Phone.txt&lt;/a&gt;'.</msg>
<status status="PASS" starttime="20240523 10:49:38.669" endtime="20240523 10:49:38.670"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.668" endtime="20240523 10:49:38.671"/>
</kw>
<status status="PASS" starttime="20240523 10:49:38.429" endtime="20240523 10:49:38.671"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240523 10:49:37.987" endtime="20240523 10:49:38.671"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240523 10:49:37.987" endtime="20240523 10:49:38.672"/>
</suite>
<status status="PASS" starttime="20240523 10:49:37.972" endtime="20240523 10:49:38.673"/>
</suite>
<statistics>
<total>
<stat pass="1" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="1" 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>
</suite>
</statistics>
<errors>
</errors>
</robot>