${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} = 手机号
15187573906
${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} = 15187573906
${id}
${content}
15187573906
${id}
${id}
\n
Splits the ``string`` using ``separator`` as a delimiter string.
${id} = ['15187573906']
${id}
Makes a variable available globally in all tests and suites.
${id} = ['15187573906']
${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}
15187573906
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":"15187573906", "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":"15187573906", "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 08:55:49 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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==","userId":"970683652532998144"}}
${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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==
${userId}
${reps.json()['data']}
userId
Returns a value from the given ``dictionary`` based on the given ``key``.
${userId} = 970683652532998144
${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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
${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} = ['15187573906']
${userid_list}
Makes a variable available globally in all tests and suites.
${userid_list} = ['970683652532998144']
${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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}"]
${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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
${Aheader}
Returns a list containing given items.
${Aheader} = []
${userId}
${login_header}
${userid_list}
${Aheader_list}
970683652532998144
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', '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=970683652532998144 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970683652532998144
path_url=/dating-agency-uec/user/list/own-organization?userId=970683652532998144
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', 'X-Organization-Id': '963432943739605555'}
body=None
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970683652532998144
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":[]}
${reps} = <Response [200]>
${data}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${data} = []
${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.
未获取到组织信息!
Logs the given message with the given level.
未获取到组织信息!
${matchmakerFlagList}
Returns a list containing given items.
${matchmakerFlagList} = []
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==','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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', '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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', '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 08:55:49 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":"970683652532998144","realName":null,"nickName":null,"phone":"15187573906","matchmakerFlag":false}}
${reps} = <Response [200]>
${phone}
${reps.json()['data']}
phone
Returns a value from the given ``dictionary`` based on the given ``key``.
${phone} = 15187573906
${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} = 15187573906
${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}
970683652532998144
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, 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=970683652532998144 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970683652532998144
path_url=/dating-agency-service/user/get/marriage/information/details?userId=970683652532998144
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
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.020159738313495962
IBM866 Russian confidence = 0.05205965867996009
IBM855 Russian confidence = 0.12460716358312997
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.044038839044274275
ISO-8859-9 Turkish confidence = 0.38009206901435727
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=970683652532998144
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":"970683653929701376","isDelete":false,"createTime":"2024-03-28 11:11:23","updateTime":null,"event":null,"accountId":null,"userId":"970683652532998144","nickName":"遥远的旅途2024","name":"李雷刚","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/82e53568724f2010025231a600fd78b2.jpg","identityCard":"430426198502033497","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440115,"districtName":"南沙区","birthYear":"1985","birthDate":"1985-02-03","constellationCode":4,"constellation":"金牛座","chineseZodiacCode":null,"chineseZodiac":"牛","height":172,"weight":110,"educationCode":4,"education":"硕士","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","diplomaVerificationCode":null,"describeInfo":null,"identityType":0,"identityTypeName":"本人","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","nationCode":1,"nation":"汉族","bodilyFormCode":3,"bodilyForm":"肥胖","accountTypeCode":0,"accountTypeName":"城市","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":22,"industry":"医疗/护理","occupationCode":113,"occupation":"医生","onlyChild":0,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":5,"propertyPermits":"单位宿舍","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","display":true,"inLove":0,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":61,"phone":null}}
${reps} = <Response [200]>
${miId}
${reps.json()['data']}
id
Returns a value from the given ``dictionary`` based on the given ``key``.
${miId} = 970683653929701376
${nickName}
${reps.json()['data']}
nickName
Returns a value from the given ``dictionary`` based on the given ``key``.
${nickName} = 遥远的旅途2024
${genderCode}
${reps.json()['data']}
genderCode
Returns a value from the given ``dictionary`` based on the given ``key``.
${genderCode} = 0
${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} = 430426198502033497
${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} = ['970683653929701376']
${nickName}
Makes a variable available globally in all tests and suites.
${nickName} = 遥远的旅途2024
${genderCode}
Makes a variable available globally in all tests and suites.
${genderCode} = 0
${identityCard}
Makes a variable available globally in all tests and suites.
${identityCard} = 430426198502033497
${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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
${client_header}
${selfMiId}
${Cheader_list}
${miId_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
970683653929701376
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, 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=970683653929701376 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=970683653929701376
path_url=/dating-agency-cim/user/page/room?pageNum=1&pageSize=10&selfMiId=970683653929701376
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
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.17065993856924846
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.48085656396079496
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-cim/user/page/room?pageNum=1&pageSize=10&selfMiId=970683653929701376
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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":"1002658702513278976","roomType":1,"roomName":"零碎小土豆\uD83D\uDCD5","roomPic":"https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg","finalContent":"The future belongs to those who believe in the beauty of their dreams.","finalActivityTime":"2024-06-24 16:55:02","cityName":"广州市","unreadContentCount":0,"genderCode":1}],"total":1,"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': '1002658702513278976', 'roomType': 1, 'roomName': '零碎小土豆📕', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg', 'finalContent': 'The f...
${InfomationData}
Makes a variable available globally in all tests and suites.
${InfomationData} = [{'roomId': '1002658702513278976', 'roomType': 1, 'roomName': '零碎小土豆📕', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg', 'finalContent': 'The f...
${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': '1002658702513278976', 'roomType': 1, 'roomName': '零碎小土豆📕', 'roomPic': 'https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg', 'finalContent': 'The fu...
${roomId}
${infomation}
roomId
Returns a value from the given ``dictionary`` based on the given ``key``.
${roomId} = 1002658702513278976
${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}
Makes a variable available globally in all tests and suites.
${roomId} = 1002658702513278976
${client_header}
${selfMiId}
${Cheader_list}
${miId_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
970683653929701376
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, 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=1002658702513278976&selfMiId=970683653929701376 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/get/chat-right-consume?roomId=1002658702513278976&selfMiId=970683653929701376
path_url=/dating-agency-cim/user/get/chat-right-consume?roomId=1002658702513278976&selfMiId=970683653929701376
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
body=None
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-cim/user/get/chat-right-consume?roomId=1002658702513278976&selfMiId=970683653929701376
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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=970683653929701376&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=970683653929701376&type=501
path_url=/dating-agency-mall/user/list/right/by/customer?miId=970683653929701376&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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
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=970683653929701376&type=501
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Mon, 24 Jun 2024 08:55:49 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 16:48:48","endTime":"2024-06-29 16:48:48","remainingDays":5,"rightCount":2,"dailyUseLimit":-1,"dailyUseCount":1,"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 16:48:48', 'endTime': '2024-06-29 16:48:48', '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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
970683653929701376
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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}, 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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA=='}
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 08:55:49 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":"970683653929701376","content":"你觉得现在过年还有年味吗?","roomId":"1002658702513278976"}
${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/g6O5DXHixyNrf7to/ys3dubAMwl7Zf4cv/4F9zb8apKeU4LI1PSKMN2BaHuVRRHbi70pSxahdwROE2CA==', 'Content-Length': '116'}
body=b'{"selfMiId":"970683653929701376","content":"\xe4\xbd\xa0\xe8\xa7\x89\xe5\xbe\x97\xe7\x8e\xb0\xe5\x9c\xa8\xe8\xbf\x87\xe5\xb9\xb4\xe8\xbf\x98\xe6\x9c\x89\xe5\xb9\xb4\xe5\x91\xb3\xe5\x90\x97\xef\xbc\x9f","roomId":"1002658702513278976"}'
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 08:55:49 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