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