${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': 'Tue, 25 Jun 2024 03:32:11 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==","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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==
${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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==','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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==','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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
${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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==','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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}"]
${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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==','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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
${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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==','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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', '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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', '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': 'Tue, 25 Jun 2024 03:32:11 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":[{"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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==','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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', '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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', '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': 'Tue, 25 Jun 2024 03:32:11 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"userId":"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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}, 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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.053604724294187035
IBM855 Russian confidence = 0.15700714348370862
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.4181227795554567
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': 'Tue, 25 Jun 2024 03:32:12 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":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/205520361E10C43.png","identityCard":null,"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
${identityCard}
${reps.json()['data']}
identityCard
Returns a value from the given ``dictionary`` based on the given ``key``.
${identityCard} = None
${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
${identityCard}
Makes a variable available globally in all tests and suites.
${identityCard} = None
${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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
${client_header}
${selfMiId}
${Cheader_list}
${miId_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${reps}
dating
dating-agency-service/user/get/my/matchmaker/page
params=pageNum=1&pageSize=10
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/my/matchmaker/page?pageNum=1&pageSize=10 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/my/matchmaker/page?pageNum=1&pageSize=10
path_url=/dating-agency-service/user/get/my/matchmaker/page?pageNum=1&pageSize=10
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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.0063508794343675465
IBM866 Russian confidence = 0.028103260806576002
IBM855 Russian confidence = 0.06510449269401906
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.08839280394933048
ISO-8859-9 Turkish confidence = 0.3223127407666568
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/my/matchmaker/page?pageNum=1&pageSize=10
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 03:32:15 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":[{"id":"83","name":"15121074365","provinceName":"广东省","cityName":"广州市","districtName":"从化市","maxAge":43,"minAge":29,"occupation":"生物/制药~医疗器械生产人员","serviceDay":56,"serviceCount":16,"genderCode":1,"score":4.0,"matchmakerId":"982651594233483264","matchmakerUserId":"977568001438126080","attention":true,"relationType":null,"miId":"977609068816502784"},{"id":"82","name":"四六零五","provinceName":"湖南省","cityName":"不限","districtName":"不限","maxAge":43,"minAge":25,"occupation":null,"serviceDay":7,"serviceCount":4,"genderCode":1,"score":0.0,"matchmakerId":"1000445180794507264","matchmakerUserId":"1000379568164573184","attention":true,"relationType":null,"miId":"1000445181293629440"},{"id":"81","name":"18593852767","provinceName":"湖南省","cityName":"衡阳市","districtName":"石鼓区","maxAge":43,"minAge":18,"occupation":"其他,其他~自由职业,品牌经理","serviceDay":48,"serviceCount":13,"genderCode":1,"score":4.0,"matchmakerId":"985664038262411264","matchmakerUserId":"985621188598435840","attention":true,"relationType":null,"miId":null},{"id":"69","name":"就是不吃饭","provinceName":"广东省","cityName":"广州市","districtName":"黄埔区","maxAge":43,"minAge":26,"occupation":"其他,其他~自由职业,生物/制药~医疗器械生产人员,销售~销售总监","serviceDay":60,"serviceCount":23,"genderCode":0,"score":4.5,"matchmakerId":"981270314208071680","matchmakerUserId":"978668013433786368","attention":true,"relationType":null,"miId":"978668042869411840"}],"total":4,"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} = [{'id': '83', 'name': '15121074365', 'provinceName': '广东省', 'cityName': '广州市', 'districtName': '从化市', 'maxAge': 43, 'minAge': 29, 'occupation': '生物/制药~医疗器械生产人员', 'serviceDay': 56, 'serviceCount': 16, ...
${records}
Makes a variable available globally in all tests and suites.
${records} = [{'id': '83', 'name': '15121074365', 'provinceName': '广东省', 'cityName': '广州市', 'districtName': '从化市', 'maxAge': 43, 'minAge': 29, 'occupation': '生物/制药~医疗器械生产人员', 'serviceDay': 56, 'serviceCount': 16, ...
${matchmakerData}
random.choice(${records})
random
Evaluates the given expression in Python and returns the result.
${matchmakerData} = {'id': '83', 'name': '15121074365', 'provinceName': '广东省', 'cityName': '广州市', 'districtName': '从化市', 'maxAge': 43, 'minAge': 29, 'occupation': '生物/制药~医疗器械生产人员', 'serviceDay': 56, 'serviceCount': 16, '...
${otherMiId}
${matchmakerData}
miId
Returns a value from the given ``dictionary`` based on the given ``key``.
${otherMiId} = 977609068816502784
${otherMiId}
Makes a variable available globally in all tests and suites.
${otherMiId} = 977609068816502784
${identityCard}==None
提交婚介征婚人身份证审核
ELSE
log
用户已实名认证
Runs the given keyword with the given arguments, if ``condition`` is true.
${womanvalue_list}
["赖勇兰,441481199509213863","赖敏怡,441521199410142320","刘景梅,371525198608012364","黄丽馨,441302199511296927","刘惠琼,441827198807146821"]
Returns the given values which can then be assigned to a variables.
${womanvalue_list} = ["赖勇兰,441481199509213863","赖敏怡,441521199410142320","刘景梅,371525198608012364","黄丽馨,441302199511296927","刘惠琼,441827198807146821"]
${manvalue_list}
["张山,522328199807132811","臧琨,654001198103171417","李博,429006198410300956","王颖勋,44058319951227041X","刘文波,430426198402075198","董帅,411425199011117552","江志诚,43042619970207049X","杨仁丰,440923199311122678","陈越,445122199210152055","刘虎跃,43042619891011515X","李雷刚,430426198502033497","邝绍荣,440105198310224217","全拥军,430426197806302591"]
Returns the given values which can then be assigned to a variables.
${manvalue_list} = ["张山,522328199807132811","臧琨,654001198103171417","李博,429006198410300956","王颖勋,44058319951227041X","刘文波,430426198402075198","董帅,411425199011117552","江志诚,43042619970207049X","杨仁丰,440923199311122678","陈越...
${code}
0
Evaluates the given expression in Python and returns the result.
${code} = 0
${miId}
${client_header}
${miId_list}
${Cheader_list}
986636134635409408
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${man_value}
random.choice(${manvalue_list})
random
Evaluates the given expression in Python and returns the result.
${man_value} = 邝绍荣,440105198310224217
${woman_value}
random.choice(${womanvalue_list})
random
Evaluates the given expression in Python and returns the result.
${woman_value} = 黄丽馨,441302199511296927
${data}
${genderCode}==1
{ \ \ \ \ "authenticationCode":"${code}", \ \ \ \ "miId":"${miId}", \ \ \ \ "value":"${woman_value}" }
{ \ \ \ \ "authenticationCode":"${code}", \ \ \ \ "miId":"${miId}", \ \ \ \ "value":"${man_value}" }
Sets variable based on the given condition.
${data} = { "authenticationCode":"0", "miId":"986636134635409408", "value":"黄丽馨,441302199511296927" }
${reps}
dating
dating-agency-service/user/save/certification/audit
${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-service/user/save/certification/audit HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
path_url=/dating-agency-service/user/save/certification/audit
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', 'Content-Length': '109'}
body=b'{ "authenticationCode":"0", "miId":"986636134635409408", "value":"\xe9\xbb\x84\xe4\xb8\xbd\xe9\xa6\xa8,441302199511296927" }'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 03:32:17 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":"1002941433927307264"}
${reps} = <Response [200]>
${data}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${data} = 1002941433927307264
${message}
${reps.json()}
message
Returns a value from the given ``dictionary`` based on the given ``key``.
${message} = successful
${data}!=None
Should Be Equal As Strings
${message}
successful
ELSE
log
${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'>
${data}
Makes a variable available globally in all tests and suites.
${data} = 1002941433927307264
${otherMiId}==None
log
聊天者标识不能为空
ELSE
创建婚介聊天室
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
{"otherMiId":"${otherMiId}","selfMiId":"${selfMiId}"}
Returns the given values which can then be assigned to a variables.
${data} = {"otherMiId":"977609068816502784","selfMiId":"986636134635409408"}
${reps}
dating
dating-agency-cim/user/join/private-chat/room
${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-cim/user/join/private-chat/room HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/join/private-chat/room
path_url=/dating-agency-cim/user/join/private-chat/room
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', 'Content-Length': '66'}
body=b'{"otherMiId":"977609068816502784","selfMiId":"986636134635409408"}'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/join/private-chat/room
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 03:32:17 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":{"roomId":"1001948467494522880"}}
${reps} = <Response [200]>
${roomId}
${reps.json()['data']}
roomId
Returns a value from the given ``dictionary`` based on the given ``key``.
${roomId} = 1001948467494522880
${roomId}
Makes a variable available globally in all tests and suites.
${roomId} = 1001948467494522880
${client_header}
${selfMiId}
${Cheader_list}
${miId_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}, 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=1001948467494522880&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=1001948467494522880&selfMiId=986636134635409408
path_url=/dating-agency-cim/user/get/chat-right-consume?roomId=1001948467494522880&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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
body=None
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/get/chat-right-consume?roomId=1001948467494522880&selfMiId=986636134635409408
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 03:32:17 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":false}}
${reps} = <Response [200]>
${chatRight}
${reps.json()['data']}
chatRight
Returns a value from the given ``dictionary`` based on the given ``key``.
${chatRight} = False
${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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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': 'Tue, 25 Jun 2024 03:32:18 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":0,"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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
{"roomId":"${roomId}","selfMiId":"${selfMiId}"}
Returns the given values which can then be assigned to a variables.
${data} = {"roomId":"1001948467494522880","selfMiId":"986636134635409408"}
${reps}
dating
dating-agency-cim/user/consume/chat-right
${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-cim/user/consume/chat-right HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/consume/chat-right
path_url=/dating-agency-cim/user/consume/chat-right
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', 'Content-Length': '64'}
body=b'{"roomId":"1001948467494522880","selfMiId":"986636134635409408"}'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/consume/chat-right
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 25 Jun 2024 03:32:18 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]>
${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'>
${client_header}
${selfmiId}
${Cheader_list}
${miId_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}, 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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw=='}
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': 'Tue, 25 Jun 2024 03:32:18 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': '独门独户不独居,相亲相敬常相知。'}
${commonContent}
${CommonData}
commonContent
Returns a value from the given ``dictionary`` based on the given ``key``.
${commonContent} = 独门独户不独居,相亲相敬常相知。
${data}
{"selfMiId":"${selfmiId}","content":"${commonContent}","roomId":"${roomId}"}
Returns the given values which can then be assigned to a variables.
${data} = {"selfMiId":"986636134635409408","content":"独门独户不独居,相亲相敬常相知。","roomId":"1001948467494522880"}
${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/g6O5DXHixyNrf7tr3eQtrvwg2p35xl6PEP5oWK1gQVtproFDiUgWLoQfkHL4SYe1w7V+VtyfQ6e/8BCw==', 'Content-Length': '125'}
body=b'{"selfMiId":"986636134635409408","content":"\xe7\x8b\xac\xe9\x97\xa8\xe7\x8b\xac\xe6\x88\xb7\xe4\xb8\x8d\xe7\x8b\xac\xe5\xb1\x85\xef\xbc\x8c\xe7\x9b\xb8\xe4\xba\xb2\xe7\x9b\xb8\xe6\x95\xac\xe5\xb8\xb8\xe7\x9b\xb8\xe7\x9f\xa5\xe3\x80\x82","roomId":"1001948467494522880"}'
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': 'Tue, 25 Jun 2024 03:32:18 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