${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} = 手机号
13000000046
${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} = 13000000046
${id}
${content}
13000000046
${id}
${id}
\n
Splits the ``string`` using ``separator`` as a delimiter string.
${id} = ['13000000046']
${id}
Makes a variable available globally in all tests and suites.
${id} = ['13000000046']
${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} = []
${account}
@{id}
13000000046
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":"13000000046", "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":"13000000046", "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': 'Fri, 22 Mar 2024 08:49:45 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==","userId":"968593934106365952"}}
${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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==
${userId}
${reps.json()['data']}
userId
Returns a value from the given ``dictionary`` based on the given ``key``.
${userId} = 968593934106365952
${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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','X-Organization-Id':'96...
${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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
${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``.
${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'>
${userid_list}
Makes a variable available globally in all tests and suites.
${userid_list} = ['968593934106365952']
${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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}"]
${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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
${Aheader}
Returns a list containing given items.
${Aheader} = []
${userId}
${login_header}
${userid_list}
${Aheader_list}
968593934106365952
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==','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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==', '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=968593934106365952 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968593934106365952
path_url=/dating-agency-uec/user/list/own-organization?userId=968593934106365952
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==', 'X-Organization-Id': '963432943739605555'}
body=None
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968593934106365952
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:45 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":[]}
${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.
未获取到组织信息!
接口:短信验证码登录认证
用户登录婚介平台
${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
${userId}
${client_header}
${userid_list}
${Cheader_list}
968593934106365952
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}, 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=968593934106365952 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
body=None
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.020358315132212312
IBM855 Russian confidence = 0.09865736813840936
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.033914183203408506
ISO-8859-9 Turkish confidence = 0.4007739445018166
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=968593934106365952
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:45 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"id":"968593935574372352","isDelete":false,"createTime":"2024-03-22 16:47:35","updateTime":null,"event":null,"accountId":null,"userId":968593934106365952,"nickName":"赖勖","name":"李博","profilePhoto":null,"identityCard":"429006198410300956","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区","birthYear":"1984","birthDate":"1984-10-30","constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":"鼠","height":154,"weight":null,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
${reps} = <Response [200]>
${miId}
${reps.json()['data']}
id
Returns a value from the given ``dictionary`` based on the given ``key``.
${miId} = 968593935574372352
${nickName}
${reps.json()['data']}
nickName
Returns a value from the given ``dictionary`` based on the given ``key``.
${nickName} = 赖勖
${miId_list}
Returns a list containing given items.
${miId_list} = []
${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
${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'>
${nickName}
Makes a variable available globally in all tests and suites.
${nickName} = 赖勖
${miId_list}
Makes a variable available globally in all tests and suites.
${miId_list} = ['968593935574372352']
${genderCode}
Makes a variable available globally in all tests and suites.
${genderCode} = 0
${manImgList}
["https://dating-agency-test.oss-accelerate.aliyuncs.com/6b1f0e91c84f97fe76737a9bc9605222.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/13430ed896298bcd0ac46f09bf29ece7.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/59004ca9250de9fec6fbb95e6eed6760.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/c5644ac57b91fad169833894a8409fb8.png"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/3e416c672e4a0240d86bd233afc12fb7.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/8048e38b0d4a73f7d06fc1b17995ac6b.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/ed369df1698455041d3caa43e358a998.png"]
Returns a list containing given items.
${manImgList} = ['["https://dating-agency-test.oss-accelerate.aliyuncs.com/6b1f0e91c84f97fe76737a9bc9605222.jpg"]', '["https://dating-agency-test.oss-accelerate.aliyuncs.com/13430ed896298bcd0ac46f09bf29ece7.jpg"]', '...
${manImgUrl}
random.choice(${manImgList})
random
Evaluates the given expression in Python and returns the result.
${manImgUrl} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"]
${womanImgList}
["https://dating-agency-test.oss-accelerate.aliyuncs.com/45d5a86455d48686b6677c6e08c38294.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/f2c441ab2e2bc63afdb0182c3e9365a3.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/520d2089fac428d3b84f9d25db93dd31.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/302803c1647500313cc114de59af053e.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/c97da67055186388335cfb73af718948.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/27491660b76a7ded1f0cad84d0fa136f.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/d586c7311f15bbca574bb10ee2590941.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/73a607e091bfa2696e5c76ea282e3fad.jpg"]
["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg"]
Returns a list containing given items.
${womanImgList} = ['["https://dating-agency-test.oss-accelerate.aliyuncs.com/45d5a86455d48686b6677c6e08c38294.jpg"]', '["https://dating-agency-test.oss-accelerate.aliyuncs.com/f2c441ab2e2bc63afdb0182c3e9365a3.jpg"]', '...
${womanImgUrl}
random.choice(${womanImgList})
random
Evaluates the given expression in Python and returns the result.
${womanImgUrl} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/520d2089fac428d3b84f9d25db93dd31.jpg"]
${authenticationCode}
8
Evaluates the given expression in Python and returns the result.
${authenticationCode} = 8
${miId}
${client_header}
${miId_list}
${Cheader_list}
968593935574372352
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
${genderCode}==1
{ \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${womanImgUrl} }
{ \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ${manImgUrl} }
Sets variable based on the given condition.
${data} = { "authenticationCode": 8, "miId": "968593935574372352", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"] }
${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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA==', 'Content-Length': '176'}
body=b'{ "authenticationCode": 8, "miId": "968593935574372352", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg"] }'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:46 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":"968594483635687424"}
${reps} = <Response [200]>
${auditId}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${auditId} = 968594483635687424
${message}
${reps.json()}
message
Returns a value from the given ``dictionary`` based on the given ``key``.
${message} = successful
${auditId}==None
Should Be Equal As Strings
${message}
正在审核中!请等待审核完成。
ELSE
Should Be Equal As Strings
${message}
successful
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'>
${auditId}
Makes a variable available globally in all tests and suites.
${auditId} = 968594483635687424
pymysql
database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'
Loads the DB API 2.0 module given `dbapiModuleName` then uses it to
connect to the database using the map string `db_custom_param_string`.
Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221'))
${check}
SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${auditId}' AND `authentication_code` = '8' AND `is_delete` = '0'
Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional
input `sansTran` to True to run command without an explicit transaction commit or rollback.
Set optional input `returnAsDict` to True to return values as a list of dictionaries.
Executing : Query | SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '968594483635687424' AND `authentication_code` = '8' AND `is_delete` = '0'
${check} = ((968594483635687424,),)
${id}
${check[0][0]}
Returns the given values which can then be assigned to a variables.
${id} = 968594483635687424
${id}
${auditId}
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'int'>
<class 'str'>
Disconnects from the database.
Executing : Disconnect From Database
${userId}
${client_header}
${userid_list}
${Cheader_list}
968593934106365952
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
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/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}, 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=968593934106365952 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968593934106365952
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7ton/EBDP5QVrmIlnSZ/gWzwVvLhIqFmVAMH1SUMCQ//0QyakEgNyTy79DftrMWp6bA=='}
body=None
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.020358315132212312
IBM855 Russian confidence = 0.09865736813840936
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.033914183203408506
ISO-8859-9 Turkish confidence = 0.41361092910151137
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=968593934106365952
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 08:49:46 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"id":"968593935574372352","isDelete":false,"createTime":"2024-03-22 16:47:35","updateTime":null,"event":null,"accountId":null,"userId":968593934106365952,"nickName":"赖勖","name":"李博","profilePhoto":null,"identityCard":"429006198410300956","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区","birthYear":"1984","birthDate":"1984-10-30","constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":"鼠","height":154,"weight":null,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":{"id":"968594483702796288","isDelete":null,"createTime":"2024-03-22 16:49:46","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/44600b8d7a00616fbfef5f4199801aa3.jpg","auditImgId":null,"auditStatus":0},"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}}
${reps} = <Response [200]>
${miId}
${reps.json()['data']}
id
Returns a value from the given ``dictionary`` based on the given ``key``.
${miId} = 968593935574372352
${nickName}
${reps.json()['data']}
nickName
Returns a value from the given ``dictionary`` based on the given ``key``.
${nickName} = 赖勖
${miId_list}
Returns a list containing given items.
${miId_list} = []
${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
${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'>
${nickName}
Makes a variable available globally in all tests and suites.
${nickName} = 赖勖
${miId_list}
Makes a variable available globally in all tests and suites.
${miId_list} = ['968593935574372352']
${genderCode}
Makes a variable available globally in all tests and suites.
${genderCode} = 0
资料认证
征婚人资料
All Tests
Dating-agency
Dating-agency.0-Login
Dating-agency.0-Login.Login-interface
Dating-agency.1-Applet
Dating-agency.1-Applet.2-Homepage
Dating-agency.1-Applet.2-Homepage.MarriageInfo
Dating-agency.1-Applet.2-Homepage.MarriageInfo.DataAuthentication