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.
927 lines
67 KiB
927 lines
67 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240321 19:22:01.596" 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="20240321 19:22:01.753" endtime="20240321 19:22:01.756"/>
|
|
</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="20240321 19:22:01.758" 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="20240321 19:22:01.758" level="INFO">${file} = 手机号
|
|
13168550964</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.758" endtime="20240321 19:22:01.758"/>
|
|
</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="20240321 19:22:01.759" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.758" endtime="20240321 19:22:01.759"/>
|
|
</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="20240321 19:22:01.759" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.759" endtime="20240321 19:22:01.759"/>
|
|
</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="20240321 19:22:01.760" level="INFO">1 out of 2 lines matched</msg>
|
|
<msg timestamp="20240321 19:22:01.760" level="INFO">${content} = 13168550964</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.759" endtime="20240321 19:22:01.760"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">13168550964</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="20240321 19:22:01.761" level="INFO">${id} = ['13168550964']</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.760" endtime="20240321 19:22:01.761"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.760" endtime="20240321 19:22:01.761"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:01.760" endtime="20240321 19:22:01.761"/>
|
|
</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="20240321 19:22:01.762" level="INFO">${id} = ['13168550964']</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.761" endtime="20240321 19:22:01.762"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.757" endtime="20240321 19:22:01.762"/>
|
|
</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="20240321 19:22:01.763" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.763" endtime="20240321 19:22:01.763"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240321 19:22:01.764" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.763" endtime="20240321 19:22:01.764"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240321 19:22:01.764" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.764" endtime="20240321 19:22:01.764"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">13168550964</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240321 19:22:01.765" endtime="20240321 19:22:01.765"/>
|
|
</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="20240321 19:22:01.766" 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="20240321 19:22:01.766" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.765" endtime="20240321 19:22:01.766"/>
|
|
</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="20240321 19:22:01.767" level="INFO">${data} = { "account":"13168550964", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.767" endtime="20240321 19:22:01.767"/>
|
|
</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="20240321 19:22:01.769" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240321 19:22:01.883" 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="20240321 19:22:01.884" 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":"13168550964", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:01.884" 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': 'Thu, 21 Mar 2024 11:22:01 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==","userId":"963432943739604992"}}
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:01.885" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.767" endtime="20240321 19:22:01.885"/>
|
|
</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="20240321 19:22:01.886" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.885" endtime="20240321 19:22:01.886"/>
|
|
</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="20240321 19:22:01.887" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.887" endtime="20240321 19:22:01.888"/>
|
|
</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="20240321 19:22:01.889" level="INFO">${userId} = 963432943739604992</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.888" endtime="20240321 19:22:01.889"/>
|
|
</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="20240321 19:22:01.890" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.889" endtime="20240321 19:22:01.890"/>
|
|
</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="20240321 19:22:01.890" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.890" endtime="20240321 19:22:01.890"/>
|
|
</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="20240321 19:22:01.891" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.890" endtime="20240321 19:22:01.891"/>
|
|
</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="20240321 19:22:01.891" endtime="20240321 19:22:01.891"/>
|
|
</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="20240321 19:22:01.892" endtime="20240321 19:22:01.892"/>
|
|
</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="20240321 19:22:01.892" endtime="20240321 19:22:01.892"/>
|
|
</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="20240321 19:22:01.893" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.893" endtime="20240321 19:22:01.893"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.893" endtime="20240321 19:22:01.893"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.765" endtime="20240321 19:22:01.894"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:01.764" endtime="20240321 19:22:01.894"/>
|
|
</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="20240321 19:22:01.894" level="INFO">${userid_list} = ['963432943739604992']</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.894" endtime="20240321 19:22:01.894"/>
|
|
</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="20240321 19:22:01.895" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.894" endtime="20240321 19:22:01.895"/>
|
|
</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="20240321 19:22:01.895" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}"]</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.895" endtime="20240321 19:22:01.895"/>
|
|
</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="20240321 19:22:01.896" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.896" endtime="20240321 19:22:01.896"/>
|
|
</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="20240321 19:22:01.897" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.896" endtime="20240321 19:22:01.897"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.762" endtime="20240321 19:22:01.897"/>
|
|
</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="20240321 19:22:01.898" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.897" endtime="20240321 19:22:01.898"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">963432943739604992</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240321 19:22:01.898" endtime="20240321 19:22:01.899"/>
|
|
</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="20240321 19:22:01.900" 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240321 19:22:01.900" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.899" endtime="20240321 19:22:01.900"/>
|
|
</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="20240321 19:22:01.902" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240321 19:22:01.942" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=963432943739604992 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240321 19:22:01.943" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=963432943739604992
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=963432943739604992
|
|
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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:01.944" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240321 19:22:01.944" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.944" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.944" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.944" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.945" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">windows-1251 Bulgarian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">ISO-8859-9 Turkish confidence = 0.2794564987311486</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.946" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.947" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.947" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.947" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.947" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:01.947" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=963432943739604992
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 11:22:01 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":[{"orgId":"963432943739605555","fullName":"寻找伴侣","shortName":"寻伴"}]}
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:01.947" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.900" endtime="20240321 19:22:01.947"/>
|
|
</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="20240321 19:22:01.948" level="INFO">${data} = [{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}]</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.948" endtime="20240321 19:22:01.949"/>
|
|
</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="20240321 19:22:01.949" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.949" endtime="20240321 19:22:01.950"/>
|
|
</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="20240321 19:22:01.950" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.950" endtime="20240321 19:22:01.950"/>
|
|
</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>${data}</arg>
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<msg timestamp="20240321 19:22:01.951" level="INFO">[{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}]</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.951" endtime="20240321 19:22:01.951"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.950" endtime="20240321 19:22:01.951"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.898" endtime="20240321 19:22:01.952"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:01.898" endtime="20240321 19:22:01.952"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240321 19:22:01.897" endtime="20240321 19:22:01.952"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.757" endtime="20240321 19:22:01.952"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240321 19:22:01.627" endtime="20240321 19:22:01.953"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240321 19:22:01.625" endtime="20240321 19:22:01.954"/>
|
|
</suite>
|
|
<suite id="s1-s2" name="2-Homepage" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Homepage">
|
|
<suite id="s1-s2-s1" name="MarriageInfo" source="D:\LYL\Study\Robot_framework\space\Dating-agency\2-Homepage\MarriageInfo">
|
|
<suite id="s1-s2-s1-s1" name="DataAuthentication" source="D:\LYL\Study\Robot_framework\space\Dating-agency\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="20240321 19:22:01.981" endtime="20240321 19:22:01.983"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-t1" name="提交征婚人的介绍信息" line="60">
|
|
<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}">963432943739604992</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}</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="20240321 19:22:01.987" 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240321 19:22:01.987" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.986" endtime="20240321 19:22:01.988"/>
|
|
</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="20240321 19:22:01.990" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240321 19:22:02.070" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=963432943739604992 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240321 19:22:02.071" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=963432943739604992
|
|
path_url=/dating-agency-service/user/get/marriage/information/details?userId=963432943739604992
|
|
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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.076" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240321 19:22:02.076" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.076" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.076" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">IBM855 Russian confidence = 0.11199558468606934</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.077" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">TIS-620 Thai confidence = 0.046476906554671106</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4171093444341742</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.078" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.079" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.079" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=963432943739604992
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 11:22:02 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":{"id":"965011050246311936","isDelete":false,"createTime":"2024-03-12 19:30:29","updateTime":null,"event":null,"accountId":null,"userId":963432943739604992,"nickName":"hinzai","name":"王颖勋","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/afeb83bebb3e4c7214fd3bb8f2b10cd7.png","identityCard":"44058319951227041X","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区","birthYear":"1995","birthDate":"1995-12-27","constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":"猪","height":134,"weight":null,"educationCode":1,"education":"中专","maritalStatusCode":1,"maritalStatusName":"离异","minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.079" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240321 19:22:01.988" endtime="20240321 19:22:02.079"/>
|
|
</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="20240321 19:22:02.081" level="INFO">${miId} = 965011050246311936</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.080" endtime="20240321 19:22:02.081"/>
|
|
</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="20240321 19:22:02.082" level="INFO">${nickName} = hinzai</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.081" endtime="20240321 19:22:02.082"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${miId_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240321 19:22:02.083" level="INFO">${miId_list} = []</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.082" endtime="20240321 19:22:02.083"/>
|
|
</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="20240321 19:22:02.083" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.083" endtime="20240321 19:22:02.083"/>
|
|
</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="20240321 19:22:02.084" endtime="20240321 19:22:02.084"/>
|
|
</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="20240321 19:22:02.084" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.084" endtime="20240321 19:22:02.085"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.986" endtime="20240321 19:22:02.085"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:01.985" endtime="20240321 19:22:02.085"/>
|
|
</for>
|
|
<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="20240321 19:22:02.085" level="INFO">${miId_list} = ['965011050246311936']</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.085" endtime="20240321 19:22:02.086"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${nickName}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240321 19:22:02.086" level="INFO">${nickName} = hinzai</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.086" endtime="20240321 19:22:02.086"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.985" endtime="20240321 19:22:02.086"/>
|
|
</kw>
|
|
<kw name="When 提交婚介征婚人的介绍信息" library="Authentication" sourcename="提交${dating}征婚人的介绍信息">
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${value}</var>
|
|
<arg>在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上,自觉遵守公司的的,坚持参加公司的每次的培训。要求积极上进,爱护公司的一砖一瓦,一直严谨的态度和积极的热情投身于学习和工作中,虽然有成功的泪水,也有失败的辛酸,然而日益激烈的社会竟争也使我充分地认识到成为一名德智体全面发展的优秀工作者的重要性。</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240321 19:22:02.087" level="INFO">${value} = 在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上,自觉遵守公司的的,坚持参加公司的每次的培训。要求积极上进,爱护公司的一砖一瓦,一直严谨的态度和积极的热情投身于学习和工作...</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.087" endtime="20240321 19:22:02.087"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${authenticationCode}</var>
|
|
<arg>7</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240321 19:22:02.088" level="INFO">${authenticationCode} = 7</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.087" endtime="20240321 19:22:02.088"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${miId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${miId_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${miId}">965011050246311936</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}</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="20240321 19:22:02.089" 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240321 19:22:02.089" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.089" endtime="20240321 19:22:02.090"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{"authenticationCode":${authenticationCode},"miId":"${miId}","value":"${value}"}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240321 19:22:02.090" level="INFO">${data} = {"authenticationCode":7,"miId":"965011050246311936","value":"在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上...</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.090" endtime="20240321 19:22:02.090"/>
|
|
</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="20240321 19:22:02.092" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240321 19:22:02.476" 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="20240321 19:22:02.477" 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'Content-Length': '844'}
|
|
body=b'{"authenticationCode":7,"miId":"965011050246311936","value":"\xe5\x9c\xa8\xe5\xad\xa6\xe4\xb9\xa0\xe4\xb8\x8a\xef\xbc\x8c\xe4\xb8\xa5\xe6\xa0\xbc\xe8\xa6\x81\xe6\xb1\x82\xe8\x87\xaa\xe5\xb7\xb1\xef\xbc\x8c\xe7\xab\xaf\xe6\xad\xa3\xe5\xb7\xa5\xe4\xbd\x9c\xe6\x80\x81\xe5\xba\xa6\xef\xbc\x8c\xe4\xbd\x9c\xe5\x88\xb0\xe4\xba\x86\xe7\x90\x86\xe8\xae\xba\xe8\x81\x94\xe7\x90\x86\xe5\xae\x9e\xe9\x99\x85;\xe4\xbb\x8e\xe8\x80\x8c\xe6\x8f\x90\xe9\xab\x98\xe4\xba\x86\xe8\x87\xaa\xe8\xba\xab\xe7\x9a\x84\xe4\xb8\x80\xe4\xb8\x93\xe5\xa4\x9a\xe8\x83\xbd\xe7\x9a\x84\xe9\x95\xbf\xe5\xa4\x84\xe5\x8f\x8a\xe6\x80\x9d\xe6\x83\xb3\xe6\x96\x87\xe5\x8c\x96\xe7\xb4\xa0\xe8\xb4\xa8\xef\xbc\x8c\xe5\x8c\x85\xe6\x8b\xac\xe7\x94\x9f\xe6\xb4\xbb\xe4\xb8\xad\xe4\xb9\x9f\xe5\xad\xa6\xe5\x88\xb0\xe4\xba\x86\xe5\x85\xbb\xe6\x88\x90\xe8\x89\xaf\xe5\xa5\xbd\xe7\x9a\x84\xe7\x94\x9f\xe6\xb4\xbb\xe4\xb9\xa0\xe6\x83\xaf\xef\xbc\x8c\xe7\x94\x9f\xe6\xb4\xbb\xe5\x85\x85\xe5\xae\x9e\xe8\x80\x8c\xe6\x9c\x89\xe6\x9d\xa1\xe7\x90\x86\xef\xbc\x8c\xe6\x9c\x89\xe4\xb8\xa5\xe8\xb0\xa8\xe7\x9a\x84\xe7\x94\x9f\xe6\xb4\xbb\xe6\x80\x81\xe5\xba\xa6\xe5\x92\x8c\xe8\x89\xaf\xe5\xa5\xbd\xe7\x9a\x84\xe7\x94\x9f\xe6\xb4\xbb\xe4\xbd\x9c\xe9\xa3\x8e\xef\xbc\x8c\xe4\xb8\xba\xe4\xba\xba\xe7\x83\xad\xe6\x83\x85\xe5\xa4\xa7\xe6\x96\xb9\xef\xbc\x8c\xe8\xaf\x9a\xe5\xae\x9e\xe5\xae\x88\xe4\xbf\xa1\xef\xbc\x8c\xe4\xb9\x90\xe4\xba\x8e\xe5\x8a\xa9\xe4\xba\xba\xef\xbc\x8c\xe6\x8b\xa5\xe6\x9c\x89\xe8\x87\xaa\xe5\xb7\xb1\xe7\x9a\x84\xe8\x89\xaf\xe5\xa5\xbd\xe5\x81\x9a\xe4\xba\x8b\xe5\x8e\x9f\xe5\x88\x99\xef\xbc\x8c\xe8\x83\xbd\xe4\xb8\x8e\xe5\x90\x8c\xe4\xba\x8b\xe4\xbb\xac\xe5\x92\x8c\xe7\x9d\xa6\xe7\x9b\xb8\xe5\xa4\x84\xe3\x80\x82\xe6\x80\x9d\xe6\x83\xb3\xe4\xb8\x8a\xef\xbc\x8c\xe8\x87\xaa\xe8\xa7\x89\xe9\x81\xb5\xe5\xae\x88\xe5\x85\xac\xe5\x8f\xb8\xe7\x9a\x84\xe7\x9a\x84\xef\xbc\x8c\xe5\x9d\x9a\xe6\x8c\x81\xe5\x8f\x82\xe5\x8a\xa0\xe5\x85\xac\xe5\x8f\xb8\xe7\x9a\x84\xe6\xaf\x8f\xe6\xac\xa1\xe7\x9a\x84\xe5\x9f\xb9\xe8\xae\xad\xe3\x80\x82\xe8\xa6\x81\xe6\xb1\x82\xe7\xa7\xaf\xe6\x9e\x81\xe4\xb8\x8a\xe8\xbf\x9b\xef\xbc\x8c\xe7\x88\xb1\xe6\x8a\xa4\xe5\x85\xac\xe5\x8f\xb8\xe7\x9a\x84\xe4\xb8\x80\xe7\xa0\x96\xe4\xb8\x80\xe7\x93\xa6\xef\xbc\x8c\xe4\xb8\x80\xe7\x9b\xb4\xe4\xb8\xa5\xe8\xb0\xa8\xe7\x9a\x84\xe6\x80\x81\xe5\xba\xa6\xe5\x92\x8c\xe7\xa7\xaf\xe6\x9e\x81\xe7\x9a\x84\xe7\x83\xad\xe6\x83\x85\xe6\x8a\x95\xe8\xba\xab\xe4\xba\x8e\xe5\xad\xa6\xe4\xb9\xa0\xe5\x92\x8c\xe5\xb7\xa5\xe4\xbd\x9c\xe4\xb8\xad\xef\xbc\x8c\xe8\x99\xbd\xe7\x84\xb6\xe6\x9c\x89\xe6\x88\x90\xe5\x8a\x9f\xe7\x9a\x84\xe6\xb3\xaa\xe6\xb0\xb4\xef\xbc\x8c\xe4\xb9\x9f\xe6\x9c\x89\xe5\xa4\xb1\xe8\xb4\xa5\xe7\x9a\x84\xe8\xbe\x9b\xe9\x85\xb8\xef\xbc\x8c\xe7\x84\xb6\xe8\x80\x8c\xe6\x97\xa5\xe7\x9b\x8a\xe6\xbf\x80\xe7\x83\x88\xe7\x9a\x84\xe7\xa4\xbe\xe4\xbc\x9a\xe7\xab\x9f\xe4\xba\x89\xe4\xb9\x9f\xe4\xbd\xbf\xe6\x88\x91\xe5\x85\x85\xe5\x88\x86\xe5\x9c\xb0\xe8\xae\xa4\xe8\xaf\x86\xe5\x88\xb0\xe6\x88\x90\xe4\xb8\xba\xe4\xb8\x80\xe5\x90\x8d\xe5\xbe\xb7\xe6\x99\xba\xe4\xbd\x93\xe5\x85\xa8\xe9\x9d\xa2\xe5\x8f\x91\xe5\xb1\x95\xe7\x9a\x84\xe4\xbc\x98\xe7\xa7\x80\xe5\xb7\xa5\xe4\xbd\x9c\xe8\x80\x85\xe7\x9a\x84\xe9\x87\x8d\xe8\xa6\x81\xe6\x80\xa7\xe3\x80\x82"}'
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.477" 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': 'Thu, 21 Mar 2024 11:22:02 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":"968270416206499840"}
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.477" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.090" endtime="20240321 19:22:02.477"/>
|
|
</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="20240321 19:22:02.478" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.478" endtime="20240321 19:22:02.479"/>
|
|
</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="20240321 19:22:02.480" level="INFO">${auditId} = 968270416206499840</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.479" endtime="20240321 19:22:02.480"/>
|
|
</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="20240321 19:22:02.481" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.480" endtime="20240321 19:22:02.481"/>
|
|
</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>log</arg>
|
|
<arg>${message}</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="20240321 19:22:02.482" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.481" endtime="20240321 19:22:02.482"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.481" endtime="20240321 19:22:02.482"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.088" endtime="20240321 19:22:02.482"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:02.088" endtime="20240321 19:22:02.482"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${auditId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240321 19:22:02.483" level="INFO">${auditId} = 968270416206499840</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.483" endtime="20240321 19:22:02.483"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.087" endtime="20240321 19:22:02.483"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:01.983" endtime="20240321 19:22:02.483"/>
|
|
</test>
|
|
<doc>资料认证</doc>
|
|
<status status="PASS" starttime="20240321 19:22:01.959" endtime="20240321 19:22:02.484"/>
|
|
</suite>
|
|
<doc>征婚人资料</doc>
|
|
<status status="PASS" starttime="20240321 19:22:01.957" endtime="20240321 19:22:02.485"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240321 19:22:01.955" endtime="20240321 19:22:02.486"/>
|
|
</suite>
|
|
<suite id="s1-s3" name="Web" source="D:\LYL\Study\Robot_framework\space\Dating-agency\Web">
|
|
<suite id="s1-s3-s1" name="InfoAudit" source="D:\LYL\Study\Robot_framework\space\Dating-agency\Web\InfoAudit">
|
|
<suite id="s1-s3-s1-s1" name="AuditInfomation" source="D:\LYL\Study\Robot_framework\space\Dating-agency\Web\InfoAudit\AuditInfomation.robot">
|
|
<kw name="Import Variables" library="BuiltIn" type="SETUP">
|
|
<arg>${EXECDIR}\\DA_data.yaml</arg>
|
|
<doc>Imports a variable file with the given path and optional arguments.</doc>
|
|
<status status="PASS" starttime="20240321 19:22:02.500" endtime="20240321 19:22:02.503"/>
|
|
</kw>
|
|
<test id="s1-s3-s1-s1-t1" name="审核征婚人提交的资料-相册" line="6">
|
|
<kw name="Given 查询婚介平台用户资料数据" library="Infomation" sourcename="查询${dating}平台用户资料数据">
|
|
<for flavor="IN">
|
|
<var>${admin_header}</var>
|
|
<value>@{Aheader_list}</value>
|
|
<iter>
|
|
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','X-Organization-Id':'96...</var>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<arg>dating</arg>
|
|
<arg>${${dating}.dating域名}</arg>
|
|
<arg>${admin_header}</arg>
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<msg timestamp="20240321 19:22:02.506" 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240321 19:22:02.506" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.505" endtime="20240321 19:22:02.507"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/get/marriage/information/audit/page</arg>
|
|
<arg>params=pageSize=10&name=${nickName}&pageNum=1</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240321 19:22:02.508" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240321 19:22:02.571" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=hinzai&pageNum=1 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240321 19:22:02.571" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=hinzai&pageNum=1
|
|
path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=hinzai&pageNum=1
|
|
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">MacCyrillic Russian confidence = 0.033639699429515335</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">IBM866 Russian confidence = 0.2571955118155079</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">IBM855 Russian confidence = 0.1283596119153322</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">ISO-8859-7 Greek confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">windows-1253 Greek confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.574" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">windows-1251 Bulgarian confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">TIS-620 Thai confidence = 0.10082902095518866</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">ISO-8859-9 Turkish confidence = 0.44826610176718007</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.575" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.577" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.577" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.577" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240321 19:22:02.577" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=hinzai&pageNum=1
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 11:22:02 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":{"records":[{"id":"968270416206499840","phone":"13168550964","name":"hinzai","status":0,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-21 19:22:02","auditTime":null},{"id":"968198190262259712","phone":"13168550964","name":"hinzai","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-21 14:35:02","auditTime":null},{"id":"968198567627984896","phone":"13168550964","name":"hinzai","status":1,"authenticationCode":0,"authenticationName":"实名认证","createTime":"2024-03-21 14:36:32","auditTime":null},{"id":"968267340917641216","phone":"13168550964","name":"hinzai","status":2,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-21 19:09:49","auditTime":null},{"id":"968269804123328512","phone":"13168550964","name":"hinzai","status":2,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-21 19:19:36","auditTime":null}],"total":5,"size":10,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.577" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.507" endtime="20240321 19:22:02.577"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${records}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>records</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240321 19:22:02.578" level="INFO">${records} = [{'id': '968270416206499840', 'phone': '13168550964', 'name': 'hinzai', 'status': 0, 'authenticationCode': 7, 'authenticationName': '介绍信息审核', 'createTime': '2024-03-21 19:22:02', 'auditTime': None}, {...</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.577" endtime="20240321 19:22:02.578"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.505" endtime="20240321 19:22:02.578"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:02.504" endtime="20240321 19:22:02.578"/>
|
|
</for>
|
|
<for flavor="IN">
|
|
<var>${info}</var>
|
|
<value>@{records}</value>
|
|
<iter>
|
|
<var name="${info}">{'id': '968270416206499840', 'phone': '13168550964', 'name': 'hinzai', 'status': 0, 'authenticationCode': 7, 'authenticationName': '介绍信息审核', 'createTime': '2024-03-21 19:22:02', 'auditTime': None}</var>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${InfoId}</var>
|
|
<arg>${info}</arg>
|
|
<arg>id</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240321 19:22:02.579" level="INFO">${InfoId} = 968270416206499840</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.579" endtime="20240321 19:22:02.579"/>
|
|
</kw>
|
|
<kw name="Exit For Loop If" library="BuiltIn">
|
|
<arg>${InfoId}==${auditId}</arg>
|
|
<doc>Stops executing the enclosing FOR loop if the ``condition`` is true.</doc>
|
|
<msg timestamp="20240321 19:22:02.580" level="INFO">Exiting for loop altogether.</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.579" endtime="20240321 19:22:02.580"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.578" endtime="20240321 19:22:02.580"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:02.578" endtime="20240321 19:22:02.580"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${InfoId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240321 19:22:02.581" level="INFO">${InfoId} = 968270416206499840</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.580" endtime="20240321 19:22:02.581"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.504" endtime="20240321 19:22:02.581"/>
|
|
</kw>
|
|
<kw name="When 查询婚介平台审核资料-审核通过" library="Infomation" sourcename="查询${dating}平台审核资料-审核通过">
|
|
<for flavor="IN">
|
|
<var>${admin_header}</var>
|
|
<value>@{Aheader_list}</value>
|
|
<iter>
|
|
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','X-Organization-Id':'96...</var>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<arg>dating</arg>
|
|
<arg>${${dating}.dating域名}</arg>
|
|
<arg>${admin_header}</arg>
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<msg timestamp="20240321 19:22:02.583" 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240321 19:22:02.583" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.582" endtime="20240321 19:22:02.583"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{"id":"${InfoId}","status":1}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240321 19:22:02.584" level="INFO">${data} = {"id":"968270416206499840","status":1}</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.583" endtime="20240321 19:22:02.584"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-service/user/exe/certification/audit</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240321 19:22:02.585" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240321 19:22:02.702" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/exe/certification/audit HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240321 19:22:02.702" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
|
|
path_url=/dating-agency-service/user/exe/certification/audit
|
|
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'}
|
|
body=b'{"id":"968270416206499840","status":1}'
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.703" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 11:22:02 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":"968270416206499840"}
|
|
</msg>
|
|
<msg timestamp="20240321 19:22:02.703" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.584" endtime="20240321 19:22:02.703"/>
|
|
</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="20240321 19:22:02.704" level="INFO">${data} = 968270416206499840</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.703" endtime="20240321 19:22:02.704"/>
|
|
</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="20240321 19:22:02.705" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.704" endtime="20240321 19:22:02.705"/>
|
|
</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="20240321 19:22:02.706" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.706" endtime="20240321 19:22:02.706"/>
|
|
</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="20240321 19:22:02.707" level="INFO">${data} = 968270416206499840</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.706" endtime="20240321 19:22:02.707"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.582" endtime="20240321 19:22:02.707"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240321 19:22:02.582" endtime="20240321 19:22:02.707"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240321 19:22:02.581" endtime="20240321 19:22:02.707"/>
|
|
</kw>
|
|
<kw name="Then 查询数据库审核表数据" library="Infomation">
|
|
<kw name="Connect To Database Using Custom Params" library="DatabaseLibrary">
|
|
<arg>pymysql</arg>
|
|
<arg>database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'</arg>
|
|
<doc>Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
|
|
connect to the database using the map string `db_custom_param_string`.</doc>
|
|
<msg timestamp="20240321 19:22:02.875" 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="20240321 19:22:02.708" endtime="20240321 19:22:02.917"/>
|
|
</kw>
|
|
<kw name="Query" library="DatabaseLibrary">
|
|
<var>${check}</var>
|
|
<arg>SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${data}'</arg>
|
|
<doc>Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
|
|
input `sansTran` to True to run command without an explicit transaction commit or rollback.
|
|
Set optional input `returnAsDict` to True to return values as a list of dictionaries.</doc>
|
|
<msg timestamp="20240321 19:22:02.919" level="INFO">Executing : Query | SELECT status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '968270416206499840' </msg>
|
|
<msg timestamp="20240321 19:22:02.936" level="INFO">${check} = ((1,),)</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.919" endtime="20240321 19:22:02.936"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${status}</var>
|
|
<arg>${check[0][0]}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240321 19:22:02.937" level="INFO">${status} = 1</msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.936" endtime="20240321 19:22:02.937"/>
|
|
</kw>
|
|
<kw name="Should Be Equal As Numbers" library="BuiltIn">
|
|
<arg>${status}</arg>
|
|
<arg>1</arg>
|
|
<doc>Fails if objects are unequal after converting them to real numbers.</doc>
|
|
<msg timestamp="20240321 19:22:02.937" level="INFO">Argument types are:
|
|
<class 'int'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240321 19:22:02.937" endtime="20240321 19:22:02.937"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.708" endtime="20240321 19:22:02.937"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240321 19:22:02.503" endtime="20240321 19:22:02.937"/>
|
|
</test>
|
|
<status status="PASS" starttime="20240321 19:22:02.491" endtime="20240321 19:22:02.937"/>
|
|
</suite>
|
|
<doc>资料审核</doc>
|
|
<status status="PASS" starttime="20240321 19:22:02.489" endtime="20240321 19:22:02.938"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240321 19:22:02.487" endtime="20240321 19:22:02.939"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240321 19:22:01.608" endtime="20240321 19:22:02.939"/>
|
|
</suite>
|
|
<statistics>
|
|
<total>
|
|
<stat pass="3" fail="0" skip="0">All Tests</stat>
|
|
</total>
|
|
<tag>
|
|
</tag>
|
|
<suite>
|
|
<stat pass="3" fail="0" skip="0" id="s1" name="Dating-agency">Dating-agency</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s1" name="0-Login">Dating-agency.0-Login</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s1-s1" name="Login-interface">Dating-agency.0-Login.Login-interface</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2" name="2-Homepage">Dating-agency.2-Homepage</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1" name="MarriageInfo">Dating-agency.2-Homepage.MarriageInfo</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="DataAuthentication">Dating-agency.2-Homepage.MarriageInfo.DataAuthentication</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s3" name="Web">Dating-agency.Web</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s3-s1" name="InfoAudit">Dating-agency.Web.InfoAudit</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s3-s1-s1" name="AuditInfomation">Dating-agency.Web.InfoAudit.AuditInfomation</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
</errors>
|
|
</robot>
|