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.
 
 
 

1137 lines
78 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240322 11:57:10.464" 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="20240322 11:57:10.626" endtime="20240322 11:57:10.630"/>
</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="20240322 11:57:10.632" 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="20240322 11:57:10.632" level="INFO">${file} = 手机号
13000000035</msg>
<status status="PASS" starttime="20240322 11:57:10.632" endtime="20240322 11:57:10.632"/>
</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="20240322 11:57:10.633" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240322 11:57:10.632" endtime="20240322 11:57:10.633"/>
</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="20240322 11:57:10.633" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240322 11:57:10.633" endtime="20240322 11:57:10.633"/>
</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="20240322 11:57:10.633" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240322 11:57:10.634" level="INFO">${content} = 13000000035</msg>
<status status="PASS" starttime="20240322 11:57:10.633" endtime="20240322 11:57:10.634"/>
</kw>
<for flavor="IN">
<var>${id}</var>
<value>${content}</value>
<iter>
<var name="${id}">13000000035</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="20240322 11:57:10.634" level="INFO">${id} = ['13000000035']</msg>
<status status="PASS" starttime="20240322 11:57:10.634" endtime="20240322 11:57:10.634"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.634" endtime="20240322 11:57:10.635"/>
</iter>
<status status="PASS" starttime="20240322 11:57:10.634" endtime="20240322 11:57:10.635"/>
</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="20240322 11:57:10.635" level="INFO">${id} = ['13000000035']</msg>
<status status="PASS" starttime="20240322 11:57:10.635" endtime="20240322 11:57:10.635"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.631" endtime="20240322 11:57:10.635"/>
</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="20240322 11:57:10.635" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240322 11:57:10.635" endtime="20240322 11:57:10.636"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240322 11:57:10.636" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240322 11:57:10.636" endtime="20240322 11:57:10.636"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240322 11:57:10.636" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240322 11:57:10.636" endtime="20240322 11:57:10.636"/>
</kw>
<for flavor="IN">
<var>${account}</var>
<value>@{id}</value>
<iter>
<var name="${account}">13000000035</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240322 11:57:10.637" endtime="20240322 11:57:10.637"/>
</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="20240322 11:57:10.638" 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="20240322 11:57:10.638" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240322 11:57:10.637" endtime="20240322 11:57:10.639"/>
</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="20240322 11:57:10.639" level="INFO">${data} = { "account":"13000000035", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240322 11:57:10.639" endtime="20240322 11:57:10.639"/>
</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="20240322 11:57:10.642" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240322 11:57:10.733" 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="20240322 11:57:10.734" 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":"13000000035", "accountType":2, "captcha":888888 }'
</msg>
<msg timestamp="20240322 11:57:10.734" 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, 22 Mar 2024 03:57:10 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==","userId":"968520754729717760"}}
</msg>
<msg timestamp="20240322 11:57:10.734" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240322 11:57:10.639" endtime="20240322 11:57:10.734"/>
</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="20240322 11:57:10.736" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240322 11:57:10.735" endtime="20240322 11:57:10.736"/>
</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="20240322 11:57:10.737" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==</msg>
<status status="PASS" starttime="20240322 11:57:10.736" endtime="20240322 11:57:10.737"/>
</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="20240322 11:57:10.738" level="INFO">${userId} = 968520754729717760</msg>
<status status="PASS" starttime="20240322 11:57:10.737" endtime="20240322 11:57:10.738"/>
</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="20240322 11:57:10.738" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240322 11:57:10.738" endtime="20240322 11:57:10.739"/>
</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="20240322 11:57:10.739" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240322 11:57:10.739" endtime="20240322 11:57:10.739"/>
</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="20240322 11:57:10.739" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}</msg>
<status status="PASS" starttime="20240322 11:57:10.739" endtime="20240322 11:57:10.739"/>
</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="20240322 11:57:10.740" endtime="20240322 11:57:10.740"/>
</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="20240322 11:57:10.740" endtime="20240322 11:57:10.740"/>
</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="20240322 11:57:10.740" endtime="20240322 11:57:10.740"/>
</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="20240322 11:57:10.740" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:10.740" endtime="20240322 11:57:10.740"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.740" endtime="20240322 11:57:10.741"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.637" endtime="20240322 11:57:10.741"/>
</iter>
<status status="PASS" starttime="20240322 11:57:10.637" endtime="20240322 11:57:10.741"/>
</for>
<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="20240322 11:57:10.741" level="INFO">${userid_list} = ['968520754729717760']</msg>
<status status="PASS" starttime="20240322 11:57:10.741" endtime="20240322 11:57:10.741"/>
</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="20240322 11:57:10.742" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240322 11:57:10.742" endtime="20240322 11:57:10.742"/>
</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="20240322 11:57:10.743" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}"]</msg>
<status status="PASS" starttime="20240322 11:57:10.742" endtime="20240322 11:57:10.743"/>
</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="20240322 11:57:10.743" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240322 11:57:10.743" endtime="20240322 11:57:10.743"/>
</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="20240322 11:57:10.744" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}</msg>
<status status="PASS" starttime="20240322 11:57:10.743" endtime="20240322 11:57:10.744"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.635" endtime="20240322 11:57:10.744"/>
</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="20240322 11:57:10.745" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240322 11:57:10.744" endtime="20240322 11:57:10.745"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${login_header}</var>
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">968520754729717760</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240322 11:57:10.745" endtime="20240322 11:57:10.745"/>
</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="20240322 11:57:10.746" 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240322 11:57:10.746" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240322 11:57:10.746" endtime="20240322 11:57:10.747"/>
</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="20240322 11:57:10.748" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240322 11:57:10.784" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=968520754729717760 HTTP/1.1" 200 None</msg>
<msg timestamp="20240322 11:57:10.785" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968520754729717760
path_url=/dating-agency-uec/user/list/own-organization?userId=968520754729717760
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240322 11:57:10.785" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968520754729717760
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:10 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="20240322 11:57:10.785" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240322 11:57:10.747" endtime="20240322 11:57:10.785"/>
</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="20240322 11:57:10.786" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240322 11:57:10.785" endtime="20240322 11:57:10.786"/>
</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="20240322 11:57:10.787" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240322 11:57:10.786" endtime="20240322 11:57:10.787"/>
</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="20240322 11:57:10.787" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:10.787" endtime="20240322 11:57:10.787"/>
</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="20240322 11:57:10.788" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240322 11:57:10.788" endtime="20240322 11:57:10.788"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.788" endtime="20240322 11:57:10.788"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.745" endtime="20240322 11:57:10.788"/>
</iter>
<status status="PASS" starttime="20240322 11:57:10.745" endtime="20240322 11:57:10.789"/>
</for>
<status status="PASS" starttime="20240322 11:57:10.744" endtime="20240322 11:57:10.789"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.630" endtime="20240322 11:57:10.789"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240322 11:57:10.507" endtime="20240322 11:57:10.789"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240322 11:57:10.505" endtime="20240322 11:57:10.790"/>
</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="20240322 11:57:10.815" endtime="20240322 11:57:10.816"/>
</kw>
<test id="s1-s2-s1-s1-s1-t1" name="提交征婚人头像审核信息-无审核中" line="8">
<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}">968520754729717760</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}</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="20240322 11:57:10.819" 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240322 11:57:10.819" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240322 11:57:10.819" endtime="20240322 11:57:10.820"/>
</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="20240322 11:57:10.821" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240322 11:57:10.950" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=968520754729717760 HTTP/1.1" 200 None</msg>
<msg timestamp="20240322 11:57:10.951" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
body=None
</msg>
<msg timestamp="20240322 11:57:10.956" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240322 11:57:10.956" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.956" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.956" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.956" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.956" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">IBM866 Russian confidence = 0.03682661832283783</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">IBM855 Russian confidence = 0.1023959631415491</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.957" level="DEBUG">TIS-620 Thai confidence = 0.07421312498245872</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4080377860420616</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.958" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240322 11:57:10.959" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:10 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":"968520756990447616","isDelete":false,"createTime":"2024-03-22 11:56:48","updateTime":null,"event":null,"accountId":null,"userId":968520754729717760,"nickName":"寻伴用户191","name":null,"profilePhoto":null,"identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440184,"districtName":"从化市","birthYear":"1994","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":207,"weight":null,"educationCode":2,"education":"大专","maritalStatusCode":1,"maritalStatusName":"离异","minimumIncome":50001,"maximumIncome":99999999,"incomeCode":6,"income":"50000以上","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240322 11:57:10.959" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240322 11:57:10.820" endtime="20240322 11:57:10.959"/>
</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="20240322 11:57:10.959" level="INFO">${miId} = 968520756990447616</msg>
<status status="PASS" starttime="20240322 11:57:10.959" endtime="20240322 11:57:10.959"/>
</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="20240322 11:57:10.960" level="INFO">${nickName} = 寻伴用户191</msg>
<status status="PASS" starttime="20240322 11:57:10.959" endtime="20240322 11:57:10.960"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240322 11:57:10.960" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240322 11:57:10.960" endtime="20240322 11:57:10.960"/>
</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="20240322 11:57:10.961" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240322 11:57:10.961" endtime="20240322 11:57:10.961"/>
</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="20240322 11:57:10.962" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240322 11:57:10.961" endtime="20240322 11:57:10.962"/>
</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="20240322 11:57:10.962" endtime="20240322 11:57:10.962"/>
</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="20240322 11:57:10.963" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:10.963" endtime="20240322 11:57:10.963"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.818" endtime="20240322 11:57:10.963"/>
</iter>
<status status="PASS" starttime="20240322 11:57:10.818" endtime="20240322 11:57:10.963"/>
</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="20240322 11:57:10.964" level="INFO">${nickName} = 寻伴用户191</msg>
<status status="PASS" starttime="20240322 11:57:10.963" endtime="20240322 11:57:10.964"/>
</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="20240322 11:57:10.964" level="INFO">${miId_list} = ['968520756990447616']</msg>
<status status="PASS" starttime="20240322 11:57:10.964" endtime="20240322 11:57:10.965"/>
</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="20240322 11:57:10.965" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240322 11:57:10.965" endtime="20240322 11:57:10.965"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.818" endtime="20240322 11:57:10.965"/>
</kw>
<kw name="When 提交婚介征婚人头像审核" library="Authentication" sourcename="提交${dating}征婚人头像审核">
<kw name="Create List" library="BuiltIn">
<var>${manImgList}</var>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/6b1f0e91c84f97fe76737a9bc9605222.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/13430ed896298bcd0ac46f09bf29ece7.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/59004ca9250de9fec6fbb95e6eed6760.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/c5644ac57b91fad169833894a8409fb8.png"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/3e416c672e4a0240d86bd233afc12fb7.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/8048e38b0d4a73f7d06fc1b17995ac6b.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/ed369df1698455041d3caa43e358a998.png"]</arg>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240322 11:57:10.966" level="INFO">${manImgList} = ['["https://dating-agency-test.oss-accelerate.aliyuncs.com/6b1f0e91c84f97fe76737a9bc9605222.jpg"]', '["https://dating-agency-test.oss-accelerate.aliyuncs.com/13430ed896298bcd0ac46f09bf29ece7.jpg"]', '...</msg>
<status status="PASS" starttime="20240322 11:57:10.966" endtime="20240322 11:57:10.966"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${manImgUrl}</var>
<arg>random.choice(${manImgList})</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240322 11:57:10.967" level="INFO">${manImgUrl} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/59004ca9250de9fec6fbb95e6eed6760.jpg"]</msg>
<status status="PASS" starttime="20240322 11:57:10.966" endtime="20240322 11:57:10.967"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${womanImgList}</var>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/45d5a86455d48686b6677c6e08c38294.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/f2c441ab2e2bc63afdb0182c3e9365a3.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/520d2089fac428d3b84f9d25db93dd31.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/302803c1647500313cc114de59af053e.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/c97da67055186388335cfb73af718948.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/27491660b76a7ded1f0cad84d0fa136f.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/d586c7311f15bbca574bb10ee2590941.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/73a607e091bfa2696e5c76ea282e3fad.jpg"]</arg>
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg"]</arg>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240322 11:57:10.967" level="INFO">${womanImgList} = ['["https://dating-agency-test.oss-accelerate.aliyuncs.com/45d5a86455d48686b6677c6e08c38294.jpg"]', '["https://dating-agency-test.oss-accelerate.aliyuncs.com/f2c441ab2e2bc63afdb0182c3e9365a3.jpg"]', '...</msg>
<status status="PASS" starttime="20240322 11:57:10.967" endtime="20240322 11:57:10.967"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${womanImgUrl}</var>
<arg>random.choice(${womanImgList})</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240322 11:57:10.968" level="INFO">${womanImgUrl} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg"]</msg>
<status status="PASS" starttime="20240322 11:57:10.967" endtime="20240322 11:57:10.968"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${authenticationCode}</var>
<arg>8</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240322 11:57:10.968" level="INFO">${authenticationCode} = 8</msg>
<status status="PASS" starttime="20240322 11:57:10.968" endtime="20240322 11:57:10.968"/>
</kw>
<for flavor="IN ZIP">
<var>${miId}</var>
<var>${client_header}</var>
<value>${miId_list}</value>
<value>${Cheader_list}</value>
<iter>
<var name="${miId}">968520756990447616</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}</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="20240322 11:57:10.970" 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240322 11:57:10.970" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240322 11:57:10.969" endtime="20240322 11:57:10.970"/>
</kw>
<kw name="Set Variable If" library="BuiltIn">
<var>${data}</var>
<arg>${genderCode}==1</arg>
<arg>{ \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${womanImgUrl} }</arg>
<arg>{ \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${manImgUrl} }</arg>
<doc>Sets variable based on the given condition.</doc>
<msg timestamp="20240322 11:57:10.971" level="INFO">${data} = { "authenticationCode": 8, "miId": "968520756990447616", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg"] }</msg>
<status status="PASS" starttime="20240322 11:57:10.970" endtime="20240322 11:57:10.971"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-service/user/save/certification/audit</arg>
<arg>${data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<msg timestamp="20240322 11:57:10.972" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240322 11:57:12.186" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/save/certification/audit HTTP/1.1" 200 None</msg>
<msg timestamp="20240322 11:57:12.186" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
path_url=/dating-agency-service/user/save/certification/audit
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'Content-Length': '176'}
body=b'{ "authenticationCode": 8, "miId": "968520756990447616", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg"] }'
</msg>
<msg timestamp="20240322 11:57:12.186" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:12 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":"968520855837609984"}
</msg>
<msg timestamp="20240322 11:57:12.187" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240322 11:57:10.971" endtime="20240322 11:57:12.187"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${auditId}</var>
<arg>${reps.json()}</arg>
<arg>data</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240322 11:57:12.188" level="INFO">${auditId} = 968520855837609984</msg>
<status status="PASS" starttime="20240322 11:57:12.187" endtime="20240322 11:57:12.188"/>
</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="20240322 11:57:12.189" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240322 11:57:12.188" endtime="20240322 11:57:12.189"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${auditId}==None</arg>
<arg>Should Be Equal As Strings</arg>
<arg>${message}</arg>
<arg>正在审核中!请等待审核完成。</arg>
<arg>ELSE</arg>
<arg>Should Be Equal As Strings</arg>
<arg>${message}</arg>
<arg>successful</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="20240322 11:57:12.191" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.191" endtime="20240322 11:57:12.191"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.189" endtime="20240322 11:57:12.191"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${auditId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240322 11:57:12.192" level="INFO">${auditId} = 968520855837609984</msg>
<status status="PASS" starttime="20240322 11:57:12.191" endtime="20240322 11:57:12.192"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.969" endtime="20240322 11:57:12.192"/>
</iter>
<status status="PASS" starttime="20240322 11:57:10.968" endtime="20240322 11:57:12.192"/>
</for>
<status status="PASS" starttime="20240322 11:57:10.965" endtime="20240322 11:57:12.192"/>
</kw>
<kw name="Then 查询数据库头像审核表" library="Authentication">
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'</arg>
<doc>Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
connect to the database using the map string `db_custom_param_string`.</doc>
<msg timestamp="20240322 11:57:12.340" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240322 11:57:12.193" endtime="20240322 11:57:12.387"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check}</var>
<arg>SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${auditId}' AND `authentication_code` = '8' AND `is_delete` = '0'</arg>
<doc>Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
input `sansTran` to True to run command without an explicit transaction commit or rollback.
Set optional input `returnAsDict` to True to return values as a list of dictionaries.</doc>
<msg timestamp="20240322 11:57:12.389" level="INFO">Executing : Query | SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '968520855837609984' AND `authentication_code` = '8' AND `is_delete` = '0' </msg>
<msg timestamp="20240322 11:57:12.408" level="INFO">${check} = ((968520855837609984,),)</msg>
<status status="PASS" starttime="20240322 11:57:12.389" endtime="20240322 11:57:12.408"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${id}</var>
<arg>${check[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240322 11:57:12.409" level="INFO">${id} = 968520855837609984</msg>
<status status="PASS" starttime="20240322 11:57:12.408" endtime="20240322 11:57:12.409"/>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<arg>${id}</arg>
<arg>${auditId}</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc>
<msg timestamp="20240322 11:57:12.410" level="INFO">Argument types are:
&lt;class 'int'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.410" endtime="20240322 11:57:12.410"/>
</kw>
<kw name="Disconnect From Database" library="DatabaseLibrary">
<doc>Disconnects from the database.</doc>
<msg timestamp="20240322 11:57:12.410" level="INFO">Executing : Disconnect From Database</msg>
<status status="PASS" starttime="20240322 11:57:12.410" endtime="20240322 11:57:12.411"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.192" endtime="20240322 11:57:12.411"/>
</kw>
<kw name="And 查询婚介征婚人的资料信息" 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}">968520754729717760</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}</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="20240322 11:57:12.413" 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240322 11:57:12.413" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240322 11:57:12.412" endtime="20240322 11:57:12.413"/>
</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="20240322 11:57:12.414" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240322 11:57:12.532" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=968520754729717760 HTTP/1.1" 200 None</msg>
<msg timestamp="20240322 11:57:12.532" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
body=None
</msg>
<msg timestamp="20240322 11:57:12.537" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240322 11:57:12.537" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.537" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.537" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.537" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.537" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">IBM866 Russian confidence = 0.03682661832283783</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">IBM855 Russian confidence = 0.1023959631415491</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.538" level="DEBUG">TIS-620 Thai confidence = 0.07421312498245872</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4188033100971302</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.539" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.540" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:12 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":"968520756990447616","isDelete":false,"createTime":"2024-03-22 11:56:48","updateTime":null,"event":null,"accountId":null,"userId":968520754729717760,"nickName":"寻伴用户191","name":null,"profilePhoto":null,"identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440184,"districtName":"从化市","birthYear":"1994","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":207,"weight":null,"educationCode":2,"education":"大专","maritalStatusCode":1,"maritalStatusName":"离异","minimumIncome":50001,"maximumIncome":99999999,"incomeCode":6,"income":"50000以上","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":{"id":"968520855942467584","isDelete":null,"createTime":"2024-03-22 11:57:11","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg","auditImgId":null,"auditStatus":0},"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240322 11:57:12.540" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.413" endtime="20240322 11:57:12.540"/>
</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="20240322 11:57:12.541" level="INFO">${miId} = 968520756990447616</msg>
<status status="PASS" starttime="20240322 11:57:12.540" endtime="20240322 11:57:12.541"/>
</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="20240322 11:57:12.542" level="INFO">${nickName} = 寻伴用户191</msg>
<status status="PASS" starttime="20240322 11:57:12.541" endtime="20240322 11:57:12.542"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240322 11:57:12.542" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240322 11:57:12.542" endtime="20240322 11:57:12.542"/>
</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="20240322 11:57:12.543" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240322 11:57:12.542" endtime="20240322 11:57:12.543"/>
</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="20240322 11:57:12.544" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240322 11:57:12.543" endtime="20240322 11:57:12.544"/>
</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="20240322 11:57:12.544" endtime="20240322 11:57:12.544"/>
</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="20240322 11:57:12.545" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.544" endtime="20240322 11:57:12.545"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.412" endtime="20240322 11:57:12.545"/>
</iter>
<status status="PASS" starttime="20240322 11:57:12.412" endtime="20240322 11:57:12.545"/>
</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="20240322 11:57:12.545" level="INFO">${nickName} = 寻伴用户191</msg>
<status status="PASS" starttime="20240322 11:57:12.545" endtime="20240322 11:57:12.546"/>
</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="20240322 11:57:12.546" level="INFO">${miId_list} = ['968520756990447616']</msg>
<status status="PASS" starttime="20240322 11:57:12.546" endtime="20240322 11:57:12.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="20240322 11:57:12.547" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240322 11:57:12.546" endtime="20240322 11:57:12.547"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.411" endtime="20240322 11:57:12.547"/>
</kw>
<status status="PASS" starttime="20240322 11:57:10.817" endtime="20240322 11:57:12.547"/>
</test>
<doc>资料认证</doc>
<status status="PASS" starttime="20240322 11:57:10.795" endtime="20240322 11:57:12.547"/>
</suite>
<doc>征婚人资料</doc>
<status status="PASS" starttime="20240322 11:57:10.794" endtime="20240322 11:57:12.548"/>
</suite>
<status status="PASS" starttime="20240322 11:57:10.793" endtime="20240322 11:57:12.549"/>
</suite>
<status status="PASS" starttime="20240322 11:57:10.791" endtime="20240322 11:57:12.550"/>
</suite>
<suite id="s1-s3" name="2-Web" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web">
<suite id="s1-s3-s1" name="InfoAudit" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web\InfoAudit">
<suite id="s1-s3-s1-s1" name="AuditInfomation" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web\InfoAudit\AuditInfomation.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="20240322 11:57:12.563" endtime="20240322 11:57:12.566"/>
</kw>
<test id="s1-s3-s1-s1-t1" name="审核征婚人提交的资料-相册" line="6">
<kw name="Given 查询婚介平台用户资料数据" library="Infomation" sourcename="查询${dating}平台用户资料数据">
<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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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="20240322 11:57:12.569" 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240322 11:57:12.569" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240322 11:57:12.568" endtime="20240322 11:57:12.569"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-service/user/get/marriage/information/audit/page</arg>
<arg>params=pageSize=10&amp;name=${nickName}&amp;pageNum=1</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240322 11:57:12.570" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240322 11:57:12.697" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&amp;name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&amp;pageNum=1 HTTP/1.1" 200 None</msg>
<msg timestamp="20240322 11:57:12.697" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&amp;name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&amp;pageNum=1
path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&amp;name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&amp;pageNum=1
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.699" level="DEBUG">IBM866 Russian confidence = 0.23629837648049792</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">IBM855 Russian confidence = 0.11946195699847396</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">windows-1251 Bulgarian confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4610874738847395</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240322 11:57:12.700" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.701" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.701" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.701" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.701" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.701" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.701" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240322 11:57:12.701" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&amp;name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&amp;pageNum=1
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:12 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"records":[{"id":"968520855837609984","phone":"13000000035","name":"寻伴用户191","status":0,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-22 11:57:11","auditTime":null}],"total":1,"size":10,"current":1,"pages":1}}
</msg>
<msg timestamp="20240322 11:57:12.701" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.569" endtime="20240322 11:57:12.701"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${records}</var>
<arg>${reps.json()['data']}</arg>
<arg>records</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240322 11:57:12.702" level="INFO">${records} = [{'id': '968520855837609984', 'phone': '13000000035', 'name': '寻伴用户191', 'status': 0, 'authenticationCode': 8, 'authenticationName': '头像审核', 'createTime': '2024-03-22 11:57:11', 'auditTime': None}]</msg>
<status status="PASS" starttime="20240322 11:57:12.702" endtime="20240322 11:57:12.703"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.568" endtime="20240322 11:57:12.703"/>
</iter>
<status status="PASS" starttime="20240322 11:57:12.567" endtime="20240322 11:57:12.703"/>
</for>
<for flavor="IN">
<var>${info}</var>
<value>@{records}</value>
<iter>
<var name="${info}">{'id': '968520855837609984', 'phone': '13000000035', 'name': '寻伴用户191', 'status': 0, 'authenticationCode': 8, 'authenticationName': '头像审核', 'createTime': '2024-03-22 11:57:11', 'auditTime': None}</var>
<kw name="Get From Dictionary" library="Collections">
<var>${InfoId}</var>
<arg>${info}</arg>
<arg>id</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240322 11:57:12.704" level="INFO">${InfoId} = 968520855837609984</msg>
<status status="PASS" starttime="20240322 11:57:12.703" endtime="20240322 11:57:12.704"/>
</kw>
<kw name="Exit For Loop If" library="BuiltIn">
<arg>${InfoId}==${auditId}</arg>
<doc>Stops executing the enclosing FOR loop if the ``condition`` is true.</doc>
<msg timestamp="20240322 11:57:12.705" level="INFO">Exiting for loop altogether.</msg>
<status status="PASS" starttime="20240322 11:57:12.704" endtime="20240322 11:57:12.705"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.703" endtime="20240322 11:57:12.705"/>
</iter>
<status status="PASS" starttime="20240322 11:57:12.703" endtime="20240322 11:57:12.705"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${InfoId}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240322 11:57:12.706" level="INFO">${InfoId} = 968520855837609984</msg>
<status status="PASS" starttime="20240322 11:57:12.705" endtime="20240322 11:57:12.706"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.567" endtime="20240322 11:57:12.706"/>
</kw>
<kw name="When 查询婚介平台审核资料-审核通过" library="Infomation" sourcename="查询${dating}平台审核资料-审核通过">
<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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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="20240322 11:57:12.708" 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240322 11:57:12.708" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240322 11:57:12.707" endtime="20240322 11:57:12.708"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${data}</var>
<arg>{"id":"${InfoId}","status":1}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240322 11:57:12.709" level="INFO">${data} = {"id":"968520855837609984","status":1}</msg>
<status status="PASS" starttime="20240322 11:57:12.708" endtime="20240322 11:57:12.709"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-service/user/exe/certification/audit</arg>
<arg>${data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<msg timestamp="20240322 11:57:12.710" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240322 11:57:12.888" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/exe/certification/audit HTTP/1.1" 200 None</msg>
<msg timestamp="20240322 11:57:12.888" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
path_url=/dating-agency-service/user/exe/certification/audit
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'}
body=b'{"id":"968520855837609984","status":1}'
</msg>
<msg timestamp="20240322 11:57:12.888" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:12 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":"968520855837609984"}
</msg>
<msg timestamp="20240322 11:57:12.888" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.709" endtime="20240322 11:57:12.888"/>
</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="20240322 11:57:12.890" level="INFO">${data} = 968520855837609984</msg>
<status status="PASS" starttime="20240322 11:57:12.888" endtime="20240322 11:57:12.890"/>
</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="20240322 11:57:12.890" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240322 11:57:12.890" endtime="20240322 11:57:12.890"/>
</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="20240322 11:57:12.891" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.891" endtime="20240322 11:57:12.891"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${data}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240322 11:57:12.891" level="INFO">${data} = 968520855837609984</msg>
<status status="PASS" starttime="20240322 11:57:12.891" endtime="20240322 11:57:12.892"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.707" endtime="20240322 11:57:12.892"/>
</iter>
<status status="PASS" starttime="20240322 11:57:12.707" endtime="20240322 11:57:12.892"/>
</for>
<status status="PASS" starttime="20240322 11:57:12.706" endtime="20240322 11:57:12.892"/>
</kw>
<kw name="Then 查询数据库审核表数据" library="Infomation">
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'</arg>
<doc>Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
connect to the database using the map string `db_custom_param_string`.</doc>
<msg timestamp="20240322 11:57:12.893" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240322 11:57:12.893" endtime="20240322 11:57:12.932"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check}</var>
<arg>SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${data}'</arg>
<doc>Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
input `sansTran` to True to run command without an explicit transaction commit or rollback.
Set optional input `returnAsDict` to True to return values as a list of dictionaries.</doc>
<msg timestamp="20240322 11:57:12.933" level="INFO">Executing : Query | SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '968520855837609984' </msg>
<msg timestamp="20240322 11:57:12.949" level="INFO">${check} = ((1,),)</msg>
<status status="PASS" starttime="20240322 11:57:12.933" endtime="20240322 11:57:12.949"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${status}</var>
<arg>${check[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240322 11:57:12.950" level="INFO">${status} = 1</msg>
<status status="PASS" starttime="20240322 11:57:12.949" endtime="20240322 11:57:12.950"/>
</kw>
<kw name="Should Be Equal As Numbers" library="BuiltIn">
<arg>${status}</arg>
<arg>1</arg>
<doc>Fails if objects are unequal after converting them to real numbers.</doc>
<msg timestamp="20240322 11:57:12.950" level="INFO">Argument types are:
&lt;class 'int'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240322 11:57:12.950" endtime="20240322 11:57:12.950"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.892" endtime="20240322 11:57:12.950"/>
</kw>
<status status="PASS" starttime="20240322 11:57:12.566" endtime="20240322 11:57:12.950"/>
</test>
<status status="PASS" starttime="20240322 11:57:12.554" endtime="20240322 11:57:12.951"/>
</suite>
<doc>资料审核</doc>
<status status="PASS" starttime="20240322 11:57:12.552" endtime="20240322 11:57:12.951"/>
</suite>
<status status="PASS" starttime="20240322 11:57:12.551" endtime="20240322 11:57:12.952"/>
</suite>
<status status="PASS" starttime="20240322 11:57:10.476" endtime="20240322 11:57:12.953"/>
</suite>
<statistics>
<total>
<stat pass="3" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="3" 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>
<stat pass="1" fail="0" skip="0" id="s1-s3" name="2-Web">Dating-agency.2-Web</stat>
<stat pass="1" fail="0" skip="0" id="s1-s3-s1" name="InfoAudit">Dating-agency.2-Web.InfoAudit</stat>
<stat pass="1" fail="0" skip="0" id="s1-s3-s1-s1" name="AuditInfomation">Dating-agency.2-Web.InfoAudit.AuditInfomation</stat>
</suite>
</statistics>
<errors>
<msg timestamp="20240322 11:57:10.814" level="ERROR">Error in file 'D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo\DataAuthentication.robot' on line 5: Resource file '..\..\0-Login\LoginResource.robot' does not exist.</msg>
</errors>
</robot>