${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} = 手机号 15134891062 ${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} = 15134891062 ${id} ${content} 15134891062 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['15134891062'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['15134891062'] ${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} 15134891062 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.quzhaoqin.com, 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":666666 } Returns the given values which can then be assigned to a variables. ${data} = { "account":"15134891062", "accountType":2, "captcha":666666 } ${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.quzhaoqin.com http://dating-agency-api.quzhaoqin.com:80 "POST /dating-agency-uec/authorize/by-captcha HTTP/1.1" 200 None POST Request : url=http://dating-agency-api.quzhaoqin.com/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":"15134891062", "accountType":2, "captcha":666666 }' POST Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/authorize/by-captcha status=200, reason= headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==","userId":"988491861142409216"}} ${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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 988491861142409216 ${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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='} ${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} = ['15134891062'] ${userid_list} Makes a variable available globally in all tests and suites. ${userid_list} = ['988491861142409216'] ${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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}"] ${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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 988491861142409216 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','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.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', '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.quzhaoqin.com http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-uec/user/list/own-organization?userId=988491861142409216 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/user/list/own-organization?userId=988491861142409216 path_url=/dating-agency-uec/user/list/own-organization?userId=988491861142409216 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/user/list/own-organization?userId=988491861142409216 status=200, reason= headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==','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.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', '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.quzhaoqin.com http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-uec/user/get/base-info HTTP/1.1" 200 None GET Request : url=http://dating-agency-api.quzhaoqin.com/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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-uec/user/get/base-info status=200, reason= headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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":"988491861142409216","realName":null,"nickName":null,"phone":"15134891062","matchmakerFlag":true}} ${reps} = <Response [200]> ${phone} ${reps.json()['data']} phone Returns a value from the given ``dictionary`` based on the given ``key``. ${phone} = 15134891062 ${matchmakerFlag} ${reps.json()['data']} matchmakerFlag Returns a value from the given ``dictionary`` based on the given ``key``. ${matchmakerFlag} = True ${matchmakerFlagList} ${matchmakerFlag} Adds ``values`` to the end of ``list``. ${phone} Makes a variable available globally in all tests and suites. ${phone} = 15134891062 ${matchmakerFlag} Makes a variable available globally in all tests and suites. ${matchmakerFlag} = True ${matchmakerFlagList} Makes a variable available globally in all tests and suites. ${matchmakerFlagList} = [True] 接口:短信验证码登录认证 用户登录婚介平台 ${EXECDIR}\\DA_data.yaml Imports a variable file with the given path and optional arguments. ${client_header} @{Cheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='} dating ${${dating}.dating域名} ${client_header} Create Session: create a HTTP session to a server Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/marriage/seeking/reward/page params=pageNum=1&pageSize=10&matchmakerFlag=${matchmakerFlag} Sends a GET request on a previously created HTTP Session. Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True HTTP/1.1" 200 None GET Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True path_url=/dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='} 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.03709758906807936 IBM866 Russian confidence = 0.03708997045039013 IBM855 Russian confidence = 0.0684412747596739 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.0342708122753199 ISO-8859-9 Turkish confidence = 0.3202319060867381 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.quzhaoqin.com/dating-agency-service/user/get/marriage/seeking/reward/page?pageNum=1&pageSize=10&matchmakerFlag=True status=200, reason= headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:24 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":[{"miId":"988486875104808960","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png","nickName":"就是不吃饭","height":"160","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","educationCode":3,"education":"大学本科","age":29,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"Some days the sunsets would be purple and pink. And some days they were a blazing orange setting fire to the clouds on the horizon. It was during one of those sunsets that my father's idea of the whole being greater than the sum of its parts moved from my head to my heart. 有时落日泛起紫红的余晖,有时散发出橘红色的火光燃起天边的晚霞。在这绚烂的日落景象中,我慢慢领悟了父亲所说的整体胜于局部总和的道理。","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":0,"identityTypeName":"本人","amountPaid":0.45,"demandMarriage":{"id":"988898991573962752","isDelete":false,"createTime":"2024-05-17 17:32:38","updateTime":null,"event":null,"miId":988486875104808960,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"minAge":18,"maxAge":41,"minHeight":null,"maxHeight":null,"educationCode":null,"education":null,"maritalStatusCode":null,"maritalStatusName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nativePlaceCode":null,"nativePlaceName":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"minIncome":null,"maxIncome":null,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":null,"constellationCode":null,"constellation":null},"name":"赖勇兰","msrId":"5","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":true},{"miId":"988772976415608832","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/5b00-iyywcsz1328954.jpg","nickName":"帅哥也会emo","height":"187","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","educationCode":3,"education":"大学本科","age":29,"occupationCode":null,"occupation":null,"minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","realNameAudit":1,"describeInfo":"希望能遇到性格好,温柔善良,谈吐佳,气质优雅的她;感情需要的是包容和理解,世界没有两片相同的叶子,每个人的成长环境都不同,三观差不多就好,所处阶段和节奏也不同,不要在过分焦虑中向外攀比,要在看清一切后活出自在,如果你也是个有趣的灵魂,那我们一定能碰撞出灿烂的火花!","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":0,"identityTypeName":"本人","amountPaid":6500.00,"demandMarriage":{"id":"988778487546515456","isDelete":false,"createTime":"2024-05-17 09:33:47","updateTime":null,"event":null,"miId":988772976415608832,"domicilePlaceCityCode":440500,"domicilePlaceCityName":"汕头市","minAge":18,"maxAge":25,"minHeight":156,"maxHeight":170,"educationCode":-1,"education":null,"maritalStatusCode":0,"maritalStatusName":"未婚","nationCode":-1,"nation":null,"bodilyFormCode":-1,"bodilyForm":null,"accountTypeCode":-1,"accountTypeName":null,"nativePlaceCode":-1,"nativePlaceName":null,"occupationCode":null,"occupation":null,"onlyChild":-1,"carPurchaseSituationCode":-1,"carPurchaseSituation":null,"propertyPermitsCode":-1,"propertyPermits":null,"minIncome":5000,"maxIncome":20000,"hometownProvinceCode":-1,"hometownProvinceName":null,"hometownCityCode":-1,"hometownCityName":null,"constellationCode":-1,"constellation":null},"name":"王颖勋","msrId":"4","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":0,"genderValue":"男","educationAudit":false},{"miId":"988539789680709632","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/01457a5b869a22a80120245c09984c.jpg@1280w_1l_2o_100sh (1).jpg","nickName":"花生了什么树","height":"155","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":34,"occupationCode":null,"occupation":null,"minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","realNameAudit":1,"describeInfo":null,"hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":2,"identityTypeName":"母亲","amountPaid":4500.00,"demandMarriage":null,"name":"赖敏怡","msrId":"3","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":false},{"miId":"986353543797673984","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg","nickName":"七月半","height":"163","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":32,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"我内心渴望一份美好的感情,但不强求也不凑合,尊重他人和自己的情感,期待理想中的你能早日出现。在你还没有来到我身边之前,我会好好爱自己,照顾好自己,经营好自己,希望我早日遇到优秀的你,一起成长,共同努力!","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440300,"hometownCityName":"深圳市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":3,"identityTypeName":"亲友","amountPaid":4000.00,"demandMarriage":null,"name":"赖勇兰","msrId":"2","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":false},{"miId":"986344345860968448","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/20201721432758197.jpg","nickName":"qianniao","height":"171","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":40,"occupationCode":null,"occupation":null,"minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","realNameAudit":1,"describeInfo":null,"hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440100,"hometownCityName":"广州市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":2,"identityTypeName":"母亲","amountPaid":3500.00,"demandMarriage":{"id":"988496362062614528","isDelete":false,"createTime":"2024-05-16 14:52:43","updateTime":null,"event":null,"miId":986344345860968448,"domicilePlaceCityCode":-1,"domicilePlaceCityName":null,"minAge":18,"maxAge":48,"minHeight":-1,"maxHeight":-1,"educationCode":-1,"education":null,"maritalStatusCode":-1,"maritalStatusName":null,"nationCode":-1,"nation":null,"bodilyFormCode":-1,"bodilyForm":null,"accountTypeCode":-1,"accountTypeName":null,"nativePlaceCode":-1,"nativePlaceName":null,"occupationCode":null,"occupation":null,"onlyChild":-1,"carPurchaseSituationCode":-1,"carPurchaseSituation":null,"propertyPermitsCode":-1,"propertyPermits":null,"minIncome":-1,"maxIncome":-1,"hometownProvinceCode":-1,"hometownProvinceName":null,"hometownCityCode":-1,"hometownCityName":null,"constellationCode":-1,"constellation":null},"name":"李博","msrId":"1","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":0,"genderValue":"男","educationAudit":false}],"total":5,"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} = [{'miId': '988486875104808960', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png', 'nickName': '就是不吃饭', 'height': '160', 'provinceCode': 440000, 'provinceNa... ${rewardData} random.choice(${records}) random Evaluates the given expression in Python and returns the result. ${rewardData} = {'miId': '988772976415608832', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/5b00-iyywcsz1328954.jpg', 'nickName': '帅哥也会emo', 'height': '187', 'provinceCode': 440000, 'provi... ${miId} ${rewardData} miId Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 988772976415608832 ${msrId} ${rewardData} msrId Returns a value from the given ``dictionary`` based on the given ``key``. ${msrId} = 4 ${miId} Makes a variable available globally in all tests and suites. ${miId} = 988772976415608832 ${msrId} Makes a variable available globally in all tests and suites. ${msrId} = 4 ${client_header} @{Cheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='} dating ${${dating}.dating域名} ${client_header} Create Session: create a HTTP session to a server Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/candidate/guest/page params=pageNum=1&pageSize=10&miId=${miId}&msrId=${msrId} Sends a GET request on a previously created HTTP Session. Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com http://dating-agency-api.quzhaoqin.com:80 "GET /dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4 path_url=/dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='} 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.0361802455316919 IBM866 Russian confidence = 0.04029099096133577 IBM855 Russian confidence = 0.0692125111687387 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.03437782280600288 ISO-8859-9 Turkish confidence = 0.29984206957274595 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.quzhaoqin.com/dating-agency-service/user/get/candidate/guest/page?pageNum=1&pageSize=10&miId=988772976415608832&msrId=4 status=200, reason= headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:25 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":[{"miId":"986353543797673984","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg","nickName":"七月半","height":"163","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","educationCode":3,"education":"大学本科","age":32,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"我内心渴望一份美好的感情,但不强求也不凑合,尊重他人和自己的情感,期待理想中的你能早日出现。在你还没有来到我身边之前,我会好好爱自己,照顾好自己,经营好自己,希望我早日遇到优秀的你,一起成长,共同努力!","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440300,"hometownCityName":"深圳市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":3,"identityTypeName":"亲友","amountPaid":null,"demandMarriage":null,"name":"赖勇兰","msrId":"4","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":false},{"miId":"988486875104808960","profilePhoto":"https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png","nickName":"就是不吃饭","height":"160","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":441400,"domicilePlaceCityName":"梅州市","educationCode":3,"education":"大学本科","age":29,"occupationCode":null,"occupation":null,"minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","realNameAudit":1,"describeInfo":"Some days the sunsets would be purple and pink. And some days they were a blazing orange setting fire to the clouds on the horizon. It was during one of those sunsets that my father's idea of the whole being greater than the sum of its parts moved from my head to my heart. 有时落日泛起紫红的余晖,有时散发出橘红色的火光燃起天边的晚霞。在这绚烂的日落景象中,我慢慢领悟了父亲所说的整体胜于局部总和的道理。","hasConsumeUnlockMorePeople":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","miSessionType":null,"meLike":null,"vip":false,"dataScoring":null,"identityType":0,"identityTypeName":"本人","amountPaid":null,"demandMarriage":null,"name":"赖勇兰","msrId":"4","matchmakerId":null,"matchmakerName":null,"matchmakerScore":null,"genderCode":1,"genderValue":"女","educationAudit":true}],"total":2,"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} = [{'miId': '986353543797673984', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg', 'nickName': '七月半', 'height': '163', 'provinceCode': 440000, 'provinceNa... ${records} Makes a variable available globally in all tests and suites. ${records} = [{'miId': '986353543797673984', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg', 'nickName': '七月半', 'height': '163', 'provinceCode': 440000, 'provinceNa... ${records}==None log 暂无嘉宾可推荐! ELSE 选择婚介可推荐嘉宾并推荐 Runs the given keyword with the given arguments, if ``condition`` is true. ${records} ${records} [{'miId': '986353543797673984', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/1-201201101140492.jpg', 'nickName': '七月半', 'height': '163', 'provinceCode': 440000, 'provinceNa... ${guestData} random.choice(${records}) random Evaluates the given expression in Python and returns the result. ${guestData} = {'miId': '988486875104808960', 'profilePhoto': 'https://dating-agency-prod.oss-cn-shenzhen.aliyuncs.com/8DDE1ECACB1916B.png', 'nickName': '就是不吃饭', 'height': '160', 'provinceCode': 440000, 'provinceNam... ${MsrId} ${guestData} msrId Returns a value from the given ``dictionary`` based on the given ``key``. ${MsrId} = 4 ${guestMiId} ${guestData} miId Returns a value from the given ``dictionary`` based on the given ``key``. ${guestMiId} = 988486875104808960 ${MsrId} Makes a variable available globally in all tests and suites. ${MsrId} = 4 ${guestMiId} Makes a variable available globally in all tests and suites. ${guestMiId} = 988486875104808960 ${client_header} @{Cheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='} dating ${${dating}.dating域名} ${client_header} Create Session: create a HTTP session to a server Creating Session using : alias=dating, url=http://dating-agency-api.quzhaoqin.com, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} {"msrId":"${MsrId}","miId":"${guestMiId}"} Returns the given values which can then be assigned to a variables. ${data} = {"msrId":"4","miId":"988486875104808960"} ${reps} dating dating-agency-service/user/recommend/guest/ ${data.encode('utf-8')} Sends a POST request on a previously created HTTP Session. Starting new HTTP connection (1): dating-agency-api.quzhaoqin.com http://dating-agency-api.quzhaoqin.com:80 "POST /dating-agency-service/user/recommend/guest/ HTTP/1.1" 200 None POST Request : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/recommend/guest/ path_url=/dating-agency-service/user/recommend/guest/ 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/g6O5DXHixyNrf7tklhV6aHT1OE/1bUBEhST4tOwtQQWW5aJpnAw3uKK20+RgHrwdivsl0PQTAq4LYquA==', 'Content-Length': '41'} body=b'{"msrId":"4","miId":"988486875104808960"}' POST Response : url=http://dating-agency-api.quzhaoqin.com/dating-agency-service/user/recommend/guest/ status=200, reason= headers={'Server': 'nginx/1.25.5', 'Date': 'Sat, 18 May 2024 07:32:25 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":null} ${reps} = <Response [200]> ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> 招亲榜 All Tests Dating-agency Dating-agency.0-Login Dating-agency.0-Login.Login-interface Dating-agency.1-Applet Dating-agency.1-Applet.5-SeekingReward Dating-agency.1-Applet.5-SeekingReward.SeekingReward Error in file 'D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\5-SeekingReward\SeekingRewardResource.robot' on line 128: Creating keyword '红娘给${dating}招亲榜推荐嘉宾' failed: User keyword cannot be empty.