Browse Source

优化扫码注册红娘

master
LG_lai 2 years ago
parent
commit
233cedf79a
5 changed files with 453 additions and 178 deletions
  1. 12
      0-Login/LoginResource.robot
  2. 2
      0-Login/phone-test.txt
  3. 10
      output/log.html
  4. 597
      output/output.xml
  5. 10
      output/report.html

12
0-Login/LoginResource.robot

@ -243,9 +243,10 @@ Library ImageHorizonLibrary
红娘列表
FOR ${matchmaker} IN @{matchmaker_list}
${Phone} Get From Dictionary ${matchmaker} phone
Exit For Loop If ${Phone}==19128859944
${PhoneNum} Get From Dictionary ${matchmaker} phone
Exit For Loop If ${PhoneNum}==${phone}
END
Set Global Variable ${PhoneNum}
数据库删除用户数据
FOR ${userId} IN @{userid_list}
@ -273,10 +274,3 @@ FOR循环
FOR ${i} IN @{L1}
${output} Set Variable {'item':${data}}
END
通用组件 等待图形
[Arguments] ${图片名称} ${图片所在文件夹} ${等待时间}=${默认等待时间} ${鼠标是否挪开}=是
Set Reference Folder ${图片所在文件夹}
Run Keyword If '${鼠标是否挪开}'=='是' Mouse Move 0 500
Display Img ${图片所在文件夹}/${图片名称}
wait for ${图片名称} ${等待时间}

2
0-Login/phone-test.txt

@ -1,2 +1,2 @@
手机号
15014242835
18898674523

10
output/log.html
File diff suppressed because it is too large
View File

597
output/output.xml

@ -1,84 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240407 14:32:45.371" rpa="false" schemaversion="4">
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240407 15:27:08.406" 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="20240407 14:32:45.703" endtime="20240407 14:32:45.707"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888,phone" line="33">
<kw name="Given 生成随机手机号" library="LoginResource">
<kw name="Evaluate" library="BuiltIn">
<var>${num}</var>
<arg>random.choice(["139","188","185","136","158","151","132","156","189","187","135","134"])</arg>
<arg>random</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240407 14:32:45.708" level="INFO">${num} = 185</msg>
<status status="PASS" starttime="20240407 14:32:45.708" endtime="20240407 14:32:45.708"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${number}</var>
<arg>"".join(random.sample("01234567897",8))</arg>
<arg>random,string</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240407 14:32:45.709" level="INFO">${number} = 48157976</msg>
<status status="PASS" starttime="20240407 14:32:45.709" endtime="20240407 14:32:45.709"/>
</kw>
<kw name="Evaluate" library="BuiltIn">
<var>${phone}</var>
<arg>${num}${number}</arg>
<doc>Evaluates the given expression in Python and returns the result.</doc>
<msg timestamp="20240407 14:32:45.710" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 14:32:45.709" endtime="20240407 14:32:45.710"/>
<status status="PASS" starttime="20240407 15:27:08.721" endtime="20240407 15:27:08.737"/>
</kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="26">
<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="20240407 15:27:08.737" level="INFO" html="true">Getting file '&lt;a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt"&gt;D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt&lt;/a&gt;'.</msg>
<msg timestamp="20240407 15:27:08.737" level="INFO">${file} = 手机号
18898674523</msg>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.737"/>
</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="20240407 15:27:08.737" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.737"/>
</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="20240407 15:27:08.737" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.737"/>
</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="20240407 15:27:08.737" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240407 15:27:08.737" level="INFO">${content} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.737"/>
</kw>
<for flavor="IN">
<var>${id}</var>
<value>${content}</value>
<iter>
<var name="${id}">18898674523</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="20240407 15:27:08.737" level="INFO">${id} = ['18898674523']</msg>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.744"/>
</kw>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.744"/>
</iter>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.744"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${phone}</arg>
<arg>${id}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240407 14:32:45.710" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 14:32:45.710" endtime="20240407 14:32:45.710"/>
<msg timestamp="20240407 15:27:08.744" level="INFO">${id} = ['18898674523']</msg>
<status status="PASS" starttime="20240407 15:27:08.744" endtime="20240407 15:27:08.744"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.708" endtime="20240407 14:32:45.710"/>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.745"/>
</kw>
<kw name="When 用户手机号验证码登录婚介平台-phone" library="LoginResource" sourcename="用户手机号验证码登录${dating}平台-phone">
<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="20240407 14:32:45.711" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240407 14:32:45.711" endtime="20240407 14:32:45.711"/>
<msg timestamp="20240407 15:27:08.746" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240407 15:27:08.745" endtime="20240407 15:27:08.746"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 14:32:45.711" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240407 14:32:45.711" endtime="20240407 14:32:45.711"/>
<msg timestamp="20240407 15:27:08.746" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240407 15:27:08.746" endtime="20240407 15:27:08.746"/>
</kw>
<kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc>
<msg timestamp="20240407 14:32:45.712" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240407 14:32:45.712" endtime="20240407 14:32:45.712"/>
<msg timestamp="20240407 15:27:08.747" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240407 15:27:08.746" endtime="20240407 15:27:08.747"/>
</kw>
<for flavor="IN">
<var>${account}</var>
<value>@{id}</value>
<iter>
<var name="${account}">18898674523</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240407 14:32:45.712" endtime="20240407 14:32:45.712"/>
<status status="PASS" starttime="20240407 15:27:08.747" endtime="20240407 15:27:08.748"/>
</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="20240407 14:32:45.714" 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="20240407 14:32:45.714" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 14:32:45.712" endtime="20240407 14:32:45.714"/>
<msg timestamp="20240407 15:27:08.749" 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="20240407 15:27:08.749" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 15:27:08.748" endtime="20240407 15:27:08.749"/>
</kw>
<kw name="Set Variable" library="BuiltIn">
<var>${data}</var>
<arg>{ \ \ "account":"${phone}", \ \ "accountType":2, \ \ "captcha":888888 }</arg>
<arg>{ \ \ "account":"${account}", \ \ "accountType":2, \ \ "captcha":888888 }</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 14:32:45.715" level="INFO">${data} = { "account":"18548157976", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240407 14:32:45.715" endtime="20240407 14:32:45.715"/>
<msg timestamp="20240407 15:27:08.750" level="INFO">${data} = { "account":"18898674523", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240407 15:27:08.749" endtime="20240407 15:27:08.750"/>
</kw>
<kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var>
@ -86,84 +118,84 @@
<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="20240407 14:32:45.718" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 14:32:45.819" 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="20240407 14:32:45.820" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
<msg timestamp="20240407 15:27:08.753" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 15:27:08.818" 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="20240407 15:27:08.818" 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":"18548157976", "accountType":2, "captcha":888888 }'
body=b'{ "account":"18898674523", "accountType":2, "captcha":888888 }'
</msg>
<msg timestamp="20240407 14:32:45.820" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
<msg timestamp="20240407 15:27:08.818" 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': 'Sun, 07 Apr 2024 06:32:48 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==","userId":"974358220019732480"}}
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 07:27:11 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==","userId":"972842927204208640"}}
</msg>
<msg timestamp="20240407 14:32:45.820" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 14:32:45.715" endtime="20240407 14:32:45.820"/>
<msg timestamp="20240407 15:27:08.818" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 15:27:08.750" endtime="20240407 15:27:08.818"/>
</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="20240407 14:32:45.821" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240407 14:32:45.821" endtime="20240407 14:32:45.821"/>
<msg timestamp="20240407 15:27:08.818" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240407 15:27:08.818" endtime="20240407 15:27:08.818"/>
</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="20240407 14:32:45.822" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==</msg>
<status status="PASS" starttime="20240407 14:32:45.821" endtime="20240407 14:32:45.822"/>
<msg timestamp="20240407 15:27:08.818" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==</msg>
<status status="PASS" starttime="20240407 15:27:08.818" endtime="20240407 15:27:08.818"/>
</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="20240407 14:32:45.822" level="INFO">${userId} = 974358220019732480</msg>
<status status="PASS" starttime="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<msg timestamp="20240407 15:27:08.818" level="INFO">${userId} = 972842927204208640</msg>
<status status="PASS" starttime="20240407 15:27:08.818" endtime="20240407 15:27:08.818"/>
</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="20240407 14:32:45.822" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<msg timestamp="20240407 15:27:08.818" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 15:27:08.818" endtime="20240407 15:27:08.818"/>
</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="20240407 14:32:45.822" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<msg timestamp="20240407 15:27:08.818" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240407 15:27:08.818" endtime="20240407 15:27:08.818"/>
</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="20240407 14:32:45.822" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag=='}</msg>
<status status="PASS" starttime="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<msg timestamp="20240407 15:27:08.818" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA=='}</msg>
<status status="PASS" starttime="20240407 15:27:08.818" endtime="20240407 15:27:08.818"/>
</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="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<status status="PASS" starttime="20240407 15:27:08.818" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${code}==0</arg>
@ -179,51 +211,68 @@
<arg>${message}</arg>
<arg>successful</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc>
<msg timestamp="20240407 14:32:45.822" level="DEBUG">Argument types are:
<msg timestamp="20240407 15:27:08.834" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</kw>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</kw>
<status status="PASS" starttime="20240407 15:27:08.747" endtime="20240407 15:27:08.834"/>
</iter>
<status status="PASS" starttime="20240407 15:27:08.747" endtime="20240407 15:27:08.834"/>
</for>
<kw name="Set Variable" library="BuiltIn">
<var>${phone}</var>
<arg>${account}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 15:27:08.834" level="INFO">${phone} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.822" endtime="20240407 14:32:45.822"/>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${phone}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240407 15:27:08.834" level="INFO">${phone} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.827" level="INFO">${userid_list} = ['974358220019732480']</msg>
<status status="PASS" starttime="20240407 14:32:45.827" endtime="20240407 14:32:45.827"/>
<msg timestamp="20240407 15:27:08.834" level="INFO">${userid_list} = ['972842927204208640']</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.827" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240407 14:32:45.827" endtime="20240407 14:32:45.827"/>
<msg timestamp="20240407 15:27:08.834" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.828" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag=='}"]</msg>
<status status="PASS" starttime="20240407 14:32:45.828" endtime="20240407 14:32:45.828"/>
<msg timestamp="20240407 15:27:08.834" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA=='}"]</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.828" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240407 14:32:45.828" endtime="20240407 14:32:45.828"/>
<msg timestamp="20240407 15:27:08.834" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.829" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag=='}</msg>
<status status="PASS" starttime="20240407 14:32:45.828" endtime="20240407 14:32:45.829"/>
<msg timestamp="20240407 15:27:08.834" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA=='}</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.710" endtime="20240407 14:32:45.829"/>
<status status="PASS" starttime="20240407 15:27:08.745" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.830" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240407 14:32:45.830" endtime="20240407 14:32:45.830"/>
<msg timestamp="20240407 15:27:08.834" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</kw>
<for flavor="IN ZIP">
<var>${userId}</var>
@ -231,20 +280,20 @@
<value>${userid_list}</value>
<value>${Aheader_list}</value>
<iter>
<var name="${userId}">974358220019732480</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==','X-Organization-Id':'96...</var>
<var name="${userId}">972842927204208640</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240407 14:32:45.830" endtime="20240407 14:32:45.831"/>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</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="20240407 14:32:45.831" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 14:32:45.831" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 14:32:45.831" endtime="20240407 14:32:45.831"/>
<msg timestamp="20240407 15:27:08.834" 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 15:27:08.834" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.834"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
@ -252,45 +301,45 @@
<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="20240407 14:32:45.832" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 14:32:45.866" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=974358220019732480 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 14:32:45.867" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=974358220019732480
path_url=/dating-agency-uec/user/list/own-organization?userId=974358220019732480
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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==', 'X-Organization-Id': '963432943739605555'}
<msg timestamp="20240407 15:27:08.834" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 15:27:08.874" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=972842927204208640 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 15:27:08.874" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=972842927204208640
path_url=/dating-agency-uec/user/list/own-organization?userId=972842927204208640
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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240407 14:32:45.867" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=974358220019732480
<msg timestamp="20240407 15:27:08.874" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=972842927204208640
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 06:32:48 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 07:27:11 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":[]}
</msg>
<msg timestamp="20240407 14:32:45.867" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 14:32:45.831" endtime="20240407 14:32:45.867"/>
<msg timestamp="20240407 15:27:08.874" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.874"/>
</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="20240407 14:32:45.868" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240407 14:32:45.868" endtime="20240407 14:32:45.868"/>
<msg timestamp="20240407 15:27:08.874" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.874"/>
</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="20240407 14:32:45.869" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 14:32:45.868" endtime="20240407 14:32:45.869"/>
<msg timestamp="20240407 15:27:08.874" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.874"/>
</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="20240407 14:32:45.870" level="DEBUG">Argument types are:
<msg timestamp="20240407 15:27:08.874" level="DEBUG">Argument types are:
&lt;class 'str'&gt;
&lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240407 14:32:45.869" endtime="20240407 14:32:45.870"/>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.874"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${data}==[]</arg>
@ -303,123 +352,355 @@
<kw name="Log" library="BuiltIn">
<arg>未获取到组织信息!</arg>
<doc>Logs the given message with the given level.</doc>
<msg timestamp="20240407 14:32:45.870" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240407 14:32:45.870" endtime="20240407 14:32:45.870"/>
<msg timestamp="20240407 15:27:08.874" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.874"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.870" endtime="20240407 14:32:45.871"/>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.874"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.830" endtime="20240407 14:32:45.871"/>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.874"/>
</iter>
<status status="PASS" starttime="20240407 14:32:45.830" endtime="20240407 14:32:45.871"/>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.874"/>
</for>
<status status="PASS" starttime="20240407 14:32:45.829" endtime="20240407 14:32:45.871"/>
<status status="PASS" starttime="20240407 15:27:08.834" endtime="20240407 15:27:08.874"/>
</kw>
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
<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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==','X-Organization-Id':'96...</var>
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==','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="20240407 14:32:45.872" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 14:32:45.873" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 14:32:45.872" endtime="20240407 14:32:45.873"/>
<msg timestamp="20240407 15:27:08.874" 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 15:27:08.874" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.874"/>
</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="20240407 14:32:45.874" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 14:32:45.922" 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="20240407 14:32:45.922" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
<msg timestamp="20240407 15:27:08.874" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 15:27:08.922" 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="20240407 15:27:08.922" 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/g6O5DXHixyNrf7tmEYvAdJBrPlSF4BRH+Igz89ZXDhdeBs41rIoxXMacBPZSaI+aYn7lK30ECpdcS5Ag==', 'X-Organization-Id': '963432943739605555'}
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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240407 14:32:45.922" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
<msg timestamp="20240407 15:27:08.922" 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': 'Sun, 07 Apr 2024 06:32:48 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":"974358220019732480","realName":null,"nickName":null,"phone":"18548157976","matchmakerFlag":false}}
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 07:27:11 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":"972842927204208640","realName":null,"nickName":null,"phone":"18898674523","matchmakerFlag":true}}
</msg>
<msg timestamp="20240407 14:32:45.922" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 14:32:45.873" endtime="20240407 14:32:45.922"/>
<msg timestamp="20240407 15:27:08.922" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.922"/>
</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="20240407 14:32:45.922" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 14:32:45.922" endtime="20240407 14:32:45.922"/>
<msg timestamp="20240407 15:27:08.922" level="INFO">${phone} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.922"/>
</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="20240407 14:32:45.922" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240407 14:32:45.922" endtime="20240407 14:32:45.922"/>
<msg timestamp="20240407 15:27:08.922" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.922"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.872" endtime="20240407 14:32:45.922"/>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.922"/>
</iter>
<status status="PASS" starttime="20240407 14:32:45.871" endtime="20240407 14:32:45.922"/>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.922"/>
</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="20240407 14:32:45.927" level="INFO">${phone} = 18548157976</msg>
<status status="PASS" starttime="20240407 14:32:45.922" endtime="20240407 14:32:45.927"/>
<msg timestamp="20240407 15:27:08.922" level="INFO">${phone} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.922"/>
</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="20240407 14:32:45.927" level="INFO">${matchmakerFlag} = False</msg>
<status status="PASS" starttime="20240407 14:32:45.927" endtime="20240407 14:32:45.927"/>
<msg timestamp="20240407 15:27:08.922" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.922"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.871" endtime="20240407 14:32:45.928"/>
<status status="PASS" starttime="20240407 15:27:08.874" endtime="20240407 15:27:08.922"/>
</kw>
<kw name="Then 写入数据到txt文件" library="LoginResource">
<kw name="Set Variable" library="BuiltIn">
<var>${file_path}</var>
<arg>${EXECDIR}\\Phone.txt</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240407 14:32:45.929" level="INFO">${file_path} = D:\LYL\Study\Robot_framework\space\Dating-agency\Phone.txt</msg>
<status status="PASS" starttime="20240407 14:32:45.928" endtime="20240407 14:32:45.929"/>
<status status="PASS" starttime="20240407 15:27:08.737" endtime="20240407 15:27:08.922"/>
</test>
<test id="s1-s1-s1-t2" name="用户扫描红娘二维码注册登录" line="49">
<kw name="Given 扫描婚介红娘二维码" library="LoginResource" sourcename="扫描${dating}红娘二维码">
<for flavor="IN">
<var>${client_header}</var>
<value>@{Cheader_list}</value>
<iter>
<var name="${client_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA=='}</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="20240407 15:27:08.922" 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 15:27:08.922" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.922"/>
</kw>
<kw name="Append To File" library="OperatingSystem">
<arg>${file_path}</arg>
<arg>${phone},888888\n</arg>
<doc>Appends the given content to the specified file.</doc>
<msg timestamp="20240407 14:32:45.931" level="INFO" html="true">Appended to file '&lt;a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\Phone.txt"&gt;D:\LYL\Study\Robot_framework\space\Dating-agency\Phone.txt&lt;/a&gt;'.</msg>
<status status="PASS" starttime="20240407 14:32:45.929" endtime="20240407 14:32:45.931"/>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-uec/user/verify/qrcode</arg>
<arg>params=&amp;qrCodeRecordId=972626840957095936</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240407 15:27:08.937" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972626840957095936 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 15:27:08.963" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972626840957095936
path_url=/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972626840957095936
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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA=='}
body=None
</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">MacCyrillic Russian confidence = 0.14221661547437375</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">IBM866 Russian confidence = 0.09751996489671343</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">IBM855 Russian confidence = 0.1706599385692485</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4085339397462577</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240407 15:27:08.963" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972626840957095936
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 07:27:11 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":200100,"message":"二维码已失效","data":null}
</msg>
<msg timestamp="20240407 15:27:08.963" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.963"/>
</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="20240407 15:27:08.963" level="INFO">${code} = 200100</msg>
<status status="PASS" starttime="20240407 15:27:08.963" endtime="20240407 15:27:08.963"/>
</kw>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.963"/>
</iter>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.963"/>
</for>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:08.963"/>
</kw>
<kw name="Then 获取婚介平台用户baseinfo并判断是否是红娘" library="LoginResource" sourcename="获取${dating}平台用户baseinfo并判断是否是红娘">
<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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==','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="20240407 15:27:08.979" 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 15:27:08.979" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 15:27:08.979" endtime="20240407 15:27:08.979"/>
</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="20240407 15:27:08.979" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 15:27:09.011" 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="20240407 15:27:09.011" 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240407 15:27:09.011" 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': 'Sun, 07 Apr 2024 07:27:11 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":"972842927204208640","realName":null,"nickName":null,"phone":"18898674523","matchmakerFlag":true}}
</msg>
<msg timestamp="20240407 15:27:09.011" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 15:27:08.979" endtime="20240407 15:27:09.011"/>
</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="20240407 15:27:09.011" level="INFO">${phone} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:09.011" endtime="20240407 15:27:09.011"/>
</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="20240407 15:27:09.026" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240407 15:27:09.011" endtime="20240407 15:27:09.026"/>
</kw>
<kw name="Run Keyword If" library="BuiltIn">
<arg>${matchmakerFlag}==False</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="LoginResource" 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==','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="20240407 15:27:09.026" 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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240407 15:27:09.026" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240407 15:27:09.026" endtime="20240407 15:27:09.026"/>
</kw>
<kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var>
<arg>dating</arg>
<arg>dating-agency-uec/user/page/matchmaker</arg>
<arg>params=pageSize=10&amp;pageNum=1</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240407 15:27:09.026" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240407 15:27:09.058" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/page/matchmaker?pageSize=10&amp;pageNum=1 HTTP/1.1" 200 None</msg>
<msg timestamp="20240407 15:27:09.058" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/page/matchmaker?pageSize=10&amp;pageNum=1
path_url=/dating-agency-uec/user/page/matchmaker?pageSize=10&amp;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/g6O5DXHixyNrf7tuNSa1jx0f7NRTCYQgGKmyI3NEDcks/jPmoYYd1HbLjvq8wuo1SNGgKiFS1rXh4yJA==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240407 15:27:09.058" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/page/matchmaker?pageSize=10&amp;pageNum=1
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Sun, 07 Apr 2024 07:27:11 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":[{"matchmakerId":"972842928282144768","userId":"972842927204208640","realName":null,"nickName":null,"phone":"18898674523","createTime":"2024-04-03 10:11:34"},{"matchmakerId":"972626918333616128","userId":"968624964985032704","realName":"qianniao","nickName":null,"phone":"19128859944","createTime":"2024-04-02 19:53:13"},{"matchmakerId":"972508812072325120","userId":"968563840231018496","realName":"LB","nickName":null,"phone":"18565126880","createTime":"2024-04-02 12:03:55"}],"total":3,"size":10,"current":1,"pages":1}}
</msg>
<msg timestamp="20240407 15:27:09.058" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240407 15:27:09.026" endtime="20240407 15:27:09.058"/>
</kw>
<kw name="Get From Dictionary" library="Collections">
<var>${matchmaker_list}</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="20240407 15:27:09.058" level="INFO">${matchmaker_list} = [{'matchmakerId': '972842928282144768', 'userId': '972842927204208640', 'realName': None, 'nickName': None, 'phone': '18898674523', 'createTime': '2024-04-03 10:11:34'}, {'matchmakerId': '972626918333...</msg>
<status status="PASS" starttime="20240407 15:27:09.058" endtime="20240407 15:27:09.058"/>
</kw>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmaker_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240407 15:27:09.058" level="INFO">${matchmaker_list} = [{'matchmakerId': '972842928282144768', 'userId': '972842927204208640', 'realName': None, 'nickName': None, 'phone': '18898674523', 'createTime': '2024-04-03 10:11:34'}, {'matchmakerId': '972626918333...</msg>
<status status="PASS" starttime="20240407 15:27:09.058" endtime="20240407 15:27:09.058"/>
</kw>
<kw name="红娘列表" library="LoginResource">
<for flavor="IN">
<var>${matchmaker}</var>
<value>@{matchmaker_list}</value>
<iter>
<var name="${matchmaker}">{'matchmakerId': '972842928282144768', 'userId': '972842927204208640', 'realName': None, 'nickName': None, 'phone': '18898674523', 'createTime': '2024-04-03 10:11:34'}</var>
<kw name="Get From Dictionary" library="Collections">
<var>${PhoneNum}</var>
<arg>${matchmaker}</arg>
<arg>phone</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240407 15:27:09.058" level="INFO">${PhoneNum} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:09.058" endtime="20240407 15:27:09.058"/>
</kw>
<kw name="Exit For Loop If" library="BuiltIn">
<arg>${PhoneNum}==${phone}</arg>
<doc>Stops executing the enclosing FOR loop if the ``condition`` is true.</doc>
<msg timestamp="20240407 15:27:09.058" level="INFO">Exiting for loop altogether.</msg>
<status status="PASS" starttime="20240407 15:27:09.058" endtime="20240407 15:27:09.058"/>
</kw>
<status status="PASS" starttime="20240407 15:27:09.058" endtime="20240407 15:27:09.058"/>
</iter>
<status status="PASS" starttime="20240407 15:27:09.058" endtime="20240407 15:27:09.073"/>
</for>
<kw name="Set Global Variable" library="BuiltIn">
<arg>${PhoneNum}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240407 15:27:09.073" level="INFO">${PhoneNum} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:09.073" endtime="20240407 15:27:09.073"/>
</kw>
<status status="PASS" starttime="20240407 15:27:09.058" endtime="20240407 15:27:09.073"/>
</kw>
<status status="PASS" starttime="20240407 15:27:09.026" endtime="20240407 15:27:09.073"/>
</iter>
<status status="PASS" starttime="20240407 15:27:09.026" endtime="20240407 15:27:09.073"/>
</for>
<status status="PASS" starttime="20240407 15:27:09.026" endtime="20240407 15:27:09.073"/>
</kw>
<status status="PASS" starttime="20240407 15:27:09.026" endtime="20240407 15:27:09.073"/>
</kw>
<status status="PASS" starttime="20240407 15:27:08.979" endtime="20240407 15:27:09.073"/>
</iter>
<status status="PASS" starttime="20240407 15:27:08.979" endtime="20240407 15:27:09.073"/>
</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="20240407 15:27:09.073" level="INFO">${phone} = 18898674523</msg>
<status status="PASS" starttime="20240407 15:27:09.073" endtime="20240407 15:27:09.073"/>
</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="20240407 15:27:09.073" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240407 15:27:09.073" endtime="20240407 15:27:09.073"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.928" endtime="20240407 14:32:45.931"/>
<status status="PASS" starttime="20240407 15:27:08.963" endtime="20240407 15:27:09.073"/>
</kw>
<status status="PASS" starttime="20240407 14:32:45.707" endtime="20240407 14:32:45.931"/>
<status status="PASS" starttime="20240407 15:27:08.922" endtime="20240407 15:27:09.073"/>
</test>
<doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240407 14:32:45.405" endtime="20240407 14:32:45.932"/>
<status status="PASS" starttime="20240407 15:27:08.437" endtime="20240407 15:27:09.073"/>
</suite>
<doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240407 14:32:45.405" endtime="20240407 14:32:45.933"/>
<status status="PASS" starttime="20240407 15:27:08.437" endtime="20240407 15:27:09.073"/>
</suite>
<status status="PASS" starttime="20240407 14:32:45.387" endtime="20240407 14:32:45.934"/>
<status status="PASS" starttime="20240407 15:27:08.421" endtime="20240407 15:27:09.073"/>
</suite>
<statistics>
<total>
<stat pass="1" fail="0" skip="0">All Tests</stat>
<stat pass="2" fail="0" skip="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="1" 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="2" fail="0" skip="0" id="s1" name="Dating-agency">Dating-agency</stat>
<stat pass="2" fail="0" skip="0" id="s1-s1" name="0-Login">Dating-agency.0-Login</stat>
<stat pass="2" fail="0" skip="0" id="s1-s1-s1" name="Login-interface">Dating-agency.0-Login.Login-interface</stat>
</suite>
</statistics>
<errors>

10
output/report.html

@ -1629,22 +1629,22 @@ storage = function () {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,547],[[4,5,6,7,[],[1,18,528],[[8,9,10,11,[],[1,18,527],[],[[12,0,0,[],[1,320,224],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,0,0]];
window.output["suite"] = [1,2,3,0,[],[1,0,652],[[4,5,6,7,[],[1,16,636],[[8,9,10,11,[],[1,16,636],[],[[12,0,0,[],[1,316,185],[]],[13,0,0,[],[1,501,151],[]]],[],[2,2,0,0]]],[],[],[2,2,0,0]]],[],[],[2,2,0,0]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*Dating-agency","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency","*..","*0-Login","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login","*../0-Login","*<p>用户登录婚介平台\x3c/p>","*Login-interface","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\Login-interface.robot","*../0-Login/Login-interface.robot","*<p>接口:短信验证码登录认证\x3c/p>","*手机号验证码登录-888888,phone"]);
window.output["strings"] = window.output["strings"].concat(["*","*Dating-agency","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency","*..","*0-Login","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login","*../0-Login","*<p>用户登录婚介平台\x3c/p>","*Login-interface","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\Login-interface.robot","*../0-Login/Login-interface.robot","*<p>接口:短信验证码登录认证\x3c/p>","*手机号验证码登录-888888","*用户扫描红娘二维码注册登录"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:00","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:01","fail":0,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1","label":"Dating-agency.0-Login","name":"0-Login","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1-s1","label":"Dating-agency.0-Login.Login-interface","name":"Login-interface","pass":1,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:00","fail":0,"label":"All Tests","pass":2,"skip":0}],[],[{"elapsed":"00:00:01","fail":0,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":2,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1","label":"Dating-agency.0-Login","name":"0-Login","pass":2,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s1-s1","label":"Dating-agency.0-Login.Login-interface","name":"Login-interface","pass":2,"skip":0}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1712471565387;
window.output["baseMillis"] = 1712474828421;
</script>
<script type="text/javascript">
window.output["generated"] = 563;
window.output["generated"] = 668;
</script>
<script type="text/javascript">
window.output["expand_keywords"] = null;

Loading…
Cancel
Save