Browse Source

个人资料填写

master
LG_lai 2 years ago
parent
commit
f449e8a9ec
8 changed files with 104 additions and 890 deletions
  1. 8
      0-Login/Login-interface.robot
  2. 2
      0-Login/phone-test.txt
  3. 3
      1-Applet/1-WriteInfo/Infomation.robot
  4. 3
      1-Applet/2-Homepage/MarriageInfo/Authentication.robot
  5. 7
      UI-Testing/Login.robot
  6. 12
      output/log.html
  7. 949
      output/output.xml
  8. 10
      output/report.html

8
0-Login/Login-interface.robot

@ -40,12 +40,14 @@ Library Collections
#${L1} Create List {'c':3} #${L1} Create List {'c':3}
#${index} Set Variable -1 #${index} Set Variable -1
#FOR ${item} IN @{list} #FOR ${item} IN @{list}
#${intex} Evaluate ${index}+1
#${data} Set Variable ${item}
#Set Global Variable ${data}
#${intex} Evaluate ${index}+1
#${data} Set Variable ${item}
#Set Global Variable ${data}
#FOR循环 #FOR循环
#END #END
#随机生成字符串 #随机生成字符串
${first_name} Set Variable ["王", "李", "张", "刘", "赵", "蒋", "孟", "陈", "徐", "杨", "沈", "马", "高", "殷", "上官", "钟", "常","赖","臧"] ${first_name} Set Variable ["王", "李", "张", "刘", "赵", "蒋", "孟", "陈", "徐", "杨", "沈", "马", "高", "殷", "上官", "钟", "常","赖","臧"]
${nickName} Evaluate random.choice(${first_name}) +chr(random.randint(0x4e00,0x9fbf)) random ${nickName} Evaluate random.choice(${first_name}) +chr(random.randint(0x4e00,0x9fbf)) random
log ${nickName} log ${nickName}
删除已浏览数据次数

2
0-Login/phone-test.txt

@ -1,2 +1,2 @@
手机号 手机号
13000000046
13000000036

3
1-Applet/1-WriteInfo/Infomation.robot

@ -44,3 +44,6 @@ region
Set Global Variable ${districtName} Set Global Variable ${districtName}
Set Global Variable ${provinceCode} Set Global Variable ${provinceCode}
Set Global Variable ${provinceName} Set Global Variable ${provinceName}
获取省市区
region

3
1-Applet/2-Homepage/MarriageInfo/Authentication.robot

@ -102,7 +102,8 @@ Resource ../../1-WriteInfo/InfoResource.robot
END END
提交${dating}征婚人的介绍信息 提交${dating}征婚人的介绍信息
${value} Set Variable 在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上,自觉遵守公司的的,坚持参加公司的每次的培训。要求积极上进,爱护公司的一砖一瓦,一直严谨的态度和积极的热情投身于学习和工作中,虽然有成功的泪水,也有失败的辛酸,然而日益激烈的社会竟争也使我充分地认识到成为一名德智体全面发展的优秀工作者的重要性。 #个人介绍value
${valueData} Create List 记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉记忆是 无花的蔷薇 ,永远不会败落。 ——席慕蓉 春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能春日在静定中悠长,在回首间短暂。 ——徐国能 悲欢离合总无情 ,一任阶前、点滴到天明。悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 悲欢离合总无情 ,一任阶前、点滴到天明。 #个人介绍value
${value} Evaluate random.choice(${valueData}) random
#${value} Set Variable 草泥马 #敏感词个人介绍 #${value} Set Variable 草泥马 #敏感词个人介绍
${authenticationCode} Evaluate 7 ${authenticationCode} Evaluate 7
FOR ${miId} ${client_header} IN ZIP ${miId_list} ${Cheader_list} FOR ${miId} ${client_header} IN ZIP ${miId_list} ${Cheader_list}

7
UI-Testing/Login.robot

@ -3,7 +3,8 @@ Library AppiumLibrary
*** Test Cases *** *** Test Cases ***
LoginTest LoginTest
Open Application http://127.0.0.1:4723/wd/hub platformName=Android deviceName=eafb4fdc
Wait Until Element Is Visible xpath=//android.webkit.WebView 10s
Open Application http://127.0.0.1:4723/wd/hub platformName=Android platformVersion=9 deviceName=emulator-5554
#Wait Until Element Is Visible xpath=//android.webkit.WebView 10s
Click Element xpath=//android.webkit.WebView Click Element xpath=//android.webkit.WebView
Wait Until Element Is Visible xpath=//android.view.View[@text=\"手机号快捷登录\"]
Wait Until Element Is Visible xpath=//android.view.View[@text=\"去认证\"]
Close Application

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

949
output/output.xml

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

10
output/report.html

@ -1629,22 +1629,22 @@ storage = function () {
window.output = {}; window.output = {};
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,1085],[[4,5,6,7,[],[1,30,345],[[8,9,10,11,[],[1,31,343],[],[[12,0,0,[],[1,149,224],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]],[13,14,15,0,[],[1,375,710],[[16,17,18,0,[],[1,377,707],[[19,20,21,22,[],[1,378,705],[[23,24,25,26,[],[1,380,702],[],[[27,0,0,[],[1,476,605],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[2,2,0,0]];
window.output["suite"] = [1,2,3,0,[],[0,0,4635],[[4,5,6,0,[],[0,27,4607],[[7,8,9,0,[],[0,29,4604],[],[[10,0,0,[],[0,210,4423,11],[]]],[],[1,0,1,0]]],[],[],[1,0,1,0]]],[],[],[1,0,1,0]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["strings"] = []; window.output["strings"] = [];
</script> </script>
<script type="text/javascript"> <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","*1-Applet","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\1-Applet","*../1-Applet","*2-Homepage","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\1-Applet\\2-Homepage","*../1-Applet/2-Homepage","*MarriageInfo","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\1-Applet\\2-Homepage\\MarriageInfo","*../1-Applet/2-Homepage/MarriageInfo","*<p>征婚人资料\x3c/p>","*DataAuthentication","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\1-Applet\\2-Homepage\\MarriageInfo\\DataAuthentication.robot","*../1-Applet/2-Homepage/MarriageInfo/DataAuthentication.robot","*<p>资料认证\x3c/p>","*提交征婚人头像审核信息-无审核中"]);
window.output["strings"] = window.output["strings"].concat(["*","*Dating-agency","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency","*..","*UI-Testing","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\UI-Testing","*../UI-Testing","*Login","*D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\UI-Testing\\Login.robot","*../UI-Testing/Login.robot","*LoginTest","*No browser is open."]);
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:01","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:00","fail":0,"id":"s1-s1","label":"Dating-agency.0-Login","name":"0-Login","pass":1,"skip":0},{"elapsed":"00:00:00","fail":0,"id":"s1-s1-s1","label":"Dating-agency.0-Login.Login-interface","name":"Login-interface","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s2","label":"Dating-agency.1-Applet","name":"1-Applet","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s2-s1","label":"Dating-agency.1-Applet.2-Homepage","name":"2-Homepage","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s2-s1-s1","label":"Dating-agency.1-Applet.2-Homepage.MarriageInfo","name":"MarriageInfo","pass":1,"skip":0},{"elapsed":"00:00:01","fail":0,"id":"s1-s2-s1-s1-s1","label":"Dating-agency.1-Applet.2-Homepage.MarriageInfo.DataAuthentication","name":"DataAuthentication","pass":1,"skip":0}]];
window.output["stats"] = [[{"elapsed":"00:00:04","fail":1,"label":"All Tests","pass":0,"skip":0}],[],[{"elapsed":"00:00:05","fail":1,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":0,"skip":0},{"elapsed":"00:00:05","fail":1,"id":"s1-s1","label":"Dating-agency.UI-Testing","name":"UI-Testing","pass":0,"skip":0},{"elapsed":"00:00:05","fail":1,"id":"s1-s1-s1","label":"Dating-agency.UI-Testing.Login","name":"Login","pass":0,"skip":0}]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["baseMillis"] = 1711097385423;
window.output["baseMillis"] = 1711108717580;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["generated"] = 1103;
window.output["generated"] = 4646;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["expand_keywords"] = null; window.output["expand_keywords"] = null;

Loading…
Cancel
Save