${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} = 手机号 18772953460 ${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} = 18772953460 ${id} ${content} 18772953460 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['18772953460'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['18772953460'] ${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} 18772953460 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":"18772953460", "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":"18772953460", "accountType":2, "captcha":888888 }' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 08:02:47 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==","userId":"970029776649719808"}} ${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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 970029776649719808 ${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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==','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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='} ${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} = ['970029776649719808'] ${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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==','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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='}"] ${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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==','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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 970029776649719808 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==','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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==', '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=970029776649719808 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970029776649719808 path_url=/dating-agency-uec/user/list/own-organization?userId=970029776649719808 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970029776649719808 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 08:02:47 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} 970029776649719808 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='} 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='}, 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=970029776649719808 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970029776649719808 path_url=/dating-agency-service/user/get/marriage/information/details?userId=970029776649719808 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='} 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.012741728488922615 IBM866 Russian confidence = 0.052708972104435016 IBM855 Russian confidence = 0.09501280267862416 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.019530026706261583 ISO-8859-9 Turkish confidence = 0.3492329093799316 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=970029776649719808 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 08:02:47 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":"970029778121920512","isDelete":false,"createTime":"2024-03-26 15:53:07","updateTime":null,"event":null,"accountId":null,"userId":970029776649719808,"nickName":"卜华","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/fde465e0db7e83a6a29ad133c270c8ba.jpg","identityCard":null,"genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440183,"districtName":"增城市","birthYear":"1983","birthDate":null,"constellationCode":9,"constellation":"天秤座","chineseZodiacCode":null,"chineseZodiac":null,"height":166,"weight":69,"educationCode":5,"education":"博士","maritalStatusCode":2,"maritalStatusName":"丧偶的","minimumIncome":3001,"maximumIncome":5000,"incomeCode":1,"income":"3001~5000","diplomaVerificationCode":null,"describeInfo":"书香门第家庭,独生女,父母是泰州市的国企职工,即将退休,未来会有养老金,养老无压力。","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":49,"nation":"京族","bodilyFormCode":2,"bodilyForm":"偏胖","accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":21,"industry":"金融/银行/保险","occupationCode":116,"occupation":"银行职员","onlyChild":null,"carPurchaseSituationCode":0,"carPurchaseSituation":"未购车","propertyPermitsCode":5,"propertyPermits":"单位宿舍","wechatId":null,"hometownProvinceCode":null,"hometownProvinceName":null,"hometownCityCode":null,"hometownCityName":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} = 970029778121920512 ${genderCode} ${reps.json()['data']} genderCode Returns a value from the given ``dictionary`` based on the given ``key``. ${genderCode} = 0 ${miId_list} Returns a list containing given items. ${miId_list} = [] ${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'> ${miId_list} Makes a variable available globally in all tests and suites. ${miId_list} = ['970029778121920512'] ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 0 ${miId} ${client_header} ${miId_list} ${Cheader_list} 970029778121920512 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='} 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/demand/marriage/details params=miId=${miId} 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/demand/marriage/details?miId=970029778121920512 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/demand/marriage/details?miId=970029778121920512 path_url=/dating-agency-service/user/get/demand/marriage/details?miId=970029778121920512 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='} 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.020059203064154096 IBM866 Russian confidence = 0.06958036062878452 IBM855 Russian confidence = 0.08274421263963565 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.04465313742440123 ISO-8859-9 Turkish confidence = 0.3589758257085998 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/demand/marriage/details?miId=970029778121920512 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 08:02:48 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":"970029807846952960","isDelete":false,"createTime":"2024-03-26 15:53:14","updateTime":null,"event":null,"miId":970029778121920512,"domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","minAge":28,"maxAge":31,"minHeight":153,"maxHeight":164,"educationCode":5,"education":"博士","maritalStatusCode":0,"maritalStatusName":"未婚","nationCode":32,"nation":"仫佬族","bodilyFormCode":3,"bodilyForm":"肥胖","accountTypeCode":0,"accountTypeName":"城市","nativePlaceCode":440000,"nativePlaceName":"广东省","occupationCode":81,"occupation":"广告/市场~品牌专员","onlyChild":null,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","minIncome":9000,"maxIncome":10000}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} miId Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 970029778121920512 ${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'> ${miId} Makes a variable available globally in all tests and suites. ${miId} = 970029778121920512 ${client_header} @{Cheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='} 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${man_minHeight} random.randint(150,160) random Evaluates the given expression in Python and returns the result. ${man_minHeight} = 160 ${man_maxHeight} random.randint(${man_minHeight},180) random Evaluates the given expression in Python and returns the result. ${man_maxHeight} = 180 ${woman_minHeight} random.randint(170,180) random Evaluates the given expression in Python and returns the result. ${woman_minHeight} = 173 ${woman_minHeight} random.randint(${woman_minHeight},207) random Evaluates the given expression in Python and returns the result. ${woman_minHeight} = 193 ${data} ${genderCode}==0 { \ \ \ \ "miId": "${miId}", \ \ \ \ "minHeight": ${man_minHeight}, \ \ \ \ "maxHeight": ${man_maxHeight} } { \ \ \ \ "miId": "${miId}", \ \ \ \ "minHeight": ${woman_minHeight}, \ \ \ \ "maxHeight": ${woman_maxHeight} } Sets variable based on the given condition. ${data} = { "miId": "970029778121920512", "minHeight": 160, "maxHeight": 180 } ${reps} dating dating-agency-service/user/save/demand/marriage ${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/demand/marriage HTTP/1.1" 200 None POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/demand/marriage path_url=/dating-agency-service/user/save/demand/marriage 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/g6O5DXHixyNrf7toy7d0yn2jVy4uQzGZCIdcsUQdVLaW89BX4TLoq4WTDUhtxvbga3kFw2jgkdFWrelw==', 'Content-Length': '80'} body=b'{ "miId": "970029778121920512", "minHeight": 160, "maxHeight": 180 }' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/demand/marriage status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 26 Mar 2024 08:02:48 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":"970029807846952960"} ${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.2-Homepage Dating-agency.1-Applet.2-Homepage.MarriageInfo Dating-agency.1-Applet.2-Homepage.MarriageInfo.MateSelection