${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} = 手机号
13000000035
${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} = 13000000035
${id}
${content}
13000000035
${id}
${id}
\n
Splits the ``string`` using ``separator`` as a delimiter string.
${id} = ['13000000035']
${id}
Makes a variable available globally in all tests and suites.
${id} = ['13000000035']
${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}
13000000035
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":"13000000035", "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":"13000000035", "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 03:57:10 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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==","userId":"968520754729717760"}}
${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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==
${userId}
${reps.json()['data']}
userId
Returns a value from the given ``dictionary`` based on the given ``key``.
${userId} = 968520754729717760
${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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
${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} = ['968520754729717760']
${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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}"]
${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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
${Aheader}
Returns a list containing given items.
${Aheader} = []
${userId}
${login_header}
${userid_list}
${Aheader_list}
968520754729717760
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', '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=968520754729717760 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968520754729717760
path_url=/dating-agency-uec/user/list/own-organization?userId=968520754729717760
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}
body=None
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=968520754729717760
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:10 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}
968520754729717760
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}, 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=968520754729717760 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
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.03682661832283783
IBM855 Russian confidence = 0.1023959631415491
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.07421312498245872
ISO-8859-9 Turkish confidence = 0.4080377860420616
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=968520754729717760
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57:10 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":"968520756990447616","isDelete":false,"createTime":"2024-03-22 11:56:48","updateTime":null,"event":null,"accountId":null,"userId":968520754729717760,"nickName":"寻伴用户191","name":null,"profilePhoto":null,"identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440184,"districtName":"从化市","birthYear":"1994","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":207,"weight":null,"educationCode":2,"education":"大专","maritalStatusCode":1,"maritalStatusName":"离异","minimumIncome":50001,"maximumIncome":99999999,"incomeCode":6,"income":"50000以上","diplomaVerificationCode":null,"describeInfo":null,"self":null,"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,"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} = 968520756990447616
${nickName}
${reps.json()['data']}
nickName
Returns a value from the given ``dictionary`` based on the given ``key``.
${nickName} = 寻伴用户191
${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} = 1
${message}
${reps.json()}
message
Returns a value from the given ``dictionary`` based on the given ``key``.
${message} = successful
${miId_list}
${miId}
Adds ``values`` to the end of ``list``.
${message}
successful
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'str'>
<class 'str'>
${nickName}
Makes a variable available globally in all tests and suites.
${nickName} = 寻伴用户191
${miId_list}
Makes a variable available globally in all tests and suites.
${miId_list} = ['968520756990447616']
${genderCode}
Makes a variable available globally in all tests and suites.
${genderCode} = 1
${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/59004ca9250de9fec6fbb95e6eed6760.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/b58d3b649f9d358fbbe896f5ec4ffc7b.jpg"]
${authenticationCode}
8
Evaluates the given expression in Python and returns the result.
${authenticationCode} = 8
${miId}
${client_header}
${miId_list}
${Cheader_list}
968520756990447616
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}, 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": "968520756990447616", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'Content-Length': '176'}
body=b'{ "authenticationCode": 8, "miId": "968520756990447616", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.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 03:57: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":"968520855837609984"}
${reps} = <Response [200]>
${auditId}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${auditId} = 968520855837609984
${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} = 968520855837609984
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` = '968520855837609984' AND `authentication_code` = '8' AND `is_delete` = '0'
${check} = ((968520855837609984,),)
${id}
${check[0][0]}
Returns the given values which can then be assigned to a variables.
${id} = 968520855837609984
${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}
968520754729717760
{'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}, 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=968520754729717760 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
path_url=/dating-agency-service/user/get/marriage/information/details?userId=968520754729717760
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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A=='}
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.03682661832283783
IBM855 Russian confidence = 0.1023959631415491
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.07421312498245872
ISO-8859-9 Turkish confidence = 0.4188033100971302
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=968520754729717760
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57: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":"968520756990447616","isDelete":false,"createTime":"2024-03-22 11:56:48","updateTime":null,"event":null,"accountId":null,"userId":968520754729717760,"nickName":"寻伴用户191","name":null,"profilePhoto":null,"identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440184,"districtName":"从化市","birthYear":"1994","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":207,"weight":null,"educationCode":2,"education":"大专","maritalStatusCode":1,"maritalStatusName":"离异","minimumIncome":50001,"maximumIncome":99999999,"incomeCode":6,"income":"50000以上","diplomaVerificationCode":null,"describeInfo":null,"self":null,"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,"auditProfilePhoto":{"id":"968520855942467584","isDelete":null,"createTime":"2024-03-22 11:57:11","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/b58d3b649f9d358fbbe896f5ec4ffc7b.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} = 968520756990447616
${nickName}
${reps.json()['data']}
nickName
Returns a value from the given ``dictionary`` based on the given ``key``.
${nickName} = 寻伴用户191
${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} = 1
${message}
${reps.json()}
message
Returns a value from the given ``dictionary`` based on the given ``key``.
${message} = successful
${miId_list}
${miId}
Adds ``values`` to the end of ``list``.
${message}
successful
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'str'>
<class 'str'>
${nickName}
Makes a variable available globally in all tests and suites.
${nickName} = 寻伴用户191
${miId_list}
Makes a variable available globally in all tests and suites.
${miId_list} = ['968520756990447616']
${genderCode}
Makes a variable available globally in all tests and suites.
${genderCode} = 1
资料认证
征婚人资料
${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${reps}
dating
dating-agency-service/user/get/marriage/information/audit/page
params=pageSize=10&name=${nickName}&pageNum=1
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/audit/page?pageSize=10&name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&pageNum=1 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&pageNum=1
path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&pageNum=1
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', '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.23629837648049792
IBM855 Russian confidence = 0.11946195699847396
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.01
TIS-620 Thai confidence = 0.0
ISO-8859-9 Turkish confidence = 0.4610874738847395
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/audit/page?pageSize=10&name=%E5%AF%BB%E4%BC%B4%E7%94%A8%E6%88%B7191&pageNum=1
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57: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":{"records":[{"id":"968520855837609984","phone":"13000000035","name":"寻伴用户191","status":0,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-22 11:57:11","auditTime":null}],"total":1,"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': '968520855837609984', 'phone': '13000000035', 'name': '寻伴用户191', 'status': 0, 'authenticationCode': 8, 'authenticationName': '头像审核', 'createTime': '2024-03-22 11:57:11', 'auditTime': None}]
${info}
@{records}
{'id': '968520855837609984', 'phone': '13000000035', 'name': '寻伴用户191', 'status': 0, 'authenticationCode': 8, 'authenticationName': '头像审核', 'createTime': '2024-03-22 11:57:11', 'auditTime': None}
${InfoId}
${info}
id
Returns a value from the given ``dictionary`` based on the given ``key``.
${InfoId} = 968520855837609984
${InfoId}==${auditId}
Stops executing the enclosing FOR loop if the ``condition`` is true.
Exiting for loop altogether.
${InfoId}
Makes a variable available globally in all tests and suites.
${InfoId} = 968520855837609984
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==','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/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
{"id":"${InfoId}","status":1}
Returns the given values which can then be assigned to a variables.
${data} = {"id":"968520855837609984","status":1}
${reps}
dating
dating-agency-service/user/exe/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/exe/certification/audit HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
path_url=/dating-agency-service/user/exe/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': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tlVa6WNd3q7N3Ysz/bGve+CN7uHdUcrjrkkEzgoiHFWg4tSYDZ24VJ1fIRFNToWk0A==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'}
body=b'{"id":"968520855837609984","status":1}'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 22 Mar 2024 03:57: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":"968520855837609984"}
${reps} = <Response [200]>
${data}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${data} = 968520855837609984
${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}
Makes a variable available globally in all tests and suites.
${data} = 968520855837609984
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 status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${data}'
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 status FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '968520855837609984'
${check} = ((1,),)
${status}
${check[0][0]}
Returns the given values which can then be assigned to a variables.
${status} = 1
${status}
1
Fails if objects are unequal after converting them to real numbers.
Argument types are:
<class 'int'>
<class 'str'>
资料审核
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
Dating-agency.2-Web
Dating-agency.2-Web.InfoAudit
Dating-agency.2-Web.InfoAudit.AuditInfomation
Error in file 'D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\2-Homepage\MarriageInfo\DataAuthentication.robot' on line 5: Resource file '..\..\0-Login\LoginResource.robot' does not exist.