Browse Source

注册红娘

master
LG_lai 2 years ago
parent
commit
5fd9e6b7c9
6 changed files with 396 additions and 184 deletions
  1. 33
      0-Login/Login-interface.robot
  2. 55
      0-Login/LoginResource.robot
  3. BIN
      matchmaker.png
  4. 10
      output/log.html
  5. 472
      output/output.xml
  6. 10
      output/report.html

33
0-Login/Login-interface.robot

@ -4,6 +4,10 @@ Suite Setup Import Variables ${EXECDIR}\\DA_data.yaml
Resource LoginResource.robot Resource LoginResource.robot
Library String Library String
Library Collections Library Collections
Library OperatingSystem
Library ImageHorizonLibrary
*** Variables ***
*** Test Cases *** *** Test Cases ***
游客使用婚介平台 游客使用婚介平台
@ -41,7 +45,15 @@ Library Collections
删除已浏览数据次数 删除已浏览数据次数
用户扫描红娘二维码注册登录
Given 读取TXT文件
And 用户手机号验证码登录婚介平台-888888
And 查询用户的婚介组织
When 扫描婚介红娘二维码
Then 获取婚介平台用户baseinfo并判断是否是红娘
000 000
[Template]
#Given 创建一个列表 #Given 创建一个列表
#Then 同时执行多个参数的FOR循环 #Then 同时执行多个参数的FOR循环
#${NUM} Generate Random String 18 [NUMBERS] #随机生成18位的数字 #${NUM} Generate Random String 18 [NUMBERS] #随机生成18位的数字
@ -89,14 +101,19 @@ Library Collections
#${dict} Set Variable {"value":-1,"desc":"不限"} #${dict} Set Variable {"value":-1,"desc":"不限"}
#Insert Into List ${dictData} 0 [{"value":-1,"desc":"不限"}] #Insert Into List ${dictData} 0 [{"value":-1,"desc":"不限"}]
#设置一个参数范围 #设置一个参数范围
${age} Evaluate 40
${age_range} Evaluate list(range(${age}-9,${age}+10,1))
log ${age_range}
${Age} Evaluate [35,38,40,50]
FOR ${i} IN @{Age}
Run Keyword If ${i} in ${age_range} log 在范围内
... ELSE log 不在范围内
END
#${age} Evaluate 40
#${age_range} Evaluate list(range(${age}-9,${age}+10,1))
#log ${age_range}
#${Age} Evaluate [35,38,40,50]
#FOR ${i} IN @{Age}
#Run Keyword If ${i} in ${age_range} log 在范围内
#...
# ELSE log 不在范围内
#END
#解析二维码图片
${filepath} Evaluate open(r'./matchmaker.png')
Set Reference Folder ${EXECDIR}
#${img} Copy From The Above Of ${filepath} 20
数据库删除用户 数据库删除用户
Given 读取TXT文件 Given 读取TXT文件

55
0-Login/LoginResource.robot

@ -6,6 +6,7 @@ Library Collections
Library RequestsLibrary Library RequestsLibrary
Library DatabaseLibrary Library DatabaseLibrary
Library OperatingSystem Library OperatingSystem
Library ImageHorizonLibrary
*** Keywords *** *** Keywords ***
读取TXT文件 读取TXT文件
@ -195,6 +196,53 @@ Library OperatingSystem
Set Global Variable ${phone} Set Global Variable ${phone}
Set Global Variable ${matchmakerFlag} Set Global Variable ${matchmakerFlag}
扫描${dating}红娘二维码
#解析二维码图片
#${filepath} Evaluate open('./matchmaker.png','rb')
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
${reps} GET On Session dating dating-agency-uec/user/verify/qrcode params=&qrCodeRecordId=972625695282958336
${code} Get From Dictionary ${reps.json()} code
END
获取${dating}平台用户baseinfo并判断是否是红娘
#获取baseinfo
FOR ${admin_header} IN @{Aheader_list}
Create Session dating ${${dating}.dating域名} ${admin_header}
${reps} GET On Session dating dating-agency-uec/user/get/base-info
${phone} Get From Dictionary ${reps.json()['data']} phone #登录用户手机号
${matchmakerFlag} Get From Dictionary ${reps.json()['data']} matchmakerFlag #登录用户是否是红娘
Run Keyword If ${matchmakerFlag}==False 注册婚介红娘
... ELSE 查询婚介平台红娘列表
END
Set Global Variable ${phone}
Set Global Variable ${matchmakerFlag}
注册${dating}红娘
#注册成为红娘
FOR ${client_header} IN @{Cheader_list}
Create Session dating ${${dating}.dating域名} ${client_header}
${reps} POST On Session dating dating-agency-uec/user/create/matchmaker
${matchmakerId} Get From Dictionary ${reps.json()} data
${message} Get From Dictionary ${reps.json()} message
Should Be Equal As Strings ${message} successful
END
查询${dating}平台红娘列表
FOR ${admin_header} IN @{Aheader_list}
Create Session dating ${${dating}.dating域名} ${admin_header}
${reps} GET On Session dating dating-agency-uec/user/page/matchmaker params=pageSize=10&pageNum=1
${matchmaker_list} Get From Dictionary ${reps.json()['data']} records #红娘列表
Set Global Variable ${matchmaker_list}
红娘列表
END
红娘列表
FOR ${matchmaker} IN @{matchmaker_list}
${Phone} Get From Dictionary ${matchmaker} phone
Exit For Loop If ${Phone}==19128859944
END
数据库删除用户数据 数据库删除用户数据
FOR ${userId} IN @{userid_list} FOR ${userId} IN @{userid_list}
Connect To Database Using Custom Params pymysql database='dating_agency_uec',user='root',password='qniaothreetwoonego',host='8.135.8.221' Connect To Database Using Custom Params pymysql database='dating_agency_uec',user='root',password='qniaothreetwoonego',host='8.135.8.221'
@ -221,3 +269,10 @@ FOR循环
FOR ${i} IN @{L1} FOR ${i} IN @{L1}
${output} Set Variable {'item':${data}} ${output} Set Variable {'item':${data}}
END END
通用组件 等待图形
[Arguments] ${图片名称} ${图片所在文件夹} ${等待时间}=${默认等待时间} ${鼠标是否挪开}=是
Set Reference Folder ${图片所在文件夹}
Run Keyword If '${鼠标是否挪开}'=='是' Mouse Move 0 500
Display Img ${图片所在文件夹}/${图片名称}
wait for ${图片名称} ${等待时间}

BIN
matchmaker.png

Before After
Width: 400  |  Height: 400  |  Size: 12 KiB

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

472
output/output.xml

@ -1,37 +1,37 @@
<?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="20240402 15:22:26.632" rpa="false" schemaversion="4">
<robot generator="Robot 6.1.1 (Python 3.6.6 on win32)" generated="20240402 19:48:58.688" 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" 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"> <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"> <kw name="Import Variables" library="BuiltIn" type="SETUP">
<arg>${EXECDIR}\\DA_data.yaml</arg> <arg>${EXECDIR}\\DA_data.yaml</arg>
<doc>Imports a variable file with the given path and optional arguments.</doc> <doc>Imports a variable file with the given path and optional arguments.</doc>
<status status="PASS" starttime="20240402 15:22:26.773" endtime="20240402 15:22:26.773"/>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</kw> </kw>
<test id="s1-s1-s1-t1" name="手机号验证码登录-888888" line="22">
<test id="s1-s1-s1-t1" name="用户扫描红娘二维码注册登录" line="48">
<kw name="Given 读取TXT文件" library="LoginResource"> <kw name="Given 读取TXT文件" library="LoginResource">
<kw name="Get File" library="OperatingSystem"> <kw name="Get File" library="OperatingSystem">
<var>${file}</var> <var>${file}</var>
<arg>D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt</arg> <arg>D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt</arg>
<doc>Returns the contents of a specified file.</doc> <doc>Returns the contents of a specified file.</doc>
<msg timestamp="20240402 15:22:26.773" 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="20240402 15:22:26.773" level="INFO">${file} = 手机号
<msg timestamp="20240402 19:48:58.972" 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="20240402 19:48:58.972" level="INFO">${file} = 手机号
19128859944</msg> 19128859944</msg>
<status status="PASS" starttime="20240402 15:22:26.773" endtime="20240402 15:22:26.773"/>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</kw> </kw>
<kw name="Set Variable" library="BuiltIn"> <kw name="Set Variable" library="BuiltIn">
<var>${skip-line}</var> <var>${skip-line}</var>
<arg>1</arg> <arg>1</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc> <doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240402 15:22:26.773" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240402 15:22:26.773" endtime="20240402 15:22:26.789"/>
<msg timestamp="20240402 19:48:58.972" level="INFO">${skip-line} = 1</msg>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</kw> </kw>
<kw name="Set Variable" library="BuiltIn"> <kw name="Set Variable" library="BuiltIn">
<var>${lines}</var> <var>${lines}</var>
<arg>-1</arg> <arg>-1</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc> <doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240402 15:22:26.790" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240402 15:22:26.789" endtime="20240402 15:22:26.790"/>
<msg timestamp="20240402 19:48:58.972" level="INFO">${lines} = -1</msg>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</kw> </kw>
<kw name="Get Lines Containing String" library="String"> <kw name="Get Lines Containing String" library="String">
<var>${content}</var> <var>${content}</var>
@ -39,9 +39,9 @@
<arg>${skip-line}</arg> <arg>${skip-line}</arg>
<arg>${lines}</arg> <arg>${lines}</arg>
<doc>Returns lines of the given ``string`` that contain the ``pattern``.</doc> <doc>Returns lines of the given ``string`` that contain the ``pattern``.</doc>
<msg timestamp="20240402 15:22:26.790" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240402 15:22:26.790" level="INFO">${content} = 19128859944</msg>
<status status="PASS" starttime="20240402 15:22:26.790" endtime="20240402 15:22:26.790"/>
<msg timestamp="20240402 19:48:58.972" level="INFO">1 out of 2 lines matched</msg>
<msg timestamp="20240402 19:48:58.972" level="INFO">${content} = 19128859944</msg>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</kw> </kw>
<for flavor="IN"> <for flavor="IN">
<var>${id}</var> <var>${id}</var>
@ -53,39 +53,39 @@
<arg>${id}</arg> <arg>${id}</arg>
<arg>\n</arg> <arg>\n</arg>
<doc>Splits the ``string`` using ``separator`` as a delimiter string.</doc> <doc>Splits the ``string`` using ``separator`` as a delimiter string.</doc>
<msg timestamp="20240402 15:22:26.790" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240402 15:22:26.790" endtime="20240402 15:22:26.790"/>
<msg timestamp="20240402 19:48:58.972" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.790" endtime="20240402 15:22:26.790"/>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</iter> </iter>
<status status="PASS" starttime="20240402 15:22:26.790" endtime="20240402 15:22:26.790"/>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.972"/>
</for> </for>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${id}</arg> <arg>${id}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:26.792" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240402 15:22:26.790" endtime="20240402 15:22:26.792"/>
<msg timestamp="20240402 19:48:58.982" level="INFO">${id} = ['19128859944']</msg>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.982"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.773" endtime="20240402 15:22:26.792"/>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:58.982"/>
</kw> </kw>
<kw name="And 用户手机号验证码登录婚介平台-888888" library="LoginResource" sourcename="用户手机号验证码登录${dating}平台-888888"> <kw name="And 用户手机号验证码登录婚介平台-888888" library="LoginResource" sourcename="用户手机号验证码登录${dating}平台-888888">
<kw name="Create List" library="BuiltIn"> <kw name="Create List" library="BuiltIn">
<var>${userid_list}</var> <var>${userid_list}</var>
<doc>Returns a list containing given items.</doc> <doc>Returns a list containing given items.</doc>
<msg timestamp="20240402 15:22:26.793" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240402 15:22:26.793" endtime="20240402 15:22:26.793"/>
<msg timestamp="20240402 19:48:58.983" level="INFO">${userid_list} = []</msg>
<status status="PASS" starttime="20240402 19:48:58.983" endtime="20240402 19:48:58.983"/>
</kw> </kw>
<kw name="Create List" library="BuiltIn"> <kw name="Create List" library="BuiltIn">
<var>${Cheader_list}</var> <var>${Cheader_list}</var>
<doc>Returns a list containing given items.</doc> <doc>Returns a list containing given items.</doc>
<msg timestamp="20240402 15:22:26.793" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240402 15:22:26.793" endtime="20240402 15:22:26.793"/>
<msg timestamp="20240402 19:48:58.984" level="INFO">${Cheader_list} = []</msg>
<status status="PASS" starttime="20240402 19:48:58.983" endtime="20240402 19:48:58.984"/>
</kw> </kw>
<kw name="Create List" library="BuiltIn"> <kw name="Create List" library="BuiltIn">
<var>${Aheader_list}</var> <var>${Aheader_list}</var>
<doc>Returns a list containing given items.</doc> <doc>Returns a list containing given items.</doc>
<msg timestamp="20240402 15:22:26.794" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240402 15:22:26.793" endtime="20240402 15:22:26.794"/>
<msg timestamp="20240402 19:48:58.984" level="INFO">${Aheader_list} = []</msg>
<status status="PASS" starttime="20240402 19:48:58.984" endtime="20240402 19:48:58.984"/>
</kw> </kw>
<for flavor="IN"> <for flavor="IN">
<var>${account}</var> <var>${account}</var>
@ -94,23 +94,23 @@
<var name="${account}">19128859944</var> <var name="${account}">19128859944</var>
<kw name="Disable Warnings" library="urllib3"> <kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc> <doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240402 15:22:26.794" endtime="20240402 15:22:26.794"/>
<status status="PASS" starttime="20240402 19:48:58.985" endtime="20240402 19:48:58.985"/>
</kw> </kw>
<kw name="Create Session" library="RequestsLibrary"> <kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg> <arg>dating</arg>
<arg>${${dating}.dating域名}</arg> <arg>${${dating}.dating域名}</arg>
<arg>${${dating}.AHeader}</arg> <arg>${${dating}.AHeader}</arg>
<doc>Create Session: create a HTTP session to a server</doc> <doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240402 15:22:26.795" 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="20240402 15:22:26.795" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 15:22:26.794" endtime="20240402 15:22:26.796"/>
<msg timestamp="20240402 19:48:58.986" 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="20240402 19:48:58.986" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 19:48:58.985" endtime="20240402 19:48:58.986"/>
</kw> </kw>
<kw name="Set Variable" library="BuiltIn"> <kw name="Set Variable" library="BuiltIn">
<var>${data}</var> <var>${data}</var>
<arg>{ \ \ "account":"${account}", \ \ "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> <doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240402 15:22:26.796" level="INFO">${data} = { "account":"19128859944", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240402 15:22:26.796" endtime="20240402 15:22:26.796"/>
<msg timestamp="20240402 19:48:58.987" level="INFO">${data} = { "account":"19128859944", "accountType":2, "captcha":888888 }</msg>
<status status="PASS" starttime="20240402 19:48:58.986" endtime="20240402 19:48:58.987"/>
</kw> </kw>
<kw name="POST On Session" library="RequestsLibrary"> <kw name="POST On Session" library="RequestsLibrary">
<var>${reps}</var> <var>${reps}</var>
@ -118,84 +118,84 @@
<arg>/dating-agency-uec/authorize/by-captcha</arg> <arg>/dating-agency-uec/authorize/by-captcha</arg>
<arg>${data.encode('utf-8')}</arg> <arg>${data.encode('utf-8')}</arg>
<doc>Sends a POST request on a previously created HTTP Session.</doc> <doc>Sends a POST request on a previously created HTTP Session.</doc>
<msg timestamp="20240402 15:22:26.799" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 15:22:26.892" 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="20240402 15:22:26.892" level="INFO">POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
<msg timestamp="20240402 19:48:58.991" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 19:48:59.059" 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="20240402 19:48:59.059" 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 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'} headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Content-Length': '68'}
body=b'{ "account":"19128859944", "accountType":2, "captcha":888888 }' body=b'{ "account":"19128859944", "accountType":2, "captcha":888888 }'
</msg> </msg>
<msg timestamp="20240402 15:22:26.892" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
<msg timestamp="20240402 19:48:59.059" level="INFO">POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
status=200, reason= status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 02 Apr 2024 07:22:26 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/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==","userId":"968624964985032704"}}
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 02 Apr 2024 11:48:59 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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==","userId":"972622621160116224"}}
</msg> </msg>
<msg timestamp="20240402 15:22:26.892" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 15:22:26.796" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.059" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 19:48:58.987" endtime="20240402 19:48:59.059"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${code}</var> <var>${code}</var>
<arg>${reps.json()}</arg> <arg>${reps.json()}</arg>
<arg>code</arg> <arg>code</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.059" level="INFO">${code} = 0</msg>
<status status="PASS" starttime="20240402 19:48:59.059" endtime="20240402 19:48:59.059"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${token}</var> <var>${token}</var>
<arg>${reps.json()['data']}</arg> <arg>${reps.json()['data']}</arg>
<arg>token</arg> <arg>token</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.059" level="INFO">${token} = iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==</msg>
<status status="PASS" starttime="20240402 19:48:59.059" endtime="20240402 19:48:59.059"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${userId}</var> <var>${userId}</var>
<arg>${reps.json()['data']}</arg> <arg>${reps.json()['data']}</arg>
<arg>userId</arg> <arg>userId</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${userId} = 968624964985032704</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.059" level="INFO">${userId} = 972622621160116224</msg>
<status status="PASS" starttime="20240402 19:48:59.059" endtime="20240402 19:48:59.059"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${message}</var> <var>${message}</var>
<arg>${reps.json()}</arg> <arg>${reps.json()}</arg>
<arg>message</arg> <arg>message</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240402 19:48:59.059" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Variable" library="BuiltIn"> <kw name="Set Variable" library="BuiltIn">
<var>${login_header}</var> <var>${login_header}</var>
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT ${token}','X-Organization-Id':'963432943739605555'}</arg> <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> <doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Variable" library="BuiltIn"> <kw name="Set Variable" library="BuiltIn">
<var>${client_header}</var> <var>${client_header}</var>
<arg>{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'}</arg> <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> <doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ=='}</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw=='}</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Append To List" library="Collections"> <kw name="Append To List" library="Collections">
<arg>${userid_list}</arg> <arg>${userid_list}</arg>
<arg>${userId}</arg> <arg>${userId}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc> <doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Append To List" library="Collections"> <kw name="Append To List" library="Collections">
<arg>${Cheader_list}</arg> <arg>${Cheader_list}</arg>
<arg>${client_header}</arg> <arg>${client_header}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc> <doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Append To List" library="Collections"> <kw name="Append To List" library="Collections">
<arg>${Aheader_list}</arg> <arg>${Aheader_list}</arg>
<arg>${login_header}</arg> <arg>${login_header}</arg>
<doc>Adds ``values`` to the end of ``list``.</doc> <doc>Adds ``values`` to the end of ``list``.</doc>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Run Keyword If" library="BuiltIn"> <kw name="Run Keyword If" library="BuiltIn">
<arg>${code}==0</arg> <arg>${code}==0</arg>
@ -211,68 +211,68 @@
<arg>${message}</arg> <arg>${message}</arg>
<arg>successful</arg> <arg>successful</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc> <doc>Fails if objects are unequal after converting them to strings.</doc>
<msg timestamp="20240402 15:22:26.892" level="DEBUG">Argument types are:
<msg timestamp="20240402 19:48:59.075" level="DEBUG">Argument types are:
&lt;class 'str'&gt; &lt;class 'str'&gt;
&lt;class 'str'&gt;</msg> &lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.794" endtime="20240402 15:22:26.892"/>
<status status="PASS" starttime="20240402 19:48:58.984" endtime="20240402 19:48:59.075"/>
</iter> </iter>
<status status="PASS" starttime="20240402 15:22:26.794" endtime="20240402 15:22:26.892"/>
<status status="PASS" starttime="20240402 19:48:58.984" endtime="20240402 19:48:59.075"/>
</for> </for>
<kw name="Set Variable" library="BuiltIn"> <kw name="Set Variable" library="BuiltIn">
<var>${phone}</var> <var>${phone}</var>
<arg>${account}</arg> <arg>${account}</arg>
<doc>Returns the given values which can then be assigned to a variables.</doc> <doc>Returns the given values which can then be assigned to a variables.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${phone}</arg> <arg>${phone}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${userid_list}</arg> <arg>${userid_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${userid_list} = ['968624964985032704']</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${userid_list} = ['972622621160116224']</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${Aheader_list}</arg> <arg>${Aheader_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${Aheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==','X-Organization-Id':'...</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${Cheader_list}</arg> <arg>${Cheader_list}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ=='}"]</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.892"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${Cheader_list} = ["{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw=='}"]</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${login_header}</arg> <arg>${login_header}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:26.892" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240402 15:22:26.892" endtime="20240402 15:22:26.908"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${login_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==','X-Organization-Id':'96...</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${client_header}</arg> <arg>${client_header}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:26.908" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ=='}</msg>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.908"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw=='}</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.792" endtime="20240402 15:22:26.908"/>
<status status="PASS" starttime="20240402 19:48:58.982" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="And 查询用户的婚介组织" library="LoginResource" sourcename="查询用户的${dating}组织"> <kw name="And 查询用户的婚介组织" library="LoginResource" sourcename="查询用户的${dating}组织">
<kw name="Create List" library="BuiltIn"> <kw name="Create List" library="BuiltIn">
<var>${Aheader}</var> <var>${Aheader}</var>
<doc>Returns a list containing given items.</doc> <doc>Returns a list containing given items.</doc>
<msg timestamp="20240402 15:22:26.908" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.908"/>
<msg timestamp="20240402 19:48:59.075" level="INFO">${Aheader} = []</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<for flavor="IN ZIP"> <for flavor="IN ZIP">
<var>${userId}</var> <var>${userId}</var>
@ -280,20 +280,20 @@
<value>${userid_list}</value> <value>${userid_list}</value>
<value>${Aheader_list}</value> <value>${Aheader_list}</value>
<iter> <iter>
<var name="${userId}">968624964985032704</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==','X-Organization-Id':'96...</var>
<var name="${userId}">972622621160116224</var>
<var name="${login_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==','X-Organization-Id':'96...</var>
<kw name="Disable Warnings" library="urllib3"> <kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc> <doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.908"/>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="Create Session" library="RequestsLibrary"> <kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg> <arg>dating</arg>
<arg>${${dating}.dating域名}</arg> <arg>${${dating}.dating域名}</arg>
<arg>${login_header}</arg> <arg>${login_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc> <doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240402 15:22:26.908" 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/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240402 15:22:26.908" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.908"/>
<msg timestamp="20240402 19:48:59.075" 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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240402 19:48:59.075" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.075"/>
</kw> </kw>
<kw name="GET On Session" library="RequestsLibrary"> <kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var> <var>${reps}</var>
@ -301,76 +301,45 @@
<arg>/dating-agency-uec/user/list/own-organization</arg> <arg>/dating-agency-uec/user/list/own-organization</arg>
<arg>params=userId=${userid}</arg> <arg>params=userId=${userid}</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc> <doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240402 15:22:26.908" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 15:22:26.953" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=968624964985032704 HTTP/1.1" 200 None</msg>
<msg timestamp="20240402 15:22:26.954" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968624964985032704
path_url=/dating-agency-uec/user/list/own-organization?userId=968624964985032704
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/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==', 'X-Organization-Id': '963432943739605555'}
<msg timestamp="20240402 19:48:59.075" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 19:48:59.130" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/list/own-organization?userId=972622621160116224 HTTP/1.1" 200 None</msg>
<msg timestamp="20240402 19:48:59.131" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=972622621160116224
path_url=/dating-agency-uec/user/list/own-organization?userId=972622621160116224
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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==', 'X-Organization-Id': '963432943739605555'}
body=None body=None
</msg> </msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.955" level="DEBUG">MacCyrillic Russian confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">IBM866 Russian confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">IBM855 Russian confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">windows-1251 Bulgarian confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">ISO-8859-9 Turkish confidence = 0.2794564987311486</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.956" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.957" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.957" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.957" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.957" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.957" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240402 15:22:26.957" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968624964985032704
<msg timestamp="20240402 19:48:59.131" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=972622621160116224
status=200, reason= status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 02 Apr 2024 07:22:26 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":[{"orgId":"963432943739605555","fullName":"寻找伴侣","shortName":"寻伴"}]}
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 02 Apr 2024 11:48:59 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>
<msg timestamp="20240402 15:22:26.957" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.957"/>
<msg timestamp="20240402 19:48:59.131" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.131"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${data}</var> <var>${data}</var>
<arg>${reps.json()}</arg> <arg>${reps.json()}</arg>
<arg>data</arg> <arg>data</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:26.958" level="INFO">${data} = [{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}]</msg>
<status status="PASS" starttime="20240402 15:22:26.958" endtime="20240402 15:22:26.958"/>
<msg timestamp="20240402 19:48:59.131" level="INFO">${data} = []</msg>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.131"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${message}</var> <var>${message}</var>
<arg>${reps.json()}</arg> <arg>${reps.json()}</arg>
<arg>message</arg> <arg>message</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:26.959" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240402 15:22:26.958" endtime="20240402 15:22:26.959"/>
<msg timestamp="20240402 19:48:59.131" level="INFO">${message} = successful</msg>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.131"/>
</kw> </kw>
<kw name="Should Be Equal As Strings" library="BuiltIn"> <kw name="Should Be Equal As Strings" library="BuiltIn">
<arg>${message}</arg> <arg>${message}</arg>
<arg>successful</arg> <arg>successful</arg>
<doc>Fails if objects are unequal after converting them to strings.</doc> <doc>Fails if objects are unequal after converting them to strings.</doc>
<msg timestamp="20240402 15:22:26.959" level="DEBUG">Argument types are:
<msg timestamp="20240402 19:48:59.131" level="DEBUG">Argument types are:
&lt;class 'str'&gt; &lt;class 'str'&gt;
&lt;class 'str'&gt;</msg> &lt;class 'str'&gt;</msg>
<status status="PASS" starttime="20240402 15:22:26.959" endtime="20240402 15:22:26.960"/>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.131"/>
</kw> </kw>
<kw name="Run Keyword If" library="BuiltIn"> <kw name="Run Keyword If" library="BuiltIn">
<arg>${data}==[]</arg> <arg>${data}==[]</arg>
@ -381,97 +350,268 @@
<arg>${data}</arg> <arg>${data}</arg>
<doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc> <doc>Runs the given keyword with the given arguments, if ``condition`` is true.</doc>
<kw name="Log" library="BuiltIn"> <kw name="Log" library="BuiltIn">
<arg>${data}</arg>
<arg>未获取到组织信息!</arg>
<doc>Logs the given message with the given level.</doc> <doc>Logs the given message with the given level.</doc>
<msg timestamp="20240402 15:22:26.960" level="INFO">[{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}]</msg>
<status status="PASS" starttime="20240402 15:22:26.960" endtime="20240402 15:22:26.960"/>
<msg timestamp="20240402 19:48:59.131" level="INFO">未获取到组织信息!</msg>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.131"/>
</kw>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.131"/>
</kw>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.131"/>
</iter>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.131"/>
</for>
<status status="PASS" starttime="20240402 19:48:59.075" endtime="20240402 19:48:59.131"/>
</kw>
<kw name="When 扫描婚介红娘二维码" 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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw=='}</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="20240402 19:48:59.131" 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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240402 19:48:59.131" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.131"/>
</kw>
<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=972625695282958336</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240402 19:48:59.131" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 19:48:59.163" level="DEBUG">http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972625695282958336 HTTP/1.1" 200 None</msg>
<msg timestamp="20240402 19:48:59.163" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972625695282958336
path_url=/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972625695282958336
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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw=='}
body=None
</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">windows-1251 Russian confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">KOI8-R Russian confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">ISO-8859-5 Russian confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">MacCyrillic Russian confidence = 0.14221661547437375</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">IBM866 Russian confidence = 0.09751996489671343</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">IBM855 Russian confidence = 0.1706599385692485</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">ISO-8859-7 Greek confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">windows-1253 Greek confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">ISO-8859-5 Bulgairan confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">windows-1251 Bulgarian confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">TIS-620 Thai confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">ISO-8859-9 Turkish confidence = 0.4085339397462577</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">windows-1255 Hebrew confidence = 0.0</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">utf-8 confidence = 0.99</msg>
<msg timestamp="20240402 19:48:59.179" level="DEBUG">SHIFT_JIS Japanese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.182" level="DEBUG">EUC-JP Japanese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.182" level="DEBUG">GB2312 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.182" level="DEBUG">EUC-KR Korean confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.182" level="DEBUG">CP949 Korean confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.182" level="DEBUG">Big5 Chinese confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.182" level="DEBUG">EUC-TW Taiwan confidence = 0.01</msg>
<msg timestamp="20240402 19:48:59.182" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/verify/qrcode?&amp;qrCodeRecordId=972625695282958336
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 02 Apr 2024 11:48:59 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="20240402 19:48:59.182" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.182"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.960" endtime="20240402 15:22:26.960"/>
<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="20240402 19:48:59.183" level="INFO">${code} = 200100</msg>
<status status="PASS" starttime="20240402 19:48:59.183" endtime="20240402 19:48:59.183"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.961"/>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.184"/>
</iter> </iter>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.961"/>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.184"/>
</for> </for>
<status status="PASS" starttime="20240402 15:22:26.908" endtime="20240402 15:22:26.961"/>
<status status="PASS" starttime="20240402 19:48:59.131" endtime="20240402 19:48:59.184"/>
</kw> </kw>
<kw name="And 获取婚介平台用户baseinfo" library="LoginResource" sourcename="获取${dating}平台用户baseinfo">
<kw name="Then 获取婚介平台用户baseinfo并判断是否是红娘" library="LoginResource" sourcename="获取${dating}平台用户baseinfo并判断是否是红娘">
<for flavor="IN"> <for flavor="IN">
<var>${admin_header}</var> <var>${admin_header}</var>
<value>@{Aheader_list}</value> <value>@{Aheader_list}</value>
<iter> <iter>
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==','X-Organization-Id':'96...</var>
<var name="${admin_header}">{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==','X-Organization-Id':'96...</var>
<kw name="Create Session" library="RequestsLibrary"> <kw name="Create Session" library="RequestsLibrary">
<arg>dating</arg> <arg>dating</arg>
<arg>${${dating}.dating域名}</arg> <arg>${${dating}.dating域名}</arg>
<arg>${admin_header}</arg> <arg>${admin_header}</arg>
<doc>Create Session: create a HTTP session to a server</doc> <doc>Create Session: create a HTTP session to a server</doc>
<msg timestamp="20240402 15:22:26.962" 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/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240402 15:22:26.962" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 15:22:26.962" endtime="20240402 15:22:26.963"/>
<msg timestamp="20240402 19:48:59.186" 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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240402 19:48:59.186" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 19:48:59.185" endtime="20240402 19:48:59.186"/>
</kw> </kw>
<kw name="GET On Session" library="RequestsLibrary"> <kw name="GET On Session" library="RequestsLibrary">
<var>${reps}</var> <var>${reps}</var>
<arg>dating</arg> <arg>dating</arg>
<arg>dating-agency-uec/user/get/base-info</arg> <arg>dating-agency-uec/user/get/base-info</arg>
<doc>Sends a GET request on a previously created HTTP Session.</doc> <doc>Sends a GET request on a previously created HTTP Session.</doc>
<msg timestamp="20240402 15:22:26.964" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 15:22:27.012" 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="20240402 15:22:27.012" level="INFO">GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
<msg timestamp="20240402 19:48:59.187" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 19:48:59.219" 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="20240402 19:48:59.219" 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 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/g6O5DXHixyNrf7tqQ21W0jK6ZsWHkMHoAFGk0DGf3hFgQiXGImevINyNkNi8Jlnnvpg5zvz0nMDBK0hQ==', '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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==', 'X-Organization-Id': '963432943739605555'}
body=None body=None
</msg> </msg>
<msg timestamp="20240402 15:22:27.012" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
<msg timestamp="20240402 19:48:59.219" level="INFO">GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
status=200, reason= status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 02 Apr 2024 07:22:27 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":"968624964985032704","realName":"qianniao","nickName":null,"phone":"19128859944","matchmakerFlag":true}}
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 02 Apr 2024 11:48:59 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":"972622621160116224","realName":null,"nickName":null,"phone":"19128859944","matchmakerFlag":true}}
</msg> </msg>
<msg timestamp="20240402 15:22:27.012" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 15:22:26.963" endtime="20240402 15:22:27.012"/>
<msg timestamp="20240402 19:48:59.219" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 19:48:59.186" endtime="20240402 19:48:59.219"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${phone}</var> <var>${phone}</var>
<arg>${reps.json()['data']}</arg> <arg>${reps.json()['data']}</arg>
<arg>phone</arg> <arg>phone</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:27.012" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 15:22:27.012" endtime="20240402 15:22:27.012"/>
<msg timestamp="20240402 19:48:59.219" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 19:48:59.219" endtime="20240402 19:48:59.219"/>
</kw> </kw>
<kw name="Get From Dictionary" library="Collections"> <kw name="Get From Dictionary" library="Collections">
<var>${matchmakerFlag}</var> <var>${matchmakerFlag}</var>
<arg>${reps.json()['data']}</arg> <arg>${reps.json()['data']}</arg>
<arg>matchmakerFlag</arg> <arg>matchmakerFlag</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc> <doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 15:22:27.012" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240402 15:22:27.012" endtime="20240402 15:22:27.012"/>
<msg timestamp="20240402 19:48:59.219" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240402 19:48:59.219" endtime="20240402 19:48:59.219"/>
</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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==','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="20240402 19:48:59.219" 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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<msg timestamp="20240402 19:48:59.235" level="DEBUG">Creating session: dating</msg>
<status status="PASS" starttime="20240402 19:48:59.219" endtime="20240402 19:48:59.235"/>
</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="20240402 19:48:59.235" level="DEBUG">Starting new HTTP connection (1): dating-agency-api-test.qniao.cn</msg>
<msg timestamp="20240402 19:48:59.275" 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="20240402 19:48:59.275" 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/g6O5DXHixyNrf7tl6EnbJGI2BvFc5HbUUMqRe7dudSb9vW583VrnWyjuVR6Oe9pyfHFSHhPD008iQRLw==', 'X-Organization-Id': '963432943739605555'}
body=None
</msg>
<msg timestamp="20240402 19:48:59.275" 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': 'Tue, 02 Apr 2024 11:48:59 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":"972625773980684288","userId":"972622621160116224","realName":null,"nickName":null,"phone":"19128859944","createTime":"2024-04-02 19:48:41"},{"matchmakerId":"972508812072325120","userId":"968563840231018496","realName":"LB","nickName":null,"phone":"18565126880","createTime":"2024-04-02 12:03:55"}],"total":2,"size":10,"current":1,"pages":1}}
</msg>
<msg timestamp="20240402 19:48:59.275" level="INFO">${reps} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20240402 19:48:59.235" endtime="20240402 19:48:59.275"/>
</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="20240402 19:48:59.275" level="INFO">${matchmaker_list} = [{'matchmakerId': '972625773980684288', 'userId': '972622621160116224', 'realName': None, 'nickName': None, 'phone': '19128859944', 'createTime': '2024-04-02 19:48:41'}, {'matchmakerId': '972508812072...</msg>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</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="20240402 19:48:59.275" level="INFO">${matchmaker_list} = [{'matchmakerId': '972625773980684288', 'userId': '972622621160116224', 'realName': None, 'nickName': None, 'phone': '19128859944', 'createTime': '2024-04-02 19:48:41'}, {'matchmakerId': '972508812072...</msg>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</kw>
<kw name="红娘列表" library="LoginResource">
<for flavor="IN">
<var>${matchmaker}</var>
<value>@{matchmaker_list}</value>
<iter>
<var name="${matchmaker}">{'matchmakerId': '972625773980684288', 'userId': '972622621160116224', 'realName': None, 'nickName': None, 'phone': '19128859944', 'createTime': '2024-04-02 19:48:41'}</var>
<kw name="Get From Dictionary" library="Collections">
<var>${Phone}</var>
<arg>${matchmaker}</arg>
<arg>phone</arg>
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
<msg timestamp="20240402 19:48:59.275" level="INFO">${Phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</kw>
<kw name="Exit For Loop If" library="BuiltIn">
<arg>${Phone}==19128859944</arg>
<doc>Stops executing the enclosing FOR loop if the ``condition`` is true.</doc>
<msg timestamp="20240402 19:48:59.275" level="INFO">Exiting for loop altogether.</msg>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</kw>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</iter>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</for>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</kw>
<status status="PASS" starttime="20240402 19:48:59.219" endtime="20240402 19:48:59.275"/>
</iter>
<status status="PASS" starttime="20240402 19:48:59.219" endtime="20240402 19:48:59.275"/>
</for>
<status status="PASS" starttime="20240402 19:48:59.219" endtime="20240402 19:48:59.275"/>
</kw>
<status status="PASS" starttime="20240402 19:48:59.219" endtime="20240402 19:48:59.275"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.962" endtime="20240402 15:22:27.012"/>
<status status="PASS" starttime="20240402 19:48:59.185" endtime="20240402 19:48:59.275"/>
</iter> </iter>
<status status="PASS" starttime="20240402 15:22:26.961" endtime="20240402 15:22:27.012"/>
<status status="PASS" starttime="20240402 19:48:59.185" endtime="20240402 19:48:59.275"/>
</for> </for>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${phone}</arg> <arg>${phone}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:27.012" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 15:22:27.012" endtime="20240402 15:22:27.012"/>
<msg timestamp="20240402 19:48:59.275" level="INFO">${phone} = 19128859944</msg>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</kw> </kw>
<kw name="Set Global Variable" library="BuiltIn"> <kw name="Set Global Variable" library="BuiltIn">
<arg>${matchmakerFlag}</arg> <arg>${matchmakerFlag}</arg>
<doc>Makes a variable available globally in all tests and suites.</doc> <doc>Makes a variable available globally in all tests and suites.</doc>
<msg timestamp="20240402 15:22:27.012" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240402 15:22:27.012" endtime="20240402 15:22:27.012"/>
<msg timestamp="20240402 19:48:59.275" level="INFO">${matchmakerFlag} = True</msg>
<status status="PASS" starttime="20240402 19:48:59.275" endtime="20240402 19:48:59.275"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.961" endtime="20240402 15:22:27.012"/>
<status status="PASS" starttime="20240402 19:48:59.184" endtime="20240402 19:48:59.275"/>
</kw> </kw>
<status status="PASS" starttime="20240402 15:22:26.773" endtime="20240402 15:22:27.012"/>
<status status="PASS" starttime="20240402 19:48:58.972" endtime="20240402 19:48:59.275"/>
</test> </test>
<doc>接口:短信验证码登录认证</doc> <doc>接口:短信验证码登录认证</doc>
<status status="PASS" starttime="20240402 15:22:26.664" endtime="20240402 15:22:27.012"/>
<status status="PASS" starttime="20240402 19:48:58.721" endtime="20240402 19:48:59.275"/>
</suite> </suite>
<doc>用户登录婚介平台</doc> <doc>用户登录婚介平台</doc>
<status status="PASS" starttime="20240402 15:22:26.664" endtime="20240402 15:22:27.012"/>
<status status="PASS" starttime="20240402 19:48:58.721" endtime="20240402 19:48:59.275"/>
</suite> </suite>
<status status="PASS" starttime="20240402 15:22:26.647" endtime="20240402 15:22:27.012"/>
<status status="PASS" starttime="20240402 19:48:58.704" endtime="20240402 19:48:59.275"/>
</suite> </suite>
<statistics> <statistics>
<total> <total>

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,365],[[4,5,6,7,[],[1,17,348],[[8,9,10,11,[],[1,17,348],[],[[12,0,0,[],[1,126,239],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,0,0]];
window.output["suite"] = [1,2,3,0,[],[1,0,571],[[4,5,6,7,[],[1,17,554],[[8,9,10,11,[],[1,17,554],[],[[12,0,0,[],[1,268,303],[]]],[],[1,1,0,0]]],[],[],[1,1,0,0]]],[],[],[1,1,0,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"]);
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>","*用户扫描红娘二维码注册登录"]);
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:00","fail":0,"label":"All Tests","pass":1,"skip":0}],[],[{"elapsed":"00:00:00","fail":0,"id":"s1","label":"Dating-agency","name":"Dating-agency","pass":1,"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}]];
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}]];
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["baseMillis"] = 1712042546647;
window.output["baseMillis"] = 1712058538704;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["generated"] = 380;
window.output["generated"] = 603;
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
window.output["expand_keywords"] = null; window.output["expand_keywords"] = null;

Loading…
Cancel
Save