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.
1143 lines
80 KiB
1143 lines
80 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240624 15:48:50.160" rpa="false" schemaversion="4">
|
|
<suite id="s1" name="Dating-agency" source="D:\LYL\Study\Robot_framework\space\Dating-agency">
|
|
<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="20240624 15:48:50.192" endtime="20240624 15:48:50.192"/>
|
|
</kw>
|
|
<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="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="27">
|
|
<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="20240624 15:48:50.648" 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="20240624 15:48:50.648" level="INFO">${file} = 手机号
|
|
19128859944</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</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="20240624 15:48:50.648" level="INFO">${skip-line} = 1</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</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="20240624 15:48:50.648" level="INFO">${lines} = -1</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</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="20240624 15:48:50.648" level="INFO">1 out of 2 lines matched</msg>
|
|
<msg timestamp="20240624 15:48:50.648" level="INFO">${content} = 19128859944</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${id}</var>
|
|
<value>${content}</value>
|
|
<iter>
|
|
<var name="${id}">19128859944</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="20240624 15:48:50.648" level="INFO">${id} = ['19128859944']</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</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="20240624 15:48:50.648" level="INFO">${id} = ['19128859944']</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</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="20240624 15:48:50.648" level="INFO">${userid_list} = []</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Cheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240624 15:48:50.648" level="INFO">${Cheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${Aheader_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240624 15:48:50.648" level="INFO">${Aheader_list} = []</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${phoneList}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240624 15:48:50.648" level="INFO">${phoneList} = []</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</kw>
|
|
<for flavor="IN">
|
|
<var>${account}</var>
|
|
<value>@{id}</value>
|
|
<iter>
|
|
<var name="${account}">19128859944</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.648"/>
|
|
</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="20240624 15:48:50.664" level="INFO">Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240624 15:48:50.664" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.664"/>
|
|
</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="20240624 15:48:50.664" level="INFO">${data} = { "account":"19128859944", "accountType":2, "captcha":888888 }</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.664" endtime="20240624 15:48:50.664"/>
|
|
</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="20240624 15:48:50.664" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240624 15:48:50.758" 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="20240624 15:48:50.758" 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":"19128859944", "accountType":2, "captcha":888888 }'
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:50.758" 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': 'Mon, 24 Jun 2024 07:48:50 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==","userId":"986635834872696832"}}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:50.758" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.664" endtime="20240624 15:48:50.758"/>
|
|
</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="20240624 15:48:50.758" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.758" endtime="20240624 15:48:50.758"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.758" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${userId} = 986635834872696832</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<arg>${login_header}</arg>
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<msg timestamp="20240624 15:48:50.774" level="INFO">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==','X-Organization-Id':'963432943739605555'}</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${phoneList}</arg>
|
|
<arg>${account}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.774"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.774"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${phoneList}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:50.774" level="INFO">${phoneList} = ['19128859944']</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${userid_list}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:50.774" level="INFO">${userid_list} = ['986635834872696832']</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==','X-Organization-Id':'...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}"]</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==','X-Organization-Id':'96...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="INFO">${Aheader} = []</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${login_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Aheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">986635834872696832</var>
|
|
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==','X-Organization-Id':'96...</var>
|
|
<kw name="Disable Warnings" library="urllib3">
|
|
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240624 15:48:50.774" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.774"/>
|
|
</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="20240624 15:48:50.774" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=986635834872696832 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=986635834872696832
|
|
path_url=/dating-agency-uec/user/list/own-organization?userId=986635834872696832
|
|
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">windows-1253 Greek confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">ISO-8859-9 Turkish confidence = 0.2794564987311486</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:50.821" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=986635834872696832
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:50 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="20240624 15:48:50.821" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.821"/>
|
|
</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="20240624 15:48:50.821" level="INFO">${data} = [{'orgId': '963432943739605555', 'fullName': '趣招亲', 'shortName': '趣招亲'}]</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.821"/>
|
|
</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="20240624 15:48:50.821" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.821"/>
|
|
</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="20240624 15:48:50.821" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.821"/>
|
|
</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="20240624 15:48:50.821" level="INFO">[{'orgId': '963432943739605555', 'fullName': '趣招亲', 'shortName': '趣招亲'}]</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.821"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.821"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.821"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.821"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240624 15:48:50.774" endtime="20240624 15:48:50.821"/>
|
|
</kw>
|
|
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${matchmakerFlagList}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240624 15:48:50.821" level="INFO">${matchmakerFlagList} = []</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.821"/>
|
|
</kw>
|
|
<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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==','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="20240624 15:48:50.837" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240624 15:48:50.837" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.837"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-uec/user/get/base-info</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240624 15:48:50.837" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240624 15:48:50.899" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/get/base-info HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
|
|
path_url=/dating-agency-uec/user/get/base-info
|
|
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==', 'X-Organization-Id': '963432943739605555'}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:50 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
|
|
body={"code":0,"message":"successful","data":{"userId":"986635834872696832","realName":"qianniao","nickName":null,"phone":"19128859944","matchmakerFlag":false}}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.837" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${phone}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>phone</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">${phone} = 19128859944</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${matchmakerFlag}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>matchmakerFlag</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">${matchmakerFlag} = False</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<kw name="Append To List" library="Collections">
|
|
<arg>${matchmakerFlagList}</arg>
|
|
<arg>${matchmakerFlag}</arg>
|
|
<doc>Adds ``values`` to the end of ``list``.</doc>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.899"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.899"/>
|
|
</for>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${phone}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">${phone} = 19128859944</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${matchmakerFlag}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">${matchmakerFlag} = False</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${matchmakerFlagList}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:50.899" level="INFO">${matchmakerFlagList} = [False]</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.821" endtime="20240624 15:48:50.899"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.648" endtime="20240624 15:48:50.899"/>
|
|
</test>
|
|
<doc>接口:短信验证码登录认证</doc>
|
|
<status status="PASS" starttime="20240624 15:48:50.192" endtime="20240624 15:48:50.899"/>
|
|
</suite>
|
|
<doc>用户登录婚介平台</doc>
|
|
<status status="PASS" starttime="20240624 15:48:50.192" endtime="20240624 15:48:50.899"/>
|
|
</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="7-Chat" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\7-Chat">
|
|
<suite id="s1-s2-s1-s1" name="Chat" source="D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\7-Chat\Chat.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="20240624 15:48:50.915" endtime="20240624 15:48:50.915"/>
|
|
</kw>
|
|
<test id="s1-s2-s1-s1-t1" name="用户发起聊天" line="6">
|
|
<kw name="Given 查询婚介征婚人的资料信息" library="ChatResource" sourcename="查询${dating}征婚人的资料信息">
|
|
<kw name="Create List" library="BuiltIn">
|
|
<var>${miId_list}</var>
|
|
<doc>Returns a list containing given items.</doc>
|
|
<msg timestamp="20240624 15:48:50.915" level="INFO">${miId_list} = []</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.915" endtime="20240624 15:48:50.915"/>
|
|
</kw>
|
|
<for flavor="IN ZIP">
|
|
<var>${userId}</var>
|
|
<var>${client_header}</var>
|
|
<value>${userid_list}</value>
|
|
<value>${Cheader_list}</value>
|
|
<iter>
|
|
<var name="${userId}">986635834872696832</var>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}</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="20240624 15:48:50.915" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240624 15:48:50.915" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.915" endtime="20240624 15:48:50.915"/>
|
|
</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="20240624 15:48:50.915" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-service/user/get/marriage/information/details?userId=986635834872696832 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=986635834872696832
|
|
path_url=/dating-agency-service/user/get/marriage/information/details?userId=986635834872696832
|
|
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">IBM866 Russian confidence = 0.04567243278316806</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">IBM855 Russian confidence = 0.14586319535833206</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4161984707917406</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=986635834872696832
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:51 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":"986636134635409408","isDelete":false,"createTime":"2024-05-11 11:40:50","updateTime":null,"event":null,"accountId":null,"userId":null,"nickName":"嘉宾3号","name":"赖勇兰","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/205520361E10C43.png","identityCard":"441481199509213863","genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440105,"districtName":"海珠区","birthYear":"1981","birthDate":"1981-09-21","constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":"猪","height":162,"weight":null,"educationCode":2,"education":"大专","maritalStatusCode":null,"maritalStatusName":null,"minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","diplomaVerificationCode":null,"describeInfo":null,"identityType":2,"identityTypeName":"母亲","domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440100,"hometownCityName":"广州市","display":true,"inLove":0,"auditProfilePhoto":{"id":"995017876270354432","isDelete":null,"createTime":"2024-06-03 14:46:53","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":null,"auditImgId":null,"auditStatus":0},"photoList":[{"id":"995019786981347328","isDelete":null,"createTime":"2024-06-03 14:54:29","updateTime":null,"event":null,"miId":null,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/16887B9AE56A432.blob:http://localhost:9090/aa489f0b-a818-4bcc-aab2-8da2b4c17e6d","auditImgId":null,"auditStatus":0}],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":37,"phone":null}}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.010" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:50.915" endtime="20240624 15:48:51.010"/>
|
|
</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="20240624 15:48:51.010" level="INFO">${miId} = 986636134635409408</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.010" endtime="20240624 15:48:51.010"/>
|
|
</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="20240624 15:48:51.010" level="INFO">${nickName} = 嘉宾3号</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.010" endtime="20240624 15:48:51.010"/>
|
|
</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="20240624 15:48:51.010" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.010" endtime="20240624 15:48:51.010"/>
|
|
</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="20240624 15:48:51.010" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.010" endtime="20240624 15:48:51.010"/>
|
|
</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="20240624 15:48:51.010" endtime="20240624 15:48:51.010"/>
|
|
</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="20240624 15:48:51.010" level="DEBUG">Argument types are:
|
|
<class 'str'>
|
|
<class 'str'></msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.010" endtime="20240624 15:48:51.010"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.915" endtime="20240624 15:48:51.010"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:50.915" endtime="20240624 15:48:51.010"/>
|
|
</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="20240624 15:48:51.026" level="INFO">${miId_list} = ['986636134635409408']</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.010" endtime="20240624 15:48:51.026"/>
|
|
</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="20240624 15:48:51.026" level="INFO">${nickName} = 嘉宾3号</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.026"/>
|
|
</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="20240624 15:48:51.026" level="INFO">${genderCode} = 1</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.026"/>
|
|
</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="20240624 15:48:51.026" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.026"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.915" endtime="20240624 15:48:51.026"/>
|
|
</kw>
|
|
<kw name="When 查询婚介消息列表" library="ChatResource" sourcename="查询${dating}消息列表">
|
|
<for flavor="IN ZIP">
|
|
<var>${client_header}</var>
|
|
<var>${selfMiId}</var>
|
|
<value>${Cheader_list}</value>
|
|
<value>${miId_list}</value>
|
|
<iter>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}</var>
|
|
<var name="${selfMiId}">986636134635409408</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="20240624 15:48:51.026" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240624 15:48:51.026" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.026"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-cim/user/page/room</arg>
|
|
<arg>params=pageNum=1&pageSize=10&selfMiId=${selfMiId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240624 15:48:51.026" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-cim/user/page/room?pageNum=1&pageSize=10&selfMiId=986636134635409408 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/room?pageNum=1&pageSize=10&selfMiId=986636134635409408
|
|
path_url=/dating-agency-cim/user/page/room?pageNum=1&pageSize=10&selfMiId=986636134635409408
|
|
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.120" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">MacCyrillic Russian confidence = 0.03505447386827808</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">IBM866 Russian confidence = 0.06826397542769941</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">IBM855 Russian confidence = 0.10086766518421256</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">TIS-620 Thai confidence = 0.07453439392177671</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">ISO-8859-9 Turkish confidence = 0.39655501006488514</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/room?pageNum=1&pageSize=10&selfMiId=986636134635409408
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:51 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":[{"roomId":"1001948467494522880","roomType":1,"roomName":"我愿嫁给财神爷哪怕是妾","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/22.jpg","finalContent":"你觉得现在过年还有年味吗?","finalActivityTime":"2024-06-24 15:41:38","cityName":"广州市","unreadContentCount":0,"genderCode":1},{"roomId":"1001948869078159360","roomType":1,"roomName":"四六零五","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/704117513E333C0.png","finalContent":"你好","finalActivityTime":"2024-06-24 15:12:16","cityName":"广州市","unreadContentCount":0,"genderCode":0},{"roomId":"1000494436519645184","roomType":1,"roomName":"hinzai~","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/27A5A9985C1E06A.png","finalContent":"你做过最开心的事情是什么?","finalActivityTime":"2024-06-24 15:07:43","cityName":"广州市","unreadContentCount":0,"genderCode":0},{"roomId":"1001951186921852928","roomType":1,"roomName":"伏才","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/21f79ccaf480ffb9b0d689f4a1e551fb.jpg","finalContent":null,"finalActivityTime":"2024-06-24 11:29:51","cityName":"广州市","unreadContentCount":0,"genderCode":0},{"roomId":"1001948494073827328","roomType":1,"roomName":"就是不吃饭","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/5366B037642657C.png","finalContent":null,"finalActivityTime":"2024-06-22 17:46:42","cityName":"广州市","unreadContentCount":0,"genderCode":1},{"roomId":"1001456978666590208","roomType":1,"roomName":"网名不要太长像我这样就好","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/d36dfdb0481ab5063b03b5eca61e3cde.jpg","finalContent":null,"finalActivityTime":"2024-06-21 09:13:35","cityName":"衡阳市","unreadContentCount":0,"genderCode":0}],"total":6,"size":10,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${InfomationData}</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="20240624 15:48:51.135" level="INFO">${InfomationData} = [{'roomId': '1001948467494522880', 'roomType': 1, 'roomName': '我愿嫁给财神爷哪怕是妾', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/22.jpg', 'finalContent': '你觉得现在过年还有年味吗?', 'finalActivity...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${InfomationData}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${InfomationData} = [{'roomId': '1001948467494522880', 'roomType': 1, 'roomName': '我愿嫁给财神爷哪怕是妾', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/22.jpg', 'finalContent': '你觉得现在过年还有年味吗?', 'finalActivity...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${InfomationData}==[]</arg>
|
|
<arg>查询婚介平台相亲列表</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>遍历消息列表</arg>
|
|
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
|
|
<kw name="遍历消息列表" library="ChatResource">
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${infomation}</var>
|
|
<arg>random.choice(${InfomationData})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${infomation} = {'roomId': '1001948494073827328', 'roomType': 1, 'roomName': '就是不吃饭', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/5366B037642657C.png', 'finalContent': None, 'finalActivityTime'...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${roomId}</var>
|
|
<arg>${infomation}</arg>
|
|
<arg>roomId</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${roomId} = 1001948494073827328</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${roomName}</var>
|
|
<arg>${infomation}</arg>
|
|
<arg>roomName</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${roomName} = 就是不吃饭</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${roomName}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${roomName} = 就是不吃饭</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${roomId}</var>
|
|
<arg>1001948869078159360</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${roomId} = 1001948869078159360</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Convert To String" library="BuiltIn">
|
|
<var>${roomId}</var>
|
|
<arg>${roomId}</arg>
|
|
<doc>Converts the given item to a Unicode string.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">Argument types are:
|
|
<class 'str'></msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${roomId} = 1001948869078159360</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<arg>${roomId}</arg>
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="INFO">${roomId} = 1001948869078159360</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.135"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.135"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240624 15:48:51.026" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="Then 查询婚介用户的聊天权益" library="ChatResource" sourcename="查询${dating}用户的聊天权益">
|
|
<for flavor="IN ZIP">
|
|
<var>${client_header}</var>
|
|
<var>${selfMiId}</var>
|
|
<value>${Cheader_list}</value>
|
|
<value>${miId_list}</value>
|
|
<iter>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}</var>
|
|
<var name="${selfMiId}">986636134635409408</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="20240624 15:48:51.135" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.135"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>/dating-agency-cim/user/get/chat-right-consume</arg>
|
|
<arg>params=roomId=${roomId}&selfMiId=${selfMiId}</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240624 15:48:51.135" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240624 15:48:51.182" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-cim/user/get/chat-right-consume?roomId=1001948869078159360&selfMiId=986636134635409408 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:51.182" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/get/chat-right-consume?roomId=1001948869078159360&selfMiId=986636134635409408
|
|
path_url=/dating-agency-cim/user/get/chat-right-consume?roomId=1001948869078159360&selfMiId=986636134635409408
|
|
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.182" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/get/chat-right-consume?roomId=1001948869078159360&selfMiId=986636134635409408
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:51 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":{"chatRight":true}}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.182" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.182"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${chatRight}</var>
|
|
<arg>${reps.json()['data']}</arg>
|
|
<arg>chatRight</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240624 15:48:51.182" level="INFO">${chatRight} = True</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.182" endtime="20240624 15:48:51.182"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-mall/user/list/right/by/customer</arg>
|
|
<arg>params=miId=${selfMiId}&type=501</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-mall/user/list/right/by/customer?miId=986636134635409408&type=501 HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-mall/user/list/right/by/customer?miId=986636134635409408&type=501
|
|
path_url=/dating-agency-mall/user/list/right/by/customer?miId=986636134635409408&type=501
|
|
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-JP Japanese prober hit error at byte 56</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">GB2312 Chinese prober hit error at byte 64</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-KR Korean prober hit error at byte 56</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">CP949 Korean prober hit error at byte 56</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">Big5 Chinese prober hit error at byte 57</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-TW Taiwan prober hit error at byte 56</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">utf-8 confidence = 0.87625</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-JP not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">GB2312 not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-KR not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">CP949 not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">Big5 not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-TW not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">ISO-8859-5 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">ISO-8859-7 Greek confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">windows-1253 Greek confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">windows-1251 Bulgarian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4939546726022934</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">windows-1255 Hebrew confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">utf-8 confidence = 0.87625</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-JP not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">GB2312 not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-KR not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">CP949 not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">Big5 not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">EUC-TW not active</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-mall/user/list/right/by/customer?miId=986636134635409408&type=501
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:51 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":[{"rightName":"聊天卡","type":501,"rightSpecUnit":102,"startTime":"2024-06-24 15:04:37","endTime":"2024-06-29 15:04:37","remainingDays":5,"rightCount":2,"dailyUseLimit":-1,"dailyUseCount":2,"enable":true}]}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.182" endtime="20240624 15:48:51.245"/>
|
|
</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="20240624 15:48:51.245" level="INFO">${data} = [{'rightName': '聊天卡', 'type': 501, 'rightSpecUnit': 102, 'startTime': '2024-06-24 15:04:37', 'endTime': '2024-06-29 15:04:37', 'remainingDays': 5, 'rightCount': 2, 'dailyUseLimit': -1, 'dailyUseCount'...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.245" endtime="20240624 15:48:51.245"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${chatRight}==False and ${data}==[]</arg>
|
|
<arg>数据库新增聊天卡权益</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${chatRight}==False and ${data}!=[]</arg>
|
|
<arg>聊天消耗婚介用户权益</arg>
|
|
<arg>ELSE IF</arg>
|
|
<arg>${chatRight}==True</arg>
|
|
<arg>使用婚介常用语聊天</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>LOG</arg>
|
|
<arg>正常聊天</arg>
|
|
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
|
|
<kw name="使用婚介常用语聊天" library="ChatResource" sourcename="使用${dating}常用语聊天">
|
|
<for flavor="IN ZIP">
|
|
<var>${client_header}</var>
|
|
<var>${selfmiId}</var>
|
|
<value>${Cheader_list}</value>
|
|
<value>${miId_list}</value>
|
|
<iter>
|
|
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}</var>
|
|
<var name="${selfmiId}">986636134635409408</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="20240624 15:48:51.245" 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">Creating session: dating</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.245" endtime="20240624 15:48:51.245"/>
|
|
</kw>
|
|
<kw name="GET On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-cim/user/page/common-chat-template/by/customer</arg>
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240624 15:48:51.245" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
|
|
<msg timestamp="20240624 15:48:51.293" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-cim/user/page/common-chat-template/by/customer HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:51.293" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/common-chat-template/by/customer
|
|
path_url=/dating-agency-cim/user/page/common-chat-template/by/customer
|
|
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA=='}
|
|
body=None
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">IBM866 Russian confidence = 0.04293064457159178</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">IBM855 Russian confidence = 0.016445265691132117</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">TIS-620 Thai confidence = 0.07036654784268855</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">ISO-8859-9 Turkish confidence = 0.31050097644885893</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">utf-8 confidence = 0.99</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">CP949 Korean confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/page/common-chat-template/by/customer
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:51 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":[{"commonContent":"The future belongs to those who believe in the beauty of their dreams."},{"commonContent":"微信号:qianniao"},{"commonContent":"nice to meet you\uD83E\uDD1D\uD83E\uDD1D\uD83E\uDD1D"},{"commonContent":"你做过最开心的事情是什么?"},{"commonContent":"你觉得现在过年还有年味吗?"},{"commonContent":"独门独户不独居,相亲相敬常相知。"}],"total":6,"size":10,"current":1,"pages":1}}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.308" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.245" endtime="20240624 15:48:51.308"/>
|
|
</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="20240624 15:48:51.308" level="INFO">${records} = [{'commonContent': 'The future belongs to those who believe in the beauty of their dreams.'}, {'commonContent': '微信号:qianniao'}, {'commonContent': 'nice to meet you🤝🤝🤝'}, {'commonContent': '你做过最开心的事情是...</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.308" endtime="20240624 15:48:51.308"/>
|
|
</kw>
|
|
<kw name="Evaluate" library="BuiltIn">
|
|
<var>${CommonData}</var>
|
|
<arg>random.choice(${records})</arg>
|
|
<arg>random</arg>
|
|
<doc>Evaluates the given expression in Python and returns the result.</doc>
|
|
<msg timestamp="20240624 15:48:51.308" level="INFO">${CommonData} = {'commonContent': 'nice to meet you🤝🤝🤝'}</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.308" endtime="20240624 15:48:51.308"/>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<var>${commonContent}</var>
|
|
<arg>${CommonData}</arg>
|
|
<arg>commonContent</arg>
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<msg timestamp="20240624 15:48:51.308" level="INFO">${commonContent} = nice to meet you🤝🤝🤝</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.308" endtime="20240624 15:48:51.308"/>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<var>${data}</var>
|
|
<arg>{"selfMiId":"${selfmiId}","content":"${commonContent}","roomId":"${roomId}"}</arg>
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<msg timestamp="20240624 15:48:51.308" level="INFO">${data} = {"selfMiId":"986636134635409408","content":"nice to meet you🤝🤝🤝","roomId":"1001948869078159360"}</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.308" endtime="20240624 15:48:51.308"/>
|
|
</kw>
|
|
<kw name="POST On Session" library="RequestsLibrary">
|
|
<var>${reps}</var>
|
|
<arg>dating</arg>
|
|
<arg>dating-agency-cim/user/send/content</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<msg timestamp="20240624 15:48:51.575" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-cim/user/send/content HTTP/1.1" 200 None</msg>
|
|
<msg timestamp="20240624 15:48:51.575" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/send/content
|
|
path_url=/dating-agency-cim/user/send/content
|
|
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oW/+70ZZovRMXVbMaKSm8TcY2CHUmAUi5bNeYXyG4J6lA==', 'Content-Length': '105'}
|
|
body=b'{"selfMiId":"986636134635409408","content":"nice to meet you\xf0\x9f\xa4\x9d\xf0\x9f\xa4\x9d\xf0\x9f\xa4\x9d","roomId":"1001948869078159360"}'
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.575" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/send/content
|
|
status=200, reason=
|
|
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 07:48:51 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":null}
|
|
</msg>
|
|
<msg timestamp="20240624 15:48:51.575" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.308" endtime="20240624 15:48:51.575"/>
|
|
</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="20240624 15:48:51.591" level="INFO">${code} = 0</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.575" endtime="20240624 15:48:51.591"/>
|
|
</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="20240624 15:48:51.591" level="INFO">${message} = successful</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.591" endtime="20240624 15:48:51.591"/>
|
|
</kw>
|
|
<kw name="Run Keyword If" library="BuiltIn">
|
|
<arg>${code}==200100</arg>
|
|
<arg>log</arg>
|
|
<arg>${message}</arg>
|
|
<arg>ELSE</arg>
|
|
<arg>log</arg>
|
|
<arg>消息发送成功</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="20240624 15:48:51.591" level="INFO">消息发送成功</msg>
|
|
<status status="PASS" starttime="20240624 15:48:51.591" endtime="20240624 15:48:51.591"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:51.591" endtime="20240624 15:48:51.591"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:51.245" endtime="20240624 15:48:51.591"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:51.245" endtime="20240624 15:48:51.591"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240624 15:48:51.245" endtime="20240624 15:48:51.591"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:51.245" endtime="20240624 15:48:51.591"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.591"/>
|
|
</iter>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.591"/>
|
|
</for>
|
|
<status status="PASS" starttime="20240624 15:48:51.135" endtime="20240624 15:48:51.591"/>
|
|
</kw>
|
|
<status status="PASS" starttime="20240624 15:48:50.915" endtime="20240624 15:48:51.591"/>
|
|
</test>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:51.591"/>
|
|
</suite>
|
|
<doc>1、嘉宾和嘉宾聊天
|
|
2、嘉宾和红娘聊天</doc>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:51.591"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240624 15:48:50.899" endtime="20240624 15:48:51.591"/>
|
|
</suite>
|
|
<status status="PASS" starttime="20240624 15:48:50.176" endtime="20240624 15:48:51.591"/>
|
|
</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="7-Chat">Dating-agency.1-Applet.7-Chat</stat>
|
|
<stat pass="1" fail="0" skip="0" id="s1-s2-s1-s1" name="Chat">Dating-agency.1-Applet.7-Chat.Chat</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
</errors>
|
|
</robot>
|