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.
1012 lines
70 KiB
1012 lines
70 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240327 15:42:14.564" 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="20240327 15:42:14.786" endtime="20240327 15:42:14.786"/>
|
|
</kw>
|
|
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="17">
|
|
<kw name="Given 读取TXT文件" library="LoginResource">
|
|
<kw name="Get File" library="OperatingSystem">
|
|
<var>${file}</var>
|
|
<arg>D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt</arg>
|
|
<doc>Returns the contents of a specified file.</doc>
|
|
<msg timestamp="20240327 15:42:14.786" level="INFO" html="true">Getting file '<a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt">D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt</a>'.</msg>
|
|
<msg timestamp="20240327 15:42:14.802" level="INFO">${file} = 手机号
|
|
15873640527</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.786" endtime="20240327 15:42:14.802"/>
|
|
</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="20240327 15:42:14.802" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.802" endtime="20240327 15:42:14.802"/>
|
|
</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="20240327 15:42:14.802" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.802" endtime="20240327 15:42:14.802"/>
|
|
</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="20240327 15:42:14.802" level="INFO">1 out of 2 lines matched</msg>
|
|
<msg timestamp="20240327 15:42:14.802" level="INFO">${content} = 15873640527</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.802" endtime="20240327 15:42:14.802"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">15873640527</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="20240327 15:42:14.802" level="INFO">${id} = ['15873640527']</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.802" endtime="20240327 15:42:14.802"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.802" endtime="20240327 15:42:14.802"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:14.802" endtime="20240327 15:42:14.805"/>
|
|
</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="20240327 15:42:14.805" level="INFO">${id} = ['15873640527']</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.805" endtime="20240327 15:42:14.805"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.786" endtime="20240327 15:42:14.806"/>
|
|
</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="20240327 15:42:14.807" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.807" endtime="20240327 15:42:14.807"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240327 15:42:14.807" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.807" endtime="20240327 15:42:14.808"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240327 15:42:14.808" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.808" endtime="20240327 15:42:14.808"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">15873640527</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240327 15:42:14.808" endtime="20240327 15:42:14.810"/>
|
|
</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="20240327 15:42:14.811" 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="20240327 15:42:14.811" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.810" endtime="20240327 15:42:14.811"/>
|
|
</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="20240327 15:42:14.812" level="INFO">${data} = { "account":"15873640527", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.811" endtime="20240327 15:42:14.812"/>
|
|
</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="20240327 15:42:14.815" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240327 15:42:14.904" 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="20240327 15:42:14.904" 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":"15873640527", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:14.904" 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': 'Wed, 27 Mar 2024 07:42:14 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==","userId":"970373193472806912"}}
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:14.904" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.812" endtime="20240327 15:42:14.904"/>
|
|
</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="20240327 15:42:14.904" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.904" endtime="20240327 15:42:14.904"/>
|
|
</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="20240327 15:42:14.904" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.904" endtime="20240327 15:42:14.904"/>
|
|
</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="20240327 15:42:14.904" level="INFO">${userId} = 970373193472806912</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.904" endtime="20240327 15:42:14.904"/>
|
|
</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="20240327 15:42:14.904" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.904" endtime="20240327 15:42:14.904"/>
|
|
</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="20240327 15:42:14.904" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.904" endtime="20240327 15:42:14.904"/>
|
|
</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="20240327 15:42:14.920" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.920" endtime="20240327 15:42:14.920"/>
|
|
</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="20240327 15:42:14.920" endtime="20240327 15:42:14.920"/>
|
|
</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="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.808" endtime="20240327 15:42:14.921"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:14.808" endtime="20240327 15:42:14.921"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${userid_list}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240327 15:42:14.921" level="INFO">${userid_list} = ['970373193472806912']</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}"]</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.806" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">970373193472806912</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240327 15:42:14.921" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.921"/>
|
|
</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="20240327 15:42:14.921" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240327 15:42:14.962" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=970373193472806912 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240327 15:42:14.962" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970373193472806912
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=970373193472806912
|
|
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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:14.962" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970373193472806912
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:15 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="20240327 15:42:14.962" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.962"/>
|
|
</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="20240327 15:42:14.962" level="INFO">${data} = []</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.962" endtime="20240327 15:42:14.962"/>
|
|
</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="20240327 15:42:14.962" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.962" endtime="20240327 15:42:14.962"/>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<msg timestamp="20240327 15:42:14.962" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.962" endtime="20240327 15:42:14.962"/>
|
|
</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="20240327 15:42:14.962" level="INFO">未获取到组织信息!</msg>
|
|
<status status="PASS" starttime="20240327 15:42:14.962" endtime="20240327 15:42:14.962"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.962" endtime="20240327 15:42:14.962"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.962"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.962"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240327 15:42:14.921" endtime="20240327 15:42:14.962"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:14.786" endtime="20240327 15:42:14.962"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240327 15:42:14.596" endtime="20240327 15:42:14.962"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240327 15:42:14.596" endtime="20240327 15:42:14.978"/>
|
|
</suite>
|
|
<suite id="s1-s2" name="1-Applet" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet">
|
|
<suite id="s1-s2-s1" name="2-Homepage" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage">
|
|
<suite id="s1-s2-s1-s1" name="MarriageInfo" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo">
|
|
<suite id="s1-s2-s1-s1-s1" name="DataAuthentication" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo\DataAuthentication.robot">
|
|
<kw name="Import Variables" library="BuiltIn" type="SETUP">
|
|
<arg>${EXECDIR}\\DA_data.yaml</arg>
|
|
<doc>Imports a variable file with the given path and optional arguments.</doc>
|
|
<status status="PASS" starttime="20240327 15:42:15.019" endtime="20240327 15:42:15.021"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-s1-t1" name="提交征婚人学历认证" line="72">
|
|
<kw name="Given 查询婚介征婚人的资料信息" library="Authentication" sourcename="查询${dating}征婚人的资料信息">
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">970373193472806912</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}</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="20240327 15:42:15.024" 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240327 15:42:15.024" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.023" endtime="20240327 15:42:15.025"/>
|
|
</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="20240327 15:42:15.026" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240327 15:42:15.114" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=970373193472806912 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240327 15:42:15.114" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970373193472806912
|
|
path_url=/dating-agency-service/user/get/marriage/information/details?userId=970373193472806912
|
|
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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">MacCyrillic Russian confidence = 0.025028488474569878</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">IBM866 Russian confidence = 0.03584846061623734</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">IBM855 Russian confidence = 0.06631813313747058</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">TIS-620 Thai confidence = 0.052240941021551225</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3812489858339177</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970373193472806912
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:15 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":"970373194894675968","isDelete":false,"createTime":"2024-03-27 14:37:43","updateTime":null,"event":null,"accountId":null,"userId":"970373193472806912","nickName":"有一个朋友","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/aea0caca25438b7490305cd4c704d515.jpg","identityCard":null,"genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440103,"districtName":"荔湾区","birthYear":"1989","birthDate":null,"constellationCode":10,"constellation":"天蝎座","chineseZodiacCode":null,"chineseZodiac":null,"height":183,"weight":67,"educationCode":0,"education":"高中及以下","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":50001,"maximumIncome":999999,"incomeCode":6,"income":"50000以上","diplomaVerificationCode":null,"describeInfo":"男,89年,183/67。广东人,在上海工作,外企财务会计。寻觅一个三品好,三观一致的女生为伴。","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":2,"nation":"蒙古族","bodilyFormCode":0,"bodilyForm":"偏瘦","accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":9,"industry":"广告/市场","occupationCode":70,"occupation":"广告客户专员","onlyChild":null,"carPurchaseSituationCode":0,"carPurchaseSituation":"未购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","auditProfilePhoto":null,"photoList":[{"id":"970374492671053824","isDelete":false,"createTime":"2024-03-27 14:42:53","updateTime":null,"event":null,"miId":970373194894675968,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/647e941c007594cd32d977b172efe58a.jpg","auditImgId":970374491320487936,"auditStatus":1},{"id":"970374492754939904","isDelete":false,"createTime":"2024-03-27 14:42:53","updateTime":null,"event":null,"miId":970373194894675968,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/122668a4d1cc4fcffd91fc3d2934fc8b.jpg","auditImgId":970374491404374016,"auditStatus":1},{"id":"970374575324008448","isDelete":false,"createTime":"2024-03-27 14:43:13","updateTime":null,"event":null,"miId":970373194894675968,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/bc07ad3c778a592b48a48a01a6e6bcee.jpg","auditImgId":970374573990219776,"auditStatus":1}],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:15.130" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.025" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="INFO">${miId} = 970373194894675968</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="INFO">${nickName} = 有一个朋友</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${miId_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240327 15:42:15.130" level="INFO">${miId_list} = []</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:15.023" endtime="20240327 15:42:15.130"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:15.023" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="INFO">${nickName} = 有一个朋友</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="INFO">${miId_list} = ['970373194894675968']</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</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="20240327 15:42:15.130" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.130"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:15.022" endtime="20240327 15:42:15.130"/>
|
|
</kw>
|
|
<kw name="When 提交婚介征婚人的学历审核" library="Authentication" sourcename="提交${dating}征婚人的学历审核">
|
|
<kw name="数据库新增学历认证次数" library="Authentication">
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${miId}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${miId_list}</value>
|
|
<iter>
|
|
<var name="${userId}">970373193472806912</var>
|
|
<var name="${miId}">970373194894675968</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="20240327 15:42:15.145" level="INFO">${dataTime} = 2024-03-27 15:42:15</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.145" endtime="20240327 15:42:15.145"/>
|
|
</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="20240327 15:42:15.145" level="INFO">${Time} = 2024-04-26 15:42:15.000</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.145" endtime="20240327 15:42:15.145"/>
|
|
</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="20240327 15:42:15.266" 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="20240327 15:42:15.145" endtime="20240327 15:42:15.298"/>
|
|
</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="20240327 15:42:15.298" 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-03-27 15:42:15', '2024-03-27 15:42:15', 970373193472806912, 970373194894675968, 101, '2024-03-27 15:42:15', '2024-04-26 15:42:15.000', 1) </msg>
|
|
<msg timestamp="20240327 15:42:15.338" level="INFO">${insert_1} = None</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.298" endtime="20240327 15:42:15.338"/>
|
|
</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="20240327 15:42:15.338" level="INFO">Executing : Query | SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '970373194894675968' AND `type` = '101' </msg>
|
|
<msg timestamp="20240327 15:42:15.354" level="INFO">${check_1} = ((970388913854222337,),)</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.338" endtime="20240327 15:42:15.354"/>
|
|
</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="20240327 15:42:15.354" level="INFO">${right_id} = 970388913854222337</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.354" endtime="20240327 15:42:15.354"/>
|
|
</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="20240327 15:42:15.354" 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-03-27 15:42:15', '2024-03-27 15:42:15', 970388913854222337, '规格', 1, 102, NULL) </msg>
|
|
<msg timestamp="20240327 15:42:15.386" level="INFO">${insert_2} = None</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.354" endtime="20240327 15:42:15.386"/>
|
|
</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="20240327 15:42:15.386" 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-03-27 15:42:15', '2024-03-27 15:42:15', 970388913854222337, '权益上限额度', 2, 1, '10') </msg>
|
|
<msg timestamp="20240327 15:42:15.417" level="INFO">${insert_3} = None</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.386" endtime="20240327 15:42:15.417"/>
|
|
</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="20240327 15:42:15.417" 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-03-27 15:42:15', '2024-03-27 15:42:15', 970388913854222337, '权益剩余额度', 3, 1, '10') </msg>
|
|
<msg timestamp="20240327 15:42:15.448" level="INFO">${insert_4} = None</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.417" endtime="20240327 15:42:15.448"/>
|
|
</kw>
|
|
<kw name="Disconnect From Database" library="DatabaseLibrary">
|
|
<doc>Disconnects from the database.</doc>
|
|
<msg timestamp="20240327 15:42:15.448" level="INFO">Executing : Disconnect From Database</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.448" endtime="20240327 15:42:15.448"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:15.145" endtime="20240327 15:42:15.448"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.448"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:15.448"/>
|
|
</kw>
|
|
<kw name="Generate Random String" library="String">
|
|
<var>${value}</var>
|
|
<arg>18</arg>
|
|
<arg>[NUMBERS]</arg>
|
|
<doc>Generates a string with a desired ``length`` from the given ``chars``.</doc>
|
|
<msg timestamp="20240327 15:42:15.448" level="INFO">${value} = 385902779063200111</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.448" endtime="20240327 15:42:15.448"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${authenticationCode}</var>
|
|
<arg>1</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240327 15:42:15.448" level="INFO">${authenticationCode} = 1</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.448" endtime="20240327 15:42:15.448"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${miId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${miId_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${miId}">970373194894675968</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}</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="20240327 15:42:15.448" 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240327 15:42:15.448" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.448" endtime="20240327 15:42:15.448"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{ \ \ \ \ "authenticationCode":"${authenticationCode}", \ \ \ \ "miId":"${miId}", \ \ \ \ "value":"${value}" }</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240327 15:42:15.464" level="INFO">${data} = { "authenticationCode":"1", "miId":"970373194894675968", "value":"385902779063200111" }</msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.464" endtime="20240327 15:42:15.464"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/save/certification/audit</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240327 15:42:15.466" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240327 15:42:16.005" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/save/certification/audit HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240327 15:42:16.005" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
|
|
path_url=/dating-agency-service/user/save/certification/audit
|
|
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'Content-Length': '99'}
|
|
body=b'{ "authenticationCode":"1", "miId":"970373194894675968", "value":"385902779063200111" }'
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:16.005" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:16 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":"970389435034243072"}
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:16.005" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240327 15:42:15.465" endtime="20240327 15:42:16.005"/>
|
|
</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="20240327 15:42:16.005" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.005" endtime="20240327 15:42:16.005"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${auditId}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>data</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240327 15:42:16.005" level="INFO">${auditId} = 970389435034243072</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.005" endtime="20240327 15:42:16.005"/>
|
|
</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="20240327 15:42:16.005" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.005" endtime="20240327 15:42:16.005"/>
|
|
</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="20240327 15:42:16.005" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.005" endtime="20240327 15:42:16.005"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:16.005" endtime="20240327 15:42:16.005"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:15.448" endtime="20240327 15:42:16.005"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:15.448" endtime="20240327 15:42:16.005"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${auditId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240327 15:42:16.005" level="INFO">${auditId} = 970389435034243072</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.005" endtime="20240327 15:42:16.005"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:15.130" endtime="20240327 15:42:16.005"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:15.021" endtime="20240327 15:42:16.005"/>
|
|
</test>
|
|
<doc>资料认证</doc>
|
|
<status status="PASS" starttime="20240327 15:42:14.978" endtime="20240327 15:42:16.005"/>
|
|
</suite>
|
|
<doc>征婚人资料</doc>
|
|
<status status="PASS" starttime="20240327 15:42:14.978" endtime="20240327 15:42:16.005"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240327 15:42:14.978" endtime="20240327 15:42:16.005"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240327 15:42:14.978" endtime="20240327 15:42:16.005"/>
|
|
</suite>
|
|
<suite id="s1-s3" name="2-Web" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web">
|
|
<suite id="s1-s3-s1" name="InfoAudit" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web\InfoAudit">
|
|
<suite id="s1-s3-s1-s1" name="AuditInfomation" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Web\InfoAudit\AuditInfomation.robot">
|
|
<kw name="Import Variables" library="BuiltIn" type="SETUP">
|
|
<arg>${EXECDIR}\\DA_data.yaml</arg>
|
|
<doc>Imports a variable file with the given path and optional arguments.</doc>
|
|
<status status="PASS" starttime="20240327 15:42:16.021" endtime="20240327 15:42:16.036"/>
|
|
</kw>
|
|
<test id="s1-s3-s1-s1-t1" name="审核征婚人提交的资料-相册" line="6">
|
|
<kw name="Given 查询婚介平台用户资料数据" library="Infomation" sourcename="查询${dating}平台用户资料数据">
|
|
<for flavor="IN">
|
|
<var>${admin_header}</var>
|
|
<value>@{Aheader_list}</value>
|
|
<iter>
|
|
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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="20240327 15:42:16.036" 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240327 15:42:16.036" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.036" endtime="20240327 15:42:16.036"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/marriage/information/audit/page</arg>
|
|
<arg>params=pageSize=10&name=${nickName}&pageNum=1</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240327 15:42:16.036" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&pageNum=1 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&pageNum=1
|
|
path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&pageNum=1
|
|
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">IBM866 Russian confidence = 0.13980738330325287</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">IBM855 Russian confidence = 0.06643547608588603</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">TIS-620 Thai confidence = 0.024273653192915787</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">ISO-8859-9 Turkish confidence = 0.3993243290407528</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&pageNum=1
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:16 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":{"records":[{"id":"970389435034243072","phone":"15873640527","name":"有一个朋友","status":0,"authenticationCode":1,"authenticationName":"学历认证","createTime":"2024-03-27 15:42:15","auditTime":null},{"id":"970374636846059520","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-27 14:43:27","auditTime":"2024-03-27 14:43:28"},{"id":"970374573902139392","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":6,"authenticationName":"相册审核","createTime":"2024-03-27 14:43:12","auditTime":"2024-03-27 14:43:13"},{"id":"970374491190464512","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":6,"authenticationName":"相册审核","createTime":"2024-03-27 14:42:53","auditTime":"2024-03-27 14:42:53"},{"id":"970374383229079552","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-27 14:42:27","auditTime":"2024-03-27 14:42:28"},{"id":"970373213626437632","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-27 14:37:48","auditTime":"2024-03-27 14:37:58"}],"total":6,"size":10,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:16.099" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.036" endtime="20240327 15:42:16.099"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${records}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>records</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240327 15:42:16.099" level="INFO">${records} = [{'id': '970389435034243072', 'phone': '15873640527', 'name': '有一个朋友', 'status': 0, 'authenticationCode': 1, 'authenticationName': '学历认证', 'createTime': '2024-03-27 15:42:15', 'auditTime': None}, {'id...</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.099" endtime="20240327 15:42:16.099"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:16.036" endtime="20240327 15:42:16.099"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:16.036" endtime="20240327 15:42:16.099"/>
|
|
</for>
|
|
<for flavor="IN">
|
|
<var>${info}</var>
|
|
<value>@{records}</value>
|
|
<iter>
|
|
<var name="${info}">{'id': '970389435034243072', 'phone': '15873640527', 'name': '有一个朋友', 'status': 0, 'authenticationCode': 1, 'authenticationName': '学历认证', 'createTime': '2024-03-27 15:42:15', 'auditTime': None}</var>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${InfoId}</var>
|
|
<arg>${info}</arg>
|
|
<arg>id</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240327 15:42:16.099" level="INFO">${InfoId} = 970389435034243072</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.099" endtime="20240327 15:42:16.099"/>
|
|
</kw>
|
|
<kw name="Exit For Loop If" library="BuiltIn">
|
|
<arg>${InfoId}==${auditId}</arg>
|
|
<doc>Stops executing the enclosing FOR loop if the ``condition`` is true.</doc>
|
|
<msg timestamp="20240327 15:42:16.099" level="INFO">Exiting for loop altogether.</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.099" endtime="20240327 15:42:16.099"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:16.099" endtime="20240327 15:42:16.099"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:16.099" endtime="20240327 15:42:16.099"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${InfoId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240327 15:42:16.099" level="INFO">${InfoId} = 970389435034243072</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.099" endtime="20240327 15:42:16.099"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:16.036" endtime="20240327 15:42:16.099"/>
|
|
</kw>
|
|
<kw name="When 查询婚介平台审核资料-审核通过" library="Infomation" sourcename="查询${dating}平台审核资料-审核通过">
|
|
<for flavor="IN">
|
|
<var>${admin_header}</var>
|
|
<value>@{Aheader_list}</value>
|
|
<iter>
|
|
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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="20240327 15:42:16.115" 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240327 15:42:16.115" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.115" endtime="20240327 15:42:16.115"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{"id":"${InfoId}","status":1}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240327 15:42:16.115" level="INFO">${data} = {"id":"970389435034243072","status":1}</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.115" endtime="20240327 15:42:16.115"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/exe/certification/audit</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240327 15:42:16.115" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240327 15:42:16.273" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/exe/certification/audit HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240327 15:42:16.273" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
|
|
path_url=/dating-agency-service/user/exe/certification/audit
|
|
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'}
|
|
body=b'{"id":"970389435034243072","status":1}'
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:16.273" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:16 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":"970389435034243072"}
|
|
</msg>
|
|
<msg timestamp="20240327 15:42:16.273" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.115" endtime="20240327 15:42:16.273"/>
|
|
</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="20240327 15:42:16.273" level="INFO">${data} = 970389435034243072</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.273" endtime="20240327 15:42:16.273"/>
|
|
</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="20240327 15:42:16.273" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.273" endtime="20240327 15:42:16.273"/>
|
|
</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="20240327 15:42:16.273" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.273" endtime="20240327 15:42:16.273"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${data}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240327 15:42:16.273" level="INFO">${data} = 970389435034243072</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.273" endtime="20240327 15:42:16.273"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:16.115" endtime="20240327 15:42:16.273"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240327 15:42:16.115" endtime="20240327 15:42:16.273"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240327 15:42:16.099" endtime="20240327 15:42:16.273"/>
|
|
</kw>
|
|
<kw name="Then 查询数据库审核表数据" library="Infomation">
|
|
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
|
|
<arg>pymysql</arg>
|
|
<arg>database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'</arg>
|
|
<doc>Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
|
|
connect to the database using the map string `db_custom_param_string`.</doc>
|
|
<msg timestamp="20240327 15:42:16.273" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.273" endtime="20240327 15:42:16.327"/>
|
|
</kw>
|
|
<kw name="Query" library="DatabaseLibrary">
|
|
<var>${check}</var>
|
|
<arg>SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${data}'</arg>
|
|
<doc>Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
|
|
input `sansTran` to True to run command without an explicit transaction commit or rollback.
|
|
Set optional input `returnAsDict` to True to return values as a list of dictionaries.</doc>
|
|
<msg timestamp="20240327 15:42:16.327" level="INFO">Executing : Query | SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '970389435034243072' </msg>
|
|
<msg timestamp="20240327 15:42:16.346" level="INFO">${check} = ((1,),)</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.327" endtime="20240327 15:42:16.346"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${status}</var>
|
|
<arg>${check[0][0]}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240327 15:42:16.346" level="INFO">${status} = 1</msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.346" endtime="20240327 15:42:16.346"/>
|
|
</kw>
|
|
<kw name="Should Be Equal As Numbers" library="BuiltIn">
|
|
<arg>${status}</arg>
|
|
<arg>1</arg>
|
|
<doc>Fails if objects are unequal after converting them to real numbers.</doc>
|
|
<msg timestamp="20240327 15:42:16.346" level="INFO">Argument types are:
|
|
<class 'int'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240327 15:42:16.346" endtime="20240327 15:42:16.346"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:16.273" endtime="20240327 15:42:16.346"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240327 15:42:16.036" endtime="20240327 15:42:16.346"/>
|
|
</test>
|
|
<status status="PASS" starttime="20240327 15:42:16.021" endtime="20240327 15:42:16.346"/>
|
|
</suite>
|
|
<doc>资料审核</doc>
|
|
<status status="PASS" starttime="20240327 15:42:16.021" endtime="20240327 15:42:16.346"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240327 15:42:16.021" endtime="20240327 15:42:16.346"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240327 15:42:14.580" endtime="20240327 15:42:16.346"/>
|
|
</suite>
|
|
<statistics>
|
|
<total>
|
|
<stat pass="3" fail="0" skip="0">All Tests</stat>
|
|
</total>
|
|
<tag>
|
|
</tag>
|
|
<suite>
|
|
<stat pass="3" fail="0" skip="0" id="s1" name="Dating-agency">Dating-agency</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s1" name="0-Login">Dating-agency.0-Login</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s1-s1" name="Login-interface">Dating-agency.0-Login.Login-interface</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2" name="1-Applet">Dating-agency.1-Applet</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1" name="2-Homepage">Dating-agency.1-Applet.2-Homepage</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="MarriageInfo">Dating-agency.1-Applet.2-Homepage.MarriageInfo</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1-s1" name="DataAuthentication">Dating-agency.1-Applet.2-Homepage.MarriageInfo.DataAuthentication</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s3" name="2-Web">Dating-agency.2-Web</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s3-s1" name="InfoAudit">Dating-agency.2-Web.InfoAudit</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s3-s1-s1" name="AuditInfomation">Dating-agency.2-Web.InfoAudit.AuditInfomation</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
</errors>
|
|
</robot>
|