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.
905 lines
60 KiB
905 lines
60 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240326 17:52:41.206" 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="20240326 17:52:41.363" endtime="20240326 17:52:41.379"/>
|
|
</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="20240326 17:52:41.381" 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="20240326 17:52:41.382" level="INFO">${file} = 手机号
|
|
18024004975</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.381" endtime="20240326 17:52:41.382"/>
|
|
</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="20240326 17:52:41.382" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.382" endtime="20240326 17:52:41.382"/>
|
|
</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="20240326 17:52:41.383" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.383" endtime="20240326 17:52:41.383"/>
|
|
</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="20240326 17:52:41.383" level="INFO">1 out of 2 lines matched</msg>
|
|
<msg timestamp="20240326 17:52:41.384" level="INFO">${content} = 18024004975</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.383" endtime="20240326 17:52:41.384"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">18024004975</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="20240326 17:52:41.384" level="INFO">${id} = ['18024004975']</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.384" endtime="20240326 17:52:41.384"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.384" endtime="20240326 17:52:41.385"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240326 17:52:41.384" endtime="20240326 17:52:41.385"/>
|
|
</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="20240326 17:52:41.385" level="INFO">${id} = ['18024004975']</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.385" endtime="20240326 17:52:41.385"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.381" endtime="20240326 17:52:41.385"/>
|
|
</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="20240326 17:52:41.386" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.386" endtime="20240326 17:52:41.386"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240326 17:52:41.387" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.386" endtime="20240326 17:52:41.387"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240326 17:52:41.387" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.387" endtime="20240326 17:52:41.387"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">18024004975</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240326 17:52:41.388" endtime="20240326 17:52:41.388"/>
|
|
</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="20240326 17:52:41.389" 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="20240326 17:52:41.389" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.388" endtime="20240326 17:52:41.389"/>
|
|
</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="20240326 17:52:41.389" level="INFO">${data} = { "account":"18024004975", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.389" endtime="20240326 17:52:41.390"/>
|
|
</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="20240326 17:52:41.392" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240326 17:52:41.490" 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="20240326 17:52:41.490" 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":"18024004975", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:41.490" 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': 'Tue, 26 Mar 2024 09:52:41 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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==","userId":"970050670893862912"}}
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:41.490" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.390" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${userId} = 970050670893862912</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.387" endtime="20240326 17:52:41.490"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240326 17:52:41.387" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${userid_list} = ['970050670893862912']</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}"]</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.386" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">970050670893862912</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" 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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240326 17:52:41.490" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.490"/>
|
|
</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="20240326 17:52:41.490" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240326 17:52:41.531" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=970050670893862912 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240326 17:52:41.531" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970050670893862912
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=970050670893862912
|
|
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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:41.547" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970050670893862912
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 09:52:41 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="20240326 17:52:41.547" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.547"/>
|
|
</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="20240326 17:52:41.547" level="INFO">${data} = []</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.547" endtime="20240326 17:52:41.547"/>
|
|
</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="20240326 17:52:41.547" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.547" endtime="20240326 17:52:41.547"/>
|
|
</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="20240326 17:52:41.547" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.547" endtime="20240326 17:52:41.547"/>
|
|
</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="20240326 17:52:41.550" level="INFO">未获取到组织信息!</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.550" endtime="20240326 17:52:41.550"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.550" endtime="20240326 17:52:41.550"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.550"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.550"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240326 17:52:41.490" endtime="20240326 17:52:41.551"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.380" endtime="20240326 17:52:41.551"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240326 17:52:41.253" endtime="20240326 17:52:41.551"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240326 17:52:41.253" endtime="20240326 17:52:41.552"/>
|
|
</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="1-WriteInfo" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\1-WriteInfo">
|
|
<suite id="s1-s2-s1-s1" name="Infomation" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\1-WriteInfo\Infomation.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="20240326 17:52:41.626" endtime="20240326 17:52:41.626"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-t1" name="用户首次填写资料" line="9">
|
|
<kw name="Given 首次查询婚介征婚人资料" library="InfoResource" 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}">970050670893862912</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240326 17:52:41.626" endtime="20240326 17:52:41.626"/>
|
|
</kw>
|
|
<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="20240326 17:52:41.642" 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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240326 17:52:41.642" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.642" endtime="20240326 17:52:41.643"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/get/first/fill/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240326 17:52:41.643" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240326 17:52:41.703" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240326 17:52:41.704" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912
|
|
path_url=/dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912
|
|
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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:41.706" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240326 17:52:41.706" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.706" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.706" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">MacCyrillic Russian confidence = 0.07067734829635543</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">IBM866 Russian confidence = 0.0245229823750533</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">IBM855 Russian confidence = 0.09653491474624158</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">ISO-8859-9 Turkish confidence = 0.35009888583693505</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 09:52:41 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":"970050689193611264","accountId":null,"userId":null,"nickName":"庞承承","genderCode":0,"homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440106,"districtName":"天河区","birthYear":"1983","educationCode":3,"education":"大学本科","incomeCode":2,"income":"5001~8000","height":"168","maritalStatusCode":null,"maritalStatusName":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440900,"hometownCityName":"茂名市","fillSerialNumber":8}}
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.643" endtime="20240326 17:52:41.707"/>
|
|
</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="20240326 17:52:41.707" level="INFO">${Data} = {'id': '970050689193611264', 'accountId': None, 'userId': None, 'nickName': '庞承承', 'genderCode': 0, 'homeCountryCode': None, 'homeCountry': None, 'provinceCode': 440000, 'provinceName': '广东省', 'cityCo...</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${DataId}</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="20240326 17:52:41.707" level="INFO">${DataId} = 970050689193611264</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${fillSerialNumber}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>fillSerialNumber</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240326 17:52:41.707" level="INFO">${fillSerialNumber} = 8</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</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="20240326 17:52:41.707" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</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="20240326 17:52:41.707" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</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="20240326 17:52:41.707" level="INFO">${Data} = {'id': '970050689193611264', 'accountId': None, 'userId': None, 'nickName': '庞承承', 'genderCode': 0, 'homeCountryCode': None, 'homeCountry': None, 'provinceCode': 440000, 'provinceName': '广东省', 'cityCo...</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${DataId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240326 17:52:41.707" level="INFO">${DataId} = 970050689193611264</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${fillSerialNumber}==0</arg>
|
|
<arg>填写婚介征婚人的基础资料</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==1</arg>
|
|
<arg>填写婚介征婚人资料-城市开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==2</arg>
|
|
<arg>填写婚介征婚人的资料-家乡开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==3</arg>
|
|
<arg>填写婚介征婚人的资料-出生年份开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==4</arg>
|
|
<arg>填写婚介征婚人的资料-身高开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==5</arg>
|
|
<arg>填写婚介征婚人的资料-学历开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==6</arg>
|
|
<arg>填写婚介征婚人的资料-月收入开始</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${fillSerialNumber}==7</arg>
|
|
<arg>填写婚介征婚人的资料-昵称开始</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>查询婚介用户资料</arg>
|
|
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
|
|
<kw name="查询婚介用户资料" library="InfoResource" 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}">970050670893862912</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</kw>
|
|
<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="20240326 17:52:41.707" 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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.707"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/get/first/fill/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240326 17:52:41.707" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912
|
|
path_url=/dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912
|
|
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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">MacCyrillic Russian confidence = 0.07067734829635543</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">IBM866 Russian confidence = 0.0245229823750533</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">IBM855 Russian confidence = 0.09653491474624158</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">ISO-8859-9 Turkish confidence = 0.35009888583693505</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=970050670893862912
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 09:52:41 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":"970050689193611264","accountId":null,"userId":null,"nickName":"庞承承","genderCode":0,"homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440106,"districtName":"天河区","birthYear":"1983","educationCode":3,"education":"大学本科","incomeCode":2,"income":"5001~8000","height":"168","maritalStatusCode":null,"maritalStatusName":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440900,"hometownCityName":"茂名市","fillSerialNumber":8}}
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:41.771" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.771"/>
|
|
</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="20240326 17:52:41.771" level="INFO">${Data} = {'id': '970050689193611264', 'accountId': None, 'userId': None, 'nickName': '庞承承', 'genderCode': 0, 'homeCountryCode': None, 'homeCountry': None, 'provinceCode': 440000, 'provinceName': '广东省', 'cityCo...</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.771" endtime="20240326 17:52:41.771"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${DataId}</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="20240326 17:52:41.771" level="INFO">${DataId} = 970050689193611264</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.771" endtime="20240326 17:52:41.771"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${DataId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240326 17:52:41.771" level="INFO">${DataId} = 970050689193611264</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.771" endtime="20240326 17:52:41.771"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.771"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.771"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.771"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.707" endtime="20240326 17:52:41.771"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.626" endtime="20240326 17:52:41.771"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240326 17:52:41.626" endtime="20240326 17:52:41.771"/>
|
|
</for>
|
|
<kw name="Sleep" library="BuiltIn">
|
|
<arg>1</arg>
|
|
<doc>Pauses the test executed for the given time.</doc>
|
|
<msg timestamp="20240326 17:52:42.774" level="INFO">Slept 1 second</msg>
|
|
<status status="PASS" starttime="20240326 17:52:41.771" endtime="20240326 17:52:42.774"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.626" endtime="20240326 17:52:42.774"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:41.626" endtime="20240326 17:52:42.774"/>
|
|
</test>
|
|
<status status="PASS" starttime="20240326 17:52:41.556" endtime="20240326 17:52:42.774"/>
|
|
</suite>
|
|
<doc>登陆后填写基础资料</doc>
|
|
<status status="PASS" starttime="20240326 17:52:41.554" endtime="20240326 17:52:42.774"/>
|
|
</suite>
|
|
<suite id="s1-s2-s2" name="2-Homepage" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage">
|
|
<suite id="s1-s2-s2-s1" name="MarriageInfo" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo">
|
|
<suite id="s1-s2-s2-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="20240326 17:52:42.806" endtime="20240326 17:52:42.806"/>
|
|
</kw>
|
|
<test id="s1-s2-s2-s1-s1-t1" name="提交征婚人户口所在地" line="31">
|
|
<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}">970050670893862912</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}</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="20240326 17:52:42.806" 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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240326 17:52:42.806" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.806" endtime="20240326 17:52:42.806"/>
|
|
</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="20240326 17:52:42.806" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=970050670893862912 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970050670893862912
|
|
path_url=/dating-agency-service/user/get/marriage/information/details?userId=970050670893862912
|
|
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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">MacCyrillic Russian confidence = 0.06717050213709551</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">IBM866 Russian confidence = 0.023651241486499115</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">IBM855 Russian confidence = 0.0967347799941634</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.888" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">ISO-8859-9 Turkish confidence = 0.39978143752801243</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970050670893862912
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 09:52:43 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":"970050689193611264","isDelete":false,"createTime":"2024-03-26 17:16:12","updateTime":null,"event":null,"accountId":null,"userId":null,"nickName":"庞承承","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/bc07ad3c778a592b48a48a01a6e6bcee.jpg","identityCard":null,"genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440106,"districtName":"天河区","birthYear":"1983","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":168,"weight":null,"educationCode":3,"education":"大学本科","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440900,"hometownCityName":"茂名市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
|
|
</msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.806" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" level="INFO">${miId} = 970050689193611264</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" level="INFO">${nickName} = 庞承承</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${miId_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240326 17:52:42.904" level="INFO">${miId_list} = []</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.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="20240326 17:52:42.904" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:42.806" endtime="20240326 17:52:42.904"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240326 17:52:42.806" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" level="INFO">${nickName} = 庞承承</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" level="INFO">${miId_list} = ['970050689193611264']</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</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="20240326 17:52:42.904" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240326 17:52:42.806" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<kw name="When 提交婚介征婚人的户口所在地" library="Authentication" sourcename="提交${dating}征婚人的户口所在地">
|
|
<for flavor="IN ZIP">
|
|
<var>${miId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${miId_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${miId}">970050689193611264</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}</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="20240326 17:52:42.904" 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/g6O5DXHixyNrf7tgq0MinfcxElm7DepvZuZyIMkbcIyXfqO+YnQ2wfFxRaseTJhFkl4tkIJL1F1igYQw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240326 17:52:42.904" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{ \ \ \ \ "id": "${miId}", \ \ \ \ "domicilePlaceProvinceCode": ${provinceCode}, \ \ \ \ "domicilePlaceProvinceName": "${provinceName}", \ \ \ \ "domicilePlaceCityCode": ${cityCode}, \ \ \ \ "domicilePlaceCityName": "${cityName}" }</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240326 17:52:42.904" level="FAIL">Variable '${provinceCode}' not found.</msg>
|
|
<status status="FAIL" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/save/marriage/Information</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<status status="NOT RUN" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${miId}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>data</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<status status="NOT RUN" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.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>
|
|
<status status="NOT RUN" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</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>
|
|
<status status="NOT RUN" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${miId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<status status="NOT RUN" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<status status="FAIL" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</iter>
|
|
<status status="FAIL" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</for>
|
|
<status status="FAIL" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<kw name="Then 查询数据库户口所在地数据" library="Authentication">
|
|
<status status="NOT RUN" starttime="20240326 17:52:42.904" endtime="20240326 17:52:42.904"/>
|
|
</kw>
|
|
<status status="FAIL" starttime="20240326 17:52:42.806" endtime="20240326 17:52:42.904">Variable '${provinceCode}' not found.</status>
|
|
</test>
|
|
<doc>资料认证</doc>
|
|
<status status="FAIL" starttime="20240326 17:52:42.774" endtime="20240326 17:52:42.904"/>
|
|
</suite>
|
|
<doc>征婚人资料</doc>
|
|
<status status="FAIL" starttime="20240326 17:52:42.774" endtime="20240326 17:52:42.904"/>
|
|
</suite>
|
|
<status status="FAIL" starttime="20240326 17:52:42.774" endtime="20240326 17:52:42.920"/>
|
|
</suite>
|
|
<status status="FAIL" starttime="20240326 17:52:41.553" endtime="20240326 17:52:42.920"/>
|
|
</suite>
|
|
<status status="FAIL" starttime="20240326 17:52:41.238" endtime="20240326 17:52:42.920"/>
|
|
</suite>
|
|
<statistics>
|
|
<total>
|
|
<stat pass="2" fail="1" skip="0">All Tests</stat>
|
|
</total>
|
|
<tag>
|
|
</tag>
|
|
<suite>
|
|
<stat pass="2" fail="1" 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="1" 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="1-WriteInfo">Dating-agency.1-Applet.1-WriteInfo</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="Infomation">Dating-agency.1-Applet.1-WriteInfo.Infomation</stat>
|
|
<stat pass="0" fail="1" skip="0" id="s1-s2-s2" name="2-Homepage">Dating-agency.1-Applet.2-Homepage</stat>
|
|
<stat pass="0" fail="1" skip="0" id="s1-s2-s2-s1" name="MarriageInfo">Dating-agency.1-Applet.2-Homepage.MarriageInfo</stat>
|
|
<stat pass="0" fail="1" skip="0" id="s1-s2-s2-s1-s1" name="DataAuthentication">Dating-agency.1-Applet.2-Homepage.MarriageInfo.DataAuthentication</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
<msg timestamp="20240326 17:52:41.626" level="ERROR">Error in file 'D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\1-WriteInfo\Infomation.robot' on line 4: Resource file '..\0-Login\LoginResource.robot' does not exist.</msg>
|
|
</errors>
|
|
</robot>
|