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.
888 lines
59 KiB
888 lines
59 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240322 16:49:45.412" rpa="false" schemaversion="4">
|
|
<suite id="s1" name="Dating-agency" source="D:\LYL\Study\Robot_framework\space\Dating-agency">
|
|
<suite id="s1-s1" name="0-Login" source="D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login">
|
|
<suite id="s1-s1-s1" name="Login-interface" source="D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\Login-interface.robot">
|
|
<kw name="Import Variables" library="BuiltIn" type="SETUP">
|
|
<arg>${EXECDIR}\\DA_data.yaml</arg>
|
|
<doc>Imports a variable file with the given path and optional arguments.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.569" endtime="20240322 16:49:45.571"/>
|
|
</kw>
|
|
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="17">
|
|
<kw name="Given 读取TXT文件" library="LoginResource">
|
|
<kw name="Get File" library="OperatingSystem">
|
|
<var>${file}</var>
|
|
<arg>D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt</arg>
|
|
<doc>Returns the contents of a specified file.</doc>
|
|
<msg timestamp="20240322 16:49:45.573" 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="20240322 16:49:45.573" level="INFO">${file} = 手机号
|
|
13000000046</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.573" endtime="20240322 16:49:45.573"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${skip-line}</var>
|
|
<arg>1</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240322 16:49:45.574" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.574" endtime="20240322 16:49:45.574"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${lines}</var>
|
|
<arg>-1</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240322 16:49:45.574" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.574" endtime="20240322 16:49:45.574"/>
|
|
</kw>
|
|
<kw name="Get Lines Containing String" library="String">
|
|
<var>${content}</var>
|
|
<arg>${file}</arg>
|
|
<arg>${skip-line}</arg>
|
|
<arg>${lines}</arg>
|
|
<doc>Returns lines of the given ``string`` that contain the ``pattern``.</doc>
|
|
<msg timestamp="20240322 16:49:45.575" level="INFO">1 out of 2 lines matched</msg>
|
|
<msg timestamp="20240322 16:49:45.575" level="INFO">${content} = 13000000046</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.574" endtime="20240322 16:49:45.575"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">13000000046</var>
|
|
<kw name="Split String" library="String">
|
|
<var>${id}</var>
|
|
<arg>${id}</arg>
|
|
<arg>\n</arg>
|
|
<doc>Splits the ``string`` using ``separator`` as a delimiter string.</doc>
|
|
<msg timestamp="20240322 16:49:45.576" level="INFO">${id} = ['13000000046']</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.575" endtime="20240322 16:49:45.576"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.575" endtime="20240322 16:49:45.576"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240322 16:49:45.575" endtime="20240322 16:49:45.576"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${id}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.576" level="INFO">${id} = ['13000000046']</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.576" endtime="20240322 16:49:45.577"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.572" endtime="20240322 16:49:45.577"/>
|
|
</kw>
|
|
<kw name="And 用户手机号验证码登录婚介平台-888888" library="LoginResource" sourcename="用户手机号验证码登录${dating}平台-888888">
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${userid_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:45.577" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.577" endtime="20240322 16:49:45.577"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:45.578" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.578" endtime="20240322 16:49:45.578"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:45.578" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.578" endtime="20240322 16:49:45.578"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">13000000046</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.579" endtime="20240322 16:49:45.579"/>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<arg>dating</arg>
|
|
<arg>${${dating}.dating域名}</arg>
|
|
<arg>${${dating}.AHeader}</arg>
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<msg timestamp="20240322 16:49:45.580" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240322 16:49:45.580" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.579" endtime="20240322 16:49:45.580"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{ \ \ "account":"${account}", \ \ "accountType":2, \ \ "captcha":888888 }</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240322 16:49:45.581" level="INFO">${data} = { "account":"13000000046", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.580" endtime="20240322 16:49:45.581"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-uec/authorize/by-captcha</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240322 16:49:45.584" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240322 16:49:45.717" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-uec/authorize/by-captcha HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240322 16:49:45.719" 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":"13000000046", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:45.719" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:45 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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==","userId":"968593934106365952"}}
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:45.719" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.581" endtime="20240322 16:49:45.720"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${code}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>code</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.721" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.720" endtime="20240322 16:49:45.721"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${token}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>token</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.722" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.721" endtime="20240322 16:49:45.722"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${userId}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>userId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.722" level="INFO">${userId} = 968593934106365952</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.722" endtime="20240322 16:49:45.722"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${message}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>message</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.723" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.723" endtime="20240322 16:49:45.723"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${login_header}</var>
|
|
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT ${token}','X-Organization-Id':'963432943739605555'}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240322 16:49:45.724" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.723" endtime="20240322 16:49:45.724"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${client_header}</var>
|
|
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240322 16:49:45.724" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.724" endtime="20240322 16:49:45.724"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${userid_list}</arg>
|
|
<arg>${userId}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.724" endtime="20240322 16:49:45.725"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${Cheader_list}</arg>
|
|
<arg>${client_header}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.725" endtime="20240322 16:49:45.725"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${Aheader_list}</arg>
|
|
<arg>${login_header}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.725" endtime="20240322 16:49:45.725"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${code}==0</arg>
|
|
<arg>Should Be Equal As Strings</arg>
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>Should Be Equal As Strings</arg>
|
|
<arg>${message}</arg>
|
|
<arg>验证码错误或无效验证码,请重试!</arg>
|
|
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<msg timestamp="20240322 16:49:45.726" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.726" endtime="20240322 16:49:45.726"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.726" endtime="20240322 16:49:45.726"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.579" endtime="20240322 16:49:45.726"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240322 16:49:45.578" endtime="20240322 16:49:45.726"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${userid_list}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.726" level="INFO">${userid_list} = ['968593934106365952']</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.726" endtime="20240322 16:49:45.726"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${Aheader_list}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.727" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.727" endtime="20240322 16:49:45.727"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${Cheader_list}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.727" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}"]</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.727" endtime="20240322 16:49:45.727"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${login_header}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.728" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.728" endtime="20240322 16:49:45.728"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${client_header}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.728" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.728" endtime="20240322 16:49:45.728"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.577" endtime="20240322 16:49:45.729"/>
|
|
</kw>
|
|
<kw name="And 查询用户的婚介组织" library="LoginResource" sourcename="查询用户的${dating}组织">
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:45.729" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.729" endtime="20240322 16:49:45.729"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">968593934106365952</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.730" endtime="20240322 16:49:45.730"/>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<arg>dating</arg>
|
|
<arg>${${dating}.dating域名}</arg>
|
|
<arg>${login_header}</arg>
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<msg timestamp="20240322 16:49:45.731" 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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240322 16:49:45.731" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.731" endtime="20240322 16:49:45.732"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-uec/user/list/own-organization</arg>
|
|
<arg>params=userId=${userid}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240322 16:49:45.733" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240322 16:49:45.792" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=968593934106365952 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240322 16:49:45.792" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968593934106365952
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=968593934106365952
|
|
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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:45.792" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968593934106365952
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:45 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":[]}
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:45.792" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.732" endtime="20240322 16:49:45.793"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${data}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>data</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.793" level="INFO">${data} = []</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.793" endtime="20240322 16:49:45.794"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${message}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>message</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.794" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.794" endtime="20240322 16:49:45.794"/>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<msg timestamp="20240322 16:49:45.795" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.794" endtime="20240322 16:49:45.795"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${data}==[]</arg>
|
|
<arg>log</arg>
|
|
<arg>未获取到组织信息!</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>log</arg>
|
|
<arg>${data}</arg>
|
|
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
|
|
<kw name="Log" library="BuiltIn">
|
|
<arg>未获取到组织信息!</arg>
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<msg timestamp="20240322 16:49:45.795" level="INFO">未获取到组织信息!</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.795" endtime="20240322 16:49:45.796"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.795" endtime="20240322 16:49:45.796"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.730" endtime="20240322 16:49:45.796"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240322 16:49:45.730" endtime="20240322 16:49:45.796"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240322 16:49:45.729" endtime="20240322 16:49:45.796"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.572" endtime="20240322 16:49:45.796"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.454" endtime="20240322 16:49:45.797"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.453" endtime="20240322 16:49:45.798"/>
|
|
</suite>
|
|
<suite id="s1-s2" name="1-Applet" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet">
|
|
<suite id="s1-s2-s1" name="2-Homepage" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage">
|
|
<suite id="s1-s2-s1-s1" name="MarriageInfo" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo">
|
|
<suite id="s1-s2-s1-s1-s1" name="DataAuthentication" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo\DataAuthentication.robot">
|
|
<kw name="Import Variables" library="BuiltIn" type="SETUP">
|
|
<arg>${EXECDIR}\\DA_data.yaml</arg>
|
|
<doc>Imports a variable file with the given path and optional arguments.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.894" endtime="20240322 16:49:45.898"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-s1-t1" name="提交征婚人头像审核信息-无审核中" line="8">
|
|
<kw name="Given 查询婚介征婚人的资料信息" library="Authentication" sourcename="查询${dating}征婚人的资料信息">
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">968593934106365952</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}</var>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<arg>dating</arg>
|
|
<arg>${${dating}.dating域名}</arg>
|
|
<arg>${client_header}</arg>
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<msg timestamp="20240322 16:49:45.902" 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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240322 16:49:45.902" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.901" endtime="20240322 16:49:45.902"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/get/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240322 16:49:45.904" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240322 16:49:45.982" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=968593934106365952 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240322 16:49:45.983" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
|
|
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
|
|
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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:45.988" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240322 16:49:45.988" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.988" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.988" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.988" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">IBM866 Russian confidence = 0.020358315132212312</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">IBM855 Russian confidence = 0.09865736813840936</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.989" level="DEBUG">TIS-620 Thai confidence = 0.033914183203408506</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4007739445018166</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.990" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:45.991" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:45 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":"968593935574372352","isDelete":false,"createTime":"2024-03-22 16:47:35","updateTime":null,"event":null,"accountId":null,"userId":968593934106365952,"nickName":"赖勖","name":"李博","profilePhoto":null,"identityCard":"429006198410300956","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区","birthYear":"1984","birthDate":"1984-10-30","constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":"鼠","height":154,"weight":null,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:45.991" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.902" endtime="20240322 16:49:45.991"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${miId}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>id</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.992" level="INFO">${miId} = 968593935574372352</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.991" endtime="20240322 16:49:45.992"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${nickName}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>nickName</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.993" level="INFO">${nickName} = 赖勖</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.992" endtime="20240322 16:49:45.993"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${miId_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:45.993" level="INFO">${miId_list} = []</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.993" endtime="20240322 16:49:45.993"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${genderCode}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>genderCode</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.994" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.993" endtime="20240322 16:49:45.994"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${message}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>message</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:45.995" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.994" endtime="20240322 16:49:45.995"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${miId_list}</arg>
|
|
<arg>${miId}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.995" endtime="20240322 16:49:45.995"/>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<msg timestamp="20240322 16:49:45.996" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.995" endtime="20240322 16:49:45.996"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.901" endtime="20240322 16:49:45.996"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240322 16:49:45.900" endtime="20240322 16:49:45.996"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${nickName}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.997" level="INFO">${nickName} = 赖勖</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.996" endtime="20240322 16:49:45.997"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${miId_list}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.997" level="INFO">${miId_list} = ['968593935574372352']</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.997" endtime="20240322 16:49:45.997"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${genderCode}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:45.998" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.997" endtime="20240322 16:49:45.998"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.900" endtime="20240322 16:49:45.998"/>
|
|
</kw>
|
|
<kw name="When 提交婚介征婚人头像审核" library="Authentication" sourcename="提交${dating}征婚人头像审核">
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${manImgList}</var>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/6b1f0e91c84f97fe76737a9bc9605222.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/13430ed896298bcd0ac46f09bf29ece7.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/59004ca9250de9fec6fbb95e6eed6760.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/c5644ac57b91fad169833894a8409fb8.png"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/3e416c672e4a0240d86bd233afc12fb7.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/8048e38b0d4a73f7d06fc1b17995ac6b.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/ed369df1698455041d3caa43e358a998.png"]</arg>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:45.999" level="INFO">${manImgList} = ['["https://dating-agency-test.oss-accelerate.aliyuncs.com/6b1f0e91c84f97fe76737a9bc9605222.jpg"]', '["https://dating-agency-test.oss-accelerate.aliyuncs.com/13430ed896298bcd0ac46f09bf29ece7.jpg"]', '...</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.998" endtime="20240322 16:49:45.999"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${manImgUrl}</var>
|
|
<arg>random.choice(${manImgList})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240322 16:49:45.999" level="INFO">${manImgUrl} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"]</msg>
|
|
<status status="PASS" starttime="20240322 16:49:45.999" endtime="20240322 16:49:45.999"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${womanImgList}</var>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/45d5a86455d48686b6677c6e08c38294.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/f2c441ab2e2bc63afdb0182c3e9365a3.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/520d2089fac428d3b84f9d25db93dd31.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/302803c1647500313cc114de59af053e.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/c97da67055186388335cfb73af718948.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/27491660b76a7ded1f0cad84d0fa136f.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/d586c7311f15bbca574bb10ee2590941.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/73a607e091bfa2696e5c76ea282e3fad.jpg"]</arg>
|
|
<arg>["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg"]</arg>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:46.000" level="INFO">${womanImgList} = ['["https://dating-agency-test.oss-accelerate.aliyuncs.com/45d5a86455d48686b6677c6e08c38294.jpg"]', '["https://dating-agency-test.oss-accelerate.aliyuncs.com/f2c441ab2e2bc63afdb0182c3e9365a3.jpg"]', '...</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.000" endtime="20240322 16:49:46.000"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${womanImgUrl}</var>
|
|
<arg>random.choice(${womanImgList})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240322 16:49:46.000" level="INFO">${womanImgUrl} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/520d2089fac428d3b84f9d25db93dd31.jpg"]</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.000" endtime="20240322 16:49:46.000"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${authenticationCode}</var>
|
|
<arg>8</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240322 16:49:46.001" level="INFO">${authenticationCode} = 8</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.001" endtime="20240322 16:49:46.001"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${miId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${miId_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${miId}">968593935574372352</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}</var>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<arg>dating</arg>
|
|
<arg>${${dating}.dating域名}</arg>
|
|
<arg>${client_header}</arg>
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<msg timestamp="20240322 16:49:46.002" 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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240322 16:49:46.002" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.001" endtime="20240322 16:49:46.002"/>
|
|
</kw>
|
|
<kw name="Set Variable If" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>${genderCode}==1</arg>
|
|
<arg>{ \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${womanImgUrl} }</arg>
|
|
<arg>{ \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${manImgUrl} }</arg>
|
|
<doc>Sets variable based on the given condition.</doc>
|
|
<msg timestamp="20240322 16:49:46.003" level="INFO">${data} = { "authenticationCode": 8, "miId": "968593935574372352", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"] }</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.003" endtime="20240322 16:49:46.003"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/save/certification/audit</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240322 16:49:46.005" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240322 16:49:46.303" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/save/certification/audit HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240322 16:49:46.304" 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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==', 'Content-Length': '176'}
|
|
body=b'{ "authenticationCode": 8, "miId": "968593935574372352", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"] }'
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:46.304" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:46 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":"968594483635687424"}
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:46.304" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.003" endtime="20240322 16:49:46.304"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${auditId}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>data</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:46.305" level="INFO">${auditId} = 968594483635687424</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.304" endtime="20240322 16:49:46.305"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${message}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>message</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:46.306" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.305" endtime="20240322 16:49:46.306"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${auditId}==None</arg>
|
|
<arg>Should Be Equal As Strings</arg>
|
|
<arg>${message}</arg>
|
|
<arg>正在审核中!请等待审核完成。</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>Should Be Equal As Strings</arg>
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<msg timestamp="20240322 16:49:46.307" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.306" endtime="20240322 16:49:46.307"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:46.306" endtime="20240322 16:49:46.307"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${auditId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:46.307" level="INFO">${auditId} = 968594483635687424</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.307" endtime="20240322 16:49:46.307"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:46.001" endtime="20240322 16:49:46.308"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240322 16:49:46.001" endtime="20240322 16:49:46.308"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240322 16:49:45.998" endtime="20240322 16:49:46.308"/>
|
|
</kw>
|
|
<kw name="Then 查询数据库头像审核表" library="Authentication">
|
|
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
|
|
<arg>pymysql</arg>
|
|
<arg>database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'</arg>
|
|
<doc>Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
|
|
connect to the database using the map string `db_custom_param_string`.</doc>
|
|
<msg timestamp="20240322 16:49:46.340" level="INFO">Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221')) </msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.308" endtime="20240322 16:49:46.381"/>
|
|
</kw>
|
|
<kw name="Query" library="DatabaseLibrary">
|
|
<var>${check}</var>
|
|
<arg>SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${auditId}' AND `authentication_code` = '8' AND `is_delete` = '0'</arg>
|
|
<doc>Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
|
|
input `sansTran` to True to run command without an explicit transaction commit or rollback.
|
|
Set optional input `returnAsDict` to True to return values as a list of dictionaries.</doc>
|
|
<msg timestamp="20240322 16:49:46.384" level="INFO">Executing : Query | SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '968594483635687424' AND `authentication_code` = '8' AND `is_delete` = '0' </msg>
|
|
<msg timestamp="20240322 16:49:46.400" level="INFO">${check} = ((968594483635687424,),)</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.383" endtime="20240322 16:49:46.400"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${id}</var>
|
|
<arg>${check[0][0]}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240322 16:49:46.401" level="INFO">${id} = 968594483635687424</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.401" endtime="20240322 16:49:46.401"/>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<arg>${id}</arg>
|
|
<arg>${auditId}</arg>
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<msg timestamp="20240322 16:49:46.402" level="INFO">Argument types are:
|
|
<class 'int'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.402" endtime="20240322 16:49:46.402"/>
|
|
</kw>
|
|
<kw name="Disconnect From Database" library="DatabaseLibrary">
|
|
<doc>Disconnects from the database.</doc>
|
|
<msg timestamp="20240322 16:49:46.402" level="INFO">Executing : Disconnect From Database</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.402" endtime="20240322 16:49:46.402"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:46.308" endtime="20240322 16:49:46.403"/>
|
|
</kw>
|
|
<kw name="And 查询婚介征婚人的资料信息" library="Authentication" sourcename="查询${dating}征婚人的资料信息">
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">968593934106365952</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}</var>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<arg>dating</arg>
|
|
<arg>${${dating}.dating域名}</arg>
|
|
<arg>${client_header}</arg>
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<msg timestamp="20240322 16:49:46.405" 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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240322 16:49:46.405" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.404" endtime="20240322 16:49:46.405"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-service/user/get/marriage/information/details</arg>
|
|
<arg>params=userId=${userId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240322 16:49:46.407" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240322 16:49:46.489" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=968593934106365952 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240322 16:49:46.489" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
|
|
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
|
|
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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:46.494" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240322 16:49:46.494" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.494" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.494" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">IBM866 Russian confidence = 0.020358315132212312</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">IBM855 Russian confidence = 0.09865736813840936</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.495" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">TIS-620 Thai confidence = 0.033914183203408506</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">ISO-8859-9 Turkish confidence = 0.41361092910151137</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.496" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240322 16:49:46.497" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:46 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":"968593935574372352","isDelete":false,"createTime":"2024-03-22 16:47:35","updateTime":null,"event":null,"accountId":null,"userId":968593934106365952,"nickName":"赖勖","name":"李博","profilePhoto":null,"identityCard":"429006198410300956","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区","birthYear":"1984","birthDate":"1984-10-30","constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":"鼠","height":154,"weight":null,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":{"id":"968594483702796288","isDelete":null,"createTime":"2024-03-22 16:49:46","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg","auditImgId":null,"auditStatus":0},"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
|
|
</msg>
|
|
<msg timestamp="20240322 16:49:46.497" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.405" endtime="20240322 16:49:46.497"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${miId}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>id</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:46.498" level="INFO">${miId} = 968593935574372352</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.497" endtime="20240322 16:49:46.498"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${nickName}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>nickName</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:46.499" level="INFO">${nickName} = 赖勖</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.498" endtime="20240322 16:49:46.499"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${miId_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240322 16:49:46.499" level="INFO">${miId_list} = []</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.499" endtime="20240322 16:49:46.499"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${genderCode}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>genderCode</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:46.500" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.500" endtime="20240322 16:49:46.500"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${message}</var>
|
|
<arg>${reps.json()}</arg>
|
|
<arg>message</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240322 16:49:46.501" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.500" endtime="20240322 16:49:46.501"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${miId_list}</arg>
|
|
<arg>${miId}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240322 16:49:46.501" endtime="20240322 16:49:46.501"/>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<arg>${message}</arg>
|
|
<arg>successful</arg>
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<msg timestamp="20240322 16:49:46.502" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.502" endtime="20240322 16:49:46.502"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:46.404" endtime="20240322 16:49:46.502"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240322 16:49:46.403" endtime="20240322 16:49:46.502"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${nickName}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:46.503" level="INFO">${nickName} = 赖勖</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.502" endtime="20240322 16:49:46.503"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${miId_list}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:46.503" level="INFO">${miId_list} = ['968593935574372352']</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.503" endtime="20240322 16:49:46.504"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${genderCode}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240322 16:49:46.504" level="INFO">${genderCode} = 0</msg>
|
|
<status status="PASS" starttime="20240322 16:49:46.504" endtime="20240322 16:49:46.504"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:46.403" endtime="20240322 16:49:46.504"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240322 16:49:45.899" endtime="20240322 16:49:46.504"/>
|
|
</test>
|
|
<doc>资料认证</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.803" endtime="20240322 16:49:46.505"/>
|
|
</suite>
|
|
<doc>征婚人资料</doc>
|
|
<status status="PASS" starttime="20240322 16:49:45.801" endtime="20240322 16:49:46.506"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240322 16:49:45.800" endtime="20240322 16:49:46.507"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240322 16:49:45.798" endtime="20240322 16:49:46.508"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240322 16:49:45.423" endtime="20240322 16:49:46.508"/>
|
|
</suite>
|
|
<statistics>
|
|
<total>
|
|
<stat pass="2" fail="0" skip="0">All Tests</stat>
|
|
</total>
|
|
<tag>
|
|
</tag>
|
|
<suite>
|
|
<stat pass="2" 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>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
</errors>
|
|
</robot>
|