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.
 
 
 

1662 lines
121 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240407 18:22:00.230" 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="20240407 18:22:00.498" endtime="20240407 18:22:00.513"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="26">
<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="20240407 18:22:00.513" 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="20240407 18:22:00.513" level="INFO">${file} = 手机号
18548157976</msg>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.513"/>
</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="20240407 18:22:00.513" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.513"/>
</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="20240407 18:22:00.513" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.513"/>
</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="20240407 18:22:00.513" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240407 18:22:00.513" level="INFO">${content} = 18548157976</msg>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.513"/>
</kw>
<for flavor="IN">
<var>${id}</var>
<value>${content}</value>
<iter>
<var name="${id}">18548157976</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="20240407 18:22:00.513" level="INFO">${id} = ['18548157976']</msg>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.521"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.521"/>
</iter>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.521"/>
</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="20240407 18:22:00.521" level="INFO">${id} = ['18548157976']</msg>
<status status="PASS" starttime="20240407 18:22:00.521" endtime="20240407 18:22:00.521"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.522"/>
</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="20240407 18:22:00.523" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:00.522" endtime="20240407 18:22:00.523"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 18:22:00.524" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:00.523" endtime="20240407 18:22:00.524"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 18:22:00.524" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:00.524" endtime="20240407 18:22:00.524"/>
</kw>
<for flavor="IN">
<var>${account}</var>
<value>@{id}</value>
<iter>
<var name="${account}">18548157976</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240407 18:22:00.525" endtime="20240407 18:22:00.525"/>
</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="20240407 18:22:00.526" 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="20240407 18:22:00.526" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:00.525" endtime="20240407 18:22:00.526"/>
</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="20240407 18:22:00.526" level="INFO">${data} = { "account":"18548157976", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240407 18:22:00.526" endtime="20240407 18:22:00.527"/>
</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="20240407 18:22:00.530" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:00.610" 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="20240407 18:22:00.610" 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":"18548157976", "accountType":2, "captcha":888888 }'
</msg>
<msg timestamp="20240407 18:22:00.610" 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': 'Sun, 07 Apr 2024 10:22:02 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==","userId":"974358220019732480"}}
</msg>
<msg timestamp="20240407 18:22:00.610" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.527" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${userId} = 974358220019732480</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.524" endtime="20240407 18:22:00.610"/>
</iter>
<status status="PASS" starttime="20240407 18:22:00.524" endtime="20240407 18:22:00.610"/>
</for>
<kw name="Set Variable" library="BuiltIn">
<var>${phone}</var>
<arg>${account}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 18:22:00.610" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${phone}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240407 18:22:00.610" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${userid_list} = ['974358220019732480']</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}"]</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.522" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${login_header}</var>
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">974358220019732480</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 18:22:00.610" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.610"/>
</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="20240407 18:22:00.610" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:00.658" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=974358220019732480 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 18:22:00.658" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=974358220019732480
path_url=/dating-agency-uec/user/list/own-organization?userId=974358220019732480
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240407 18:22:00.659" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=974358220019732480
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 10:22:03 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="20240407 18:22:00.659" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.659"/>
</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="20240407 18:22:00.660" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240407 18:22:00.659" endtime="20240407 18:22:00.660"/>
</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="20240407 18:22:00.661" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 18:22:00.660" endtime="20240407 18:22:00.661"/>
</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="20240407 18:22:00.661" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.661" endtime="20240407 18:22:00.661"/>
</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="20240407 18:22:00.662" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240407 18:22:00.662" endtime="20240407 18:22:00.662"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.661" endtime="20240407 18:22:00.662"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.662"/>
</iter>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.662"/>
</for>
<status status="PASS" starttime="20240407 18:22:00.610" endtime="20240407 18:22:00.662"/>
</kw>
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
<for flavor="IN">
<var>${admin_header}</var>
<value>@{Aheader_list}</value>
<iter>
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==','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="20240407 18:22:00.664" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 18:22:00.664" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:00.663" endtime="20240407 18:22:00.664"/>
</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="20240407 18:22:00.665" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:00.706" 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="20240407 18:22:00.706" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240407 18:22:00.706" 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': 'Sun, 07 Apr 2024 10:22:03 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":"974358220019732480","realName":null,"nickName":null,"phone":"18548157976","matchmakerFlag":false}}
</msg>
<msg timestamp="20240407 18:22:00.706" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.664" endtime="20240407 18:22:00.706"/>
</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="20240407 18:22:00.706" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 18:22:00.706" endtime="20240407 18:22:00.706"/>
</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="20240407 18:22:00.706" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240407 18:22:00.706" endtime="20240407 18:22:00.706"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.663" endtime="20240407 18:22:00.706"/>
</iter>
<status status="PASS" starttime="20240407 18:22:00.663" endtime="20240407 18:22:00.706"/>
</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="20240407 18:22:00.706" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 18:22:00.706" endtime="20240407 18:22:00.706"/>
</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="20240407 18:22:00.706" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240407 18:22:00.706" endtime="20240407 18:22:00.706"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.663" endtime="20240407 18:22:00.706"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.513" endtime="20240407 18:22:00.706"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240407 18:22:00.261" endtime="20240407 18:22:00.706"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240407 18:22:00.261" endtime="20240407 18:22:00.706"/>
</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="3-Customer" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\3-Customer">
<suite id="s1-s2-s1-s1" name="byEquity" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\3-Customer\byEquity.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="20240407 18:22:00.722" endtime="20240407 18:22:00.722"/>
</kw>
<test id="s1-s2-s1-s1-t1" name="用户头像修改权益" line="9">
<kw name="Given 查询婚介征婚人的资料信息" library="EquityResource" 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}">974358220019732480</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}</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="20240407 18:22:00.722" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 18:22:00.722" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:00.722" endtime="20240407 18:22:00.722"/>
</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="20240407 18:22:00.737" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:00.801" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=974358220019732480 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 18:22:00.802" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
path_url=/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}
body=None
</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.808" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">IBM866 Russian confidence = 0.05357220425955006</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">IBM855 Russian confidence = 0.10004203295438706</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">TIS-620 Thai confidence = 0.04943664281746858</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3730374383326199</msg>
<msg timestamp="20240407 18:22:00.809" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.810" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:00.810" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 10:22:03 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":"974393791588995072","isDelete":false,"createTime":"2024-04-07 16:54:08","updateTime":null,"event":null,"accountId":null,"userId":"974358220019732480","nickName":"骑猪追帅哥","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440114,"districtName":"花都区","birthYear":"1996","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":164,"weight":null,"educationCode":5,"education":"博士","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","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,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240407 18:22:00.811" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.722" endtime="20240407 18:22:00.811"/>
</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="20240407 18:22:00.812" level="INFO">${miId} = 974393791588995072</msg>
<status status="PASS" starttime="20240407 18:22:00.811" endtime="20240407 18:22:00.812"/>
</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="20240407 18:22:00.812" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:00.812" endtime="20240407 18:22:00.812"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 18:22:00.813" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:00.813" endtime="20240407 18:22:00.813"/>
</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="20240407 18:22:00.813" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:00.813" endtime="20240407 18:22:00.814"/>
</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="20240407 18:22:00.814" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 18:22:00.814" endtime="20240407 18:22:00.814"/>
</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="20240407 18:22:00.814" endtime="20240407 18:22:00.815"/>
</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="20240407 18:22:00.816" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.815" endtime="20240407 18:22:00.816"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.722" endtime="20240407 18:22:00.816"/>
</iter>
<status status="PASS" starttime="20240407 18:22:00.722" endtime="20240407 18:22:00.816"/>
</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="20240407 18:22:00.817" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:00.817" endtime="20240407 18:22:00.817"/>
</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="20240407 18:22:00.818" level="INFO">${miId_list} = ['974393791588995072']</msg>
<status status="PASS" starttime="20240407 18:22:00.817" endtime="20240407 18:22:00.818"/>
</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="20240407 18:22:00.818" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:00.818" endtime="20240407 18:22:00.818"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.722" endtime="20240407 18:22:00.818"/>
</kw>
<kw name="When 数据库修改用户头像编辑次数" library="EquityResource">
<for flavor="IN">
<var>${miId}</var>
<value>@{miId_list}</value>
<iter>
<var name="${miId}">974393791588995072</var>
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_mall',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="20240407 18:22:00.849" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240407 18:22:00.818" endtime="20240407 18:22:00.890"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${update_1}</var>
<arg>UPDATE `dating_agency_mall`.`da_right` SET `enable` = 1 WHERE `mi_id` = ${miId} AND `type` = '201'</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:00.890" level="INFO">Executing : Execute SQL String | UPDATE `dating_agency_mall`.`da_right` SET `enable` = 1 WHERE `mi_id` = 974393791588995072 AND `type` = '201' </msg>
<msg timestamp="20240407 18:22:00.935" level="INFO">${update_1} = None</msg>
<status status="PASS" starttime="20240407 18:22:00.890" endtime="20240407 18:22:00.935"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check}</var>
<arg>SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '201'</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="20240407 18:22:00.936" level="INFO">Executing : Query | SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '974393791588995072' AND `type` = '201' </msg>
<msg timestamp="20240407 18:22:00.946" level="INFO">${check} = ((974393792058757120,),)</msg>
<status status="PASS" starttime="20240407 18:22:00.935" endtime="20240407 18:22:00.946"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${right_id}</var>
<arg>${check[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 18:22:00.946" level="INFO">${right_id} = 974393792058757120</msg>
<status status="PASS" starttime="20240407 18:22:00.946" endtime="20240407 18:22:00.946"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${update_2}</var>
<arg>UPDATE `dating_agency_mall`.`da_right_term` SET `value` = '10' WHERE `right_id` = ${right_id} AND `name` = 3</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:00.946" level="INFO">Executing : Execute SQL String | UPDATE `dating_agency_mall`.`da_right_term` SET `value` = '10' WHERE `right_id` = 974393792058757120 AND `name` = 3 </msg>
<msg timestamp="20240407 18:22:00.978" level="INFO">${update_2} = None</msg>
<status status="PASS" starttime="20240407 18:22:00.946" endtime="20240407 18:22:00.978"/>
</kw>
<kw name="Disconnect From Database" library="DatabaseLibrary">
<doc>Disconnects from the database.</doc>
<msg timestamp="20240407 18:22:00.994" level="INFO">Executing : Disconnect From Database</msg>
<status status="PASS" starttime="20240407 18:22:00.994" endtime="20240407 18:22:00.995"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.818" endtime="20240407 18:22:00.995"/>
</iter>
<status status="PASS" starttime="20240407 18:22:00.818" endtime="20240407 18:22:00.995"/>
</for>
<status status="PASS" starttime="20240407 18:22:00.818" endtime="20240407 18:22:00.995"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.722" endtime="20240407 18:22:00.995"/>
</test>
<test id="s1-s2-s1-s1-t2" name="用户学历认证权益" line="13">
<kw name="Given 查询婚介征婚人的资料信息" library="EquityResource" 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}">974358220019732480</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}</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="20240407 18:22:00.998" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 18:22:00.998" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:00.997" endtime="20240407 18:22:00.998"/>
</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="20240407 18:22:01.000" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:01.056" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=974358220019732480 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 18:22:01.057" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
path_url=/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}
body=None
</msg>
<msg timestamp="20240407 18:22:01.062" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.062" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">IBM866 Russian confidence = 0.05357220425955006</msg>
<msg timestamp="20240407 18:22:01.063" level="DEBUG">IBM855 Russian confidence = 0.10004203295438706</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">TIS-620 Thai confidence = 0.04943664281746858</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3730374383326199</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.064" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.065" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.065" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.065" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.065" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.065" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.065" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 10:22:03 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":"974393791588995072","isDelete":false,"createTime":"2024-04-07 16:54:08","updateTime":null,"event":null,"accountId":null,"userId":"974358220019732480","nickName":"骑猪追帅哥","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440114,"districtName":"花都区","birthYear":"1996","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":164,"weight":null,"educationCode":5,"education":"博士","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","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,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240407 18:22:01.065" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:00.998" endtime="20240407 18:22:01.065"/>
</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="20240407 18:22:01.066" level="INFO">${miId} = 974393791588995072</msg>
<status status="PASS" starttime="20240407 18:22:01.066" endtime="20240407 18:22:01.066"/>
</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="20240407 18:22:01.067" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.067" endtime="20240407 18:22:01.067"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 18:22:01.068" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:01.068" endtime="20240407 18:22:01.068"/>
</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="20240407 18:22:01.069" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.068" endtime="20240407 18:22:01.069"/>
</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="20240407 18:22:01.069" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 18:22:01.069" endtime="20240407 18:22:01.069"/>
</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="20240407 18:22:01.070" endtime="20240407 18:22:01.070"/>
</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="20240407 18:22:01.070" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 18:22:01.070" endtime="20240407 18:22:01.070"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.997" endtime="20240407 18:22:01.070"/>
</iter>
<status status="PASS" starttime="20240407 18:22:00.995" endtime="20240407 18:22:01.071"/>
</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="20240407 18:22:01.071" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.071" endtime="20240407 18:22:01.071"/>
</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="20240407 18:22:01.072" level="INFO">${miId_list} = ['974393791588995072']</msg>
<status status="PASS" starttime="20240407 18:22:01.071" endtime="20240407 18:22:01.072"/>
</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="20240407 18:22:01.072" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.072" endtime="20240407 18:22:01.072"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.995" endtime="20240407 18:22:01.072"/>
</kw>
<kw name="When 数据库新增学历认证次数" library="EquityResource">
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${miId}</var>
<value>${userid_list}</value>
<value>${miId_list}</value>
<iter>
<var name="${userId}">974358220019732480</var>
<var name="${miId}">974393791588995072</var>
<kw name="Get Current Date" library="DateTime">
<var>${dataTime}</var>
<arg>result_format=%Y-%m-%d %H:%M:%S</arg>
<doc>Returns current local or UTC time with an optional increment.</doc>
<msg timestamp="20240407 18:22:01.073" level="INFO">${dataTime} = 2024-04-07 18:22:01</msg>
<status status="PASS" starttime="20240407 18:22:01.073" endtime="20240407 18:22:01.074"/>
</kw>
<kw name="Add Time To Date" library="DateTime">
<var>${Time}</var>
<arg>${dataTime}</arg>
<arg>30 days</arg>
<doc>Adds time to date and returns the resulting date.</doc>
<msg timestamp="20240407 18:22:01.075" level="INFO">${Time} = 2024-05-07 18:22:01.000</msg>
<status status="PASS" starttime="20240407 18:22:01.074" endtime="20240407 18:22:01.075"/>
</kw>
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_mall',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="20240407 18:22:01.075" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240407 18:22:01.075" endtime="20240407 18:22:01.107"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_1}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${userId}, ${miId}, 101, '${dataTime}', '${Time}', 1)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.107" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974358220019732480, 974393791588995072, 101, '2024-04-07 18:22:01', '2024-05-07 18:22:01.000', 1) </msg>
<msg timestamp="20240407 18:22:01.147" level="INFO">${insert_1} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.107" endtime="20240407 18:22:01.147"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check_1}</var>
<arg>SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '101'</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="20240407 18:22:01.147" level="INFO">Executing : Query | SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '974393791588995072' AND `type` = '101' </msg>
<msg timestamp="20240407 18:22:01.162" level="INFO">${check_1} = ((974393792058757121,),)</msg>
<status status="PASS" starttime="20240407 18:22:01.147" endtime="20240407 18:22:01.162"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${right_id}</var>
<arg>${check_1[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 18:22:01.162" level="INFO">${right_id} = 974393792058757121</msg>
<status status="PASS" starttime="20240407 18:22:01.162" endtime="20240407 18:22:01.162"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_2}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '规格', 1, 102, NULL)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.162" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757121, '规格', 1, 102, NULL) </msg>
<msg timestamp="20240407 18:22:01.210" level="INFO">${insert_2} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.162" endtime="20240407 18:22:01.210"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_3}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益上限额度', 2, 1, '10')</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.210" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757121, '权益上限额度', 2, 1, '10') </msg>
<msg timestamp="20240407 18:22:01.242" level="INFO">${insert_3} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.210" endtime="20240407 18:22:01.242"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_4}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益剩余额度', 3, 1, '10')</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.242" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757121, '权益剩余额度', 3, 1, '10') </msg>
<msg timestamp="20240407 18:22:01.273" level="INFO">${insert_4} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.242" endtime="20240407 18:22:01.273"/>
</kw>
<kw name="Disconnect From Database" library="DatabaseLibrary">
<doc>Disconnects from the database.</doc>
<msg timestamp="20240407 18:22:01.273" level="INFO">Executing : Disconnect From Database</msg>
<status status="PASS" starttime="20240407 18:22:01.273" endtime="20240407 18:22:01.273"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.073" endtime="20240407 18:22:01.273"/>
</iter>
<status status="PASS" starttime="20240407 18:22:01.073" endtime="20240407 18:22:01.288"/>
</for>
<status status="PASS" starttime="20240407 18:22:01.072" endtime="20240407 18:22:01.288"/>
</kw>
<status status="PASS" starttime="20240407 18:22:00.995" endtime="20240407 18:22:01.288"/>
</test>
<test id="s1-s2-s1-s1-t3" name="用户解锁人数权益" line="17">
<kw name="Given 查询婚介征婚人的资料信息" library="EquityResource" 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}">974358220019732480</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}</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="20240407 18:22:01.288" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 18:22:01.288" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:01.288" endtime="20240407 18:22:01.288"/>
</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="20240407 18:22:01.288" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:01.339" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=974358220019732480 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 18:22:01.354" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
path_url=/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}
body=None
</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">IBM866 Russian confidence = 0.05357220425955006</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">IBM855 Russian confidence = 0.10004203295438706</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">TIS-620 Thai confidence = 0.04943664281746858</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3730374383326199</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.354" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 10:22:03 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":"974393791588995072","isDelete":false,"createTime":"2024-04-07 16:54:08","updateTime":null,"event":null,"accountId":null,"userId":"974358220019732480","nickName":"骑猪追帅哥","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440114,"districtName":"花都区","birthYear":"1996","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":164,"weight":null,"educationCode":5,"education":"博士","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","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,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240407 18:22:01.354" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:01.288" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" level="INFO">${miId} = 974393791588995072</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 18:22:01.354" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.288" endtime="20240407 18:22:01.354"/>
</iter>
<status status="PASS" starttime="20240407 18:22:01.288" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.354" level="INFO">${miId_list} = ['974393791588995072']</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.354"/>
</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="20240407 18:22:01.370" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.354" endtime="20240407 18:22:01.370"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.288" endtime="20240407 18:22:01.370"/>
</kw>
<kw name="When 数据库新增解锁人数权益" library="EquityResource">
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${miId}</var>
<value>${userid_list}</value>
<value>${miId_list}</value>
<iter>
<var name="${userId}">974358220019732480</var>
<var name="${miId}">974393791588995072</var>
<kw name="Get Current Date" library="DateTime">
<var>${dataTime}</var>
<arg>result_format=%Y-%m-%d %H:%M:%S</arg>
<doc>Returns current local or UTC time with an optional increment.</doc>
<msg timestamp="20240407 18:22:01.370" level="INFO">${dataTime} = 2024-04-07 18:22:01</msg>
<status status="PASS" starttime="20240407 18:22:01.370" endtime="20240407 18:22:01.370"/>
</kw>
<kw name="Add Time To Date" library="DateTime">
<var>${Time}</var>
<arg>${dataTime}</arg>
<arg>30 days</arg>
<doc>Adds time to date and returns the resulting date.</doc>
<msg timestamp="20240407 18:22:01.370" level="INFO">${Time} = 2024-05-07 18:22:01.000</msg>
<status status="PASS" starttime="20240407 18:22:01.370" endtime="20240407 18:22:01.370"/>
</kw>
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_mall',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="20240407 18:22:01.372" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240407 18:22:01.370" endtime="20240407 18:22:01.436"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_1}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${userId}, ${miId}, 301, '${dataTime}', '${Time}', 1)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.437" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974358220019732480, 974393791588995072, 301, '2024-04-07 18:22:01', '2024-05-07 18:22:01.000', 1) </msg>
<msg timestamp="20240407 18:22:01.466" level="INFO">${insert_1} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.436" endtime="20240407 18:22:01.466"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check_1}</var>
<arg>SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '301'</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="20240407 18:22:01.466" level="INFO">Executing : Query | SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '974393791588995072' AND `type` = '301' </msg>
<msg timestamp="20240407 18:22:01.482" level="INFO">${check_1} = ((974393792058757122,),)</msg>
<status status="PASS" starttime="20240407 18:22:01.466" endtime="20240407 18:22:01.482"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${right_id}</var>
<arg>${check_1[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 18:22:01.482" level="INFO">${right_id} = 974393792058757122</msg>
<status status="PASS" starttime="20240407 18:22:01.482" endtime="20240407 18:22:01.482"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_2}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '规格', 1, 101, NULL)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.482" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757122, '规格', 1, 101, NULL) </msg>
<msg timestamp="20240407 18:22:01.522" level="INFO">${insert_2} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.482" endtime="20240407 18:22:01.522"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_3}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '单日使用上限', 4, 1, '10')</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.522" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757122, '单日使用上限', 4, 1, '10') </msg>
<msg timestamp="20240407 18:22:01.569" level="INFO">${insert_3} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.522" endtime="20240407 18:22:01.569"/>
</kw>
<kw name="Disconnect From Database" library="DatabaseLibrary">
<doc>Disconnects from the database.</doc>
<msg timestamp="20240407 18:22:01.569" level="INFO">Executing : Disconnect From Database</msg>
<status status="PASS" starttime="20240407 18:22:01.569" endtime="20240407 18:22:01.569"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.370" endtime="20240407 18:22:01.569"/>
</iter>
<status status="PASS" starttime="20240407 18:22:01.370" endtime="20240407 18:22:01.569"/>
</for>
<status status="PASS" starttime="20240407 18:22:01.370" endtime="20240407 18:22:01.569"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.288" endtime="20240407 18:22:01.569"/>
</test>
<test id="s1-s2-s1-s1-t4" name="用户高级搜索权益" line="21">
<kw name="Given 查询婚介征婚人的资料信息" library="EquityResource" 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}">974358220019732480</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}</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="20240407 18:22:01.569" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 18:22:01.569" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:01.569" endtime="20240407 18:22:01.569"/>
</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="20240407 18:22:01.569" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:01.633" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=974358220019732480 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 18:22:01.634" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
path_url=/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}
body=None
</msg>
<msg timestamp="20240407 18:22:01.640" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.640" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.640" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.640" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">IBM866 Russian confidence = 0.05357220425955006</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">IBM855 Russian confidence = 0.10004203295438706</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.641" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">TIS-620 Thai confidence = 0.04943664281746858</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3730374383326199</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.642" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.642" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 10:22:04 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":"974393791588995072","isDelete":false,"createTime":"2024-04-07 16:54:08","updateTime":null,"event":null,"accountId":null,"userId":"974358220019732480","nickName":"骑猪追帅哥","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440114,"districtName":"花都区","birthYear":"1996","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":164,"weight":null,"educationCode":5,"education":"博士","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","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,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240407 18:22:01.643" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:01.569" endtime="20240407 18:22:01.643"/>
</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="20240407 18:22:01.644" level="INFO">${miId} = 974393791588995072</msg>
<status status="PASS" starttime="20240407 18:22:01.643" endtime="20240407 18:22:01.644"/>
</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="20240407 18:22:01.644" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.644" endtime="20240407 18:22:01.645"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 18:22:01.645" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:01.645" endtime="20240407 18:22:01.645"/>
</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="20240407 18:22:01.646" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.645" endtime="20240407 18:22:01.646"/>
</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="20240407 18:22:01.647" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 18:22:01.646" endtime="20240407 18:22:01.647"/>
</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="20240407 18:22:01.647" endtime="20240407 18:22:01.647"/>
</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="20240407 18:22:01.647" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 18:22:01.647" endtime="20240407 18:22:01.647"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.569" endtime="20240407 18:22:01.648"/>
</iter>
<status status="PASS" starttime="20240407 18:22:01.569" endtime="20240407 18:22:01.648"/>
</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="20240407 18:22:01.648" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.648" endtime="20240407 18:22:01.648"/>
</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="20240407 18:22:01.649" level="INFO">${miId_list} = ['974393791588995072']</msg>
<status status="PASS" starttime="20240407 18:22:01.648" endtime="20240407 18:22:01.649"/>
</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="20240407 18:22:01.650" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.650" endtime="20240407 18:22:01.650"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.569" endtime="20240407 18:22:01.650"/>
</kw>
<kw name="When 数据库新增高级搜索权益" library="EquityResource">
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${miId}</var>
<value>${userid_list}</value>
<value>${miId_list}</value>
<iter>
<var name="${userId}">974358220019732480</var>
<var name="${miId}">974393791588995072</var>
<kw name="Get Current Date" library="DateTime">
<var>${dataTime}</var>
<arg>result_format=%Y-%m-%d %H:%M:%S</arg>
<doc>Returns current local or UTC time with an optional increment.</doc>
<msg timestamp="20240407 18:22:01.651" level="INFO">${dataTime} = 2024-04-07 18:22:01</msg>
<status status="PASS" starttime="20240407 18:22:01.651" endtime="20240407 18:22:01.651"/>
</kw>
<kw name="Add Time To Date" library="DateTime">
<var>${Time}</var>
<arg>${dataTime}</arg>
<arg>30 days</arg>
<doc>Adds time to date and returns the resulting date.</doc>
<msg timestamp="20240407 18:22:01.651" level="INFO">${Time} = 2024-05-07 18:22:01.000</msg>
<status status="PASS" starttime="20240407 18:22:01.651" endtime="20240407 18:22:01.651"/>
</kw>
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_mall',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="20240407 18:22:01.651" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240407 18:22:01.651" endtime="20240407 18:22:01.692"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_1}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${userId}, ${miId}, 302, '${dataTime}', '${Time}', 1)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.693" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974358220019732480, 974393791588995072, 302, '2024-04-07 18:22:01', '2024-05-07 18:22:01.000', 1) </msg>
<msg timestamp="20240407 18:22:01.722" level="INFO">${insert_1} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.692" endtime="20240407 18:22:01.722"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check_1}</var>
<arg>SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '302'</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="20240407 18:22:01.722" level="INFO">Executing : Query | SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '974393791588995072' AND `type` = '302' </msg>
<msg timestamp="20240407 18:22:01.742" level="INFO">${check_1} = ((974393792058757123,),)</msg>
<status status="PASS" starttime="20240407 18:22:01.722" endtime="20240407 18:22:01.742"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${right_id}</var>
<arg>${check_1[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 18:22:01.743" level="INFO">${right_id} = 974393792058757123</msg>
<status status="PASS" starttime="20240407 18:22:01.742" endtime="20240407 18:22:01.743"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_2}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '规格', 1, 102, NULL)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.744" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757123, '规格', 1, 102, NULL) </msg>
<msg timestamp="20240407 18:22:01.778" level="INFO">${insert_2} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.744" endtime="20240407 18:22:01.778"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_3}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益上限额度', 2, 1, '140')</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.778" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757123, '权益上限额度', 2, 1, '140') </msg>
<msg timestamp="20240407 18:22:01.809" level="INFO">${insert_3} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.778" endtime="20240407 18:22:01.809"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_4}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益剩余额度', 3, 1, '130')</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.809" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757123, '权益剩余额度', 3, 1, '130') </msg>
<msg timestamp="20240407 18:22:01.842" level="INFO">${insert_4} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.809" endtime="20240407 18:22:01.842"/>
</kw>
<kw name="Disconnect From Database" library="DatabaseLibrary">
<doc>Disconnects from the database.</doc>
<msg timestamp="20240407 18:22:01.842" level="INFO">Executing : Disconnect From Database</msg>
<status status="PASS" starttime="20240407 18:22:01.842" endtime="20240407 18:22:01.842"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.651" endtime="20240407 18:22:01.842"/>
</iter>
<status status="PASS" starttime="20240407 18:22:01.651" endtime="20240407 18:22:01.842"/>
</for>
<status status="PASS" starttime="20240407 18:22:01.651" endtime="20240407 18:22:01.842"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.569" endtime="20240407 18:22:01.842"/>
</test>
<test id="s1-s2-s1-s1-t5" name="用户线下约见面权益" line="25">
<kw name="Given 查询婚介征婚人的资料信息" library="EquityResource" 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}">974358220019732480</var>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}</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="20240407 18:22:01.842" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 18:22:01.842" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 18:22:01.842" endtime="20240407 18:22:01.842"/>
</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="20240407 18:22:01.842" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 18:22:01.898" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=974358220019732480 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 18:22:01.898" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
path_url=/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz94lFs27Q+ud/j1OLMnS0fJAxKzNkSchcYb3EoxoW1ouA=='}
body=None
</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">IBM866 Russian confidence = 0.05357220425955006</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">IBM855 Russian confidence = 0.10004203295438706</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">TIS-620 Thai confidence = 0.04943664281746858</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3730374383326199</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 18:22:01.914" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=974358220019732480
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 10:22:04 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":"974393791588995072","isDelete":false,"createTime":"2024-04-07 16:54:08","updateTime":null,"event":null,"accountId":null,"userId":"974358220019732480","nickName":"骑猪追帅哥","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440114,"districtName":"花都区","birthYear":"1996","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":164,"weight":null,"educationCode":5,"education":"博士","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"陪你青丝变白发,陪你朝阳又夕下,我们三餐四季,我们煮茶赏花","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","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,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
</msg>
<msg timestamp="20240407 18:22:01.914" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 18:22:01.842" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="INFO">${miId} = 974393791588995072</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${miId_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 18:22:01.914" level="INFO">${miId_list} = []</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.842" endtime="20240407 18:22:01.914"/>
</iter>
<status status="PASS" starttime="20240407 18:22:01.842" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="INFO">${nickName} = 骑猪追帅哥</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="INFO">${miId_list} = ['974393791588995072']</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</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="20240407 18:22:01.914" level="INFO">${genderCode} = 1</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.842" endtime="20240407 18:22:01.914"/>
</kw>
<kw name="When 数据库新增线下约见面权益" library="EquityResource">
<for flavor="IN ZIP">
<var>${userId}</var>
<var>${miId}</var>
<value>${userid_list}</value>
<value>${miId_list}</value>
<iter>
<var name="${userId}">974358220019732480</var>
<var name="${miId}">974393791588995072</var>
<kw name="Get Current Date" library="DateTime">
<var>${dataTime}</var>
<arg>result_format=%Y-%m-%d %H:%M:%S</arg>
<doc>Returns current local or UTC time with an optional increment.</doc>
<msg timestamp="20240407 18:22:01.914" level="INFO">${dataTime} = 2024-04-07 18:22:01</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</kw>
<kw name="Add Time To Date" library="DateTime">
<var>${Time}</var>
<arg>${dataTime}</arg>
<arg>30 days</arg>
<doc>Adds time to date and returns the resulting date.</doc>
<msg timestamp="20240407 18:22:01.914" level="INFO">${Time} = 2024-05-07 18:22:01.000</msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.914"/>
</kw>
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
<arg>pymysql</arg>
<arg>database='dating_agency_mall',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="20240407 18:22:01.930" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:01.970"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_1}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${userId}, ${miId}, 401, '${dataTime}', '${Time}', 1)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:01.970" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974358220019732480, 974393791588995072, 401, '2024-04-07 18:22:01', '2024-05-07 18:22:01.000', 1) </msg>
<msg timestamp="20240407 18:22:02.010" level="INFO">${insert_1} = None</msg>
<status status="PASS" starttime="20240407 18:22:01.970" endtime="20240407 18:22:02.010"/>
</kw>
<kw name="Query" library="DatabaseLibrary">
<var>${check_1}</var>
<arg>SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '401'</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="20240407 18:22:02.010" level="INFO">Executing : Query | SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '974393791588995072' AND `type` = '401' </msg>
<msg timestamp="20240407 18:22:02.026" level="INFO">${check_1} = ((974393792058757124,),)</msg>
<status status="PASS" starttime="20240407 18:22:02.010" endtime="20240407 18:22:02.026"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${right_id}</var>
<arg>${check_1[0][0]}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 18:22:02.026" level="INFO">${right_id} = 974393792058757124</msg>
<status status="PASS" starttime="20240407 18:22:02.026" endtime="20240407 18:22:02.026"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_2}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '规格', 1, 102, NULL)</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:02.026" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757124, '规格', 1, 102, NULL) </msg>
<msg timestamp="20240407 18:22:02.057" level="INFO">${insert_2} = None</msg>
<status status="PASS" starttime="20240407 18:22:02.026" endtime="20240407 18:22:02.057"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_3}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益上限额度', 2, 1, '1')</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:02.057" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757124, '权益上限额度', 2, 1, '1') </msg>
<msg timestamp="20240407 18:22:02.090" level="INFO">${insert_3} = None</msg>
<status status="PASS" starttime="20240407 18:22:02.057" endtime="20240407 18:22:02.090"/>
</kw>
<kw name="Execute Sql String" library="DatabaseLibrary">
<var>${insert_4}</var>
<arg>INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益剩余额度', 3, 1, '1')</arg>
<doc>Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to
True to run command without an explicit transaction commit or rollback.</doc>
<msg timestamp="20240407 18:22:02.090" level="INFO">Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-04-07 18:22:01', '2024-04-07 18:22:01', 974393792058757124, '权益剩余额度', 3, 1, '1') </msg>
<msg timestamp="20240407 18:22:02.135" level="INFO">${insert_4} = None</msg>
<status status="PASS" starttime="20240407 18:22:02.090" endtime="20240407 18:22:02.135"/>
</kw>
<kw name="Disconnect From Database" library="DatabaseLibrary">
<doc>Disconnects from the database.</doc>
<msg timestamp="20240407 18:22:02.135" level="INFO">Executing : Disconnect From Database</msg>
<status status="PASS" starttime="20240407 18:22:02.135" endtime="20240407 18:22:02.135"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:02.135"/>
</iter>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:02.135"/>
</for>
<status status="PASS" starttime="20240407 18:22:01.914" endtime="20240407 18:22:02.135"/>
</kw>
<status status="PASS" starttime="20240407 18:22:01.842" endtime="20240407 18:22:02.135"/>
</test>
<status status="PASS" starttime="20240407 18:22:00.706" endtime="20240407 18:22:02.135"/>
</suite>
<doc>权益购买</doc>
<status status="PASS" starttime="20240407 18:22:00.706" endtime="20240407 18:22:02.135"/>
</suite>
<status status="PASS" starttime="20240407 18:22:00.706" endtime="20240407 18:22:02.135"/>
</suite>
<status status="PASS" starttime="20240407 18:22:00.245" endtime="20240407 18:22:02.135"/>
</suite>
<statistics>
<total>
<stat pass="6" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="6" 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="5" fail="0" skip="0" id="s1-s2" name="1-Applet">Dating-agency.1-Applet</stat>
<stat pass="5" fail="0" skip="0" id="s1-s2-s1" name="3-Customer">Dating-agency.1-Applet.3-Customer</stat>
<stat pass="5" fail="0" skip="0" id="s1-s2-s1-s1" name="byEquity">Dating-agency.1-Applet.3-Customer.byEquity</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>