${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} = 手机号 15873640527 ${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} = 15873640527 ${id} ${content} 15873640527 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['15873640527'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['15873640527'] ${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} 15873640527 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":"15873640527", "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":"15873640527", "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': 'Wed, 27 Mar 2024 07:42:14 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==","userId":"970373193472806912"}} ${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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 970373193472806912 ${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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='} ${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} = ['970373193472806912'] ${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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}"] ${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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 970373193472806912 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', '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=970373193472806912 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970373193472806912 path_url=/dating-agency-uec/user/list/own-organization?userId=970373193472806912 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=970373193472806912 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:15 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} 970373193472806912 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='} 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}, 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=970373193472806912 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=970373193472806912 path_url=/dating-agency-service/user/get/marriage/information/details?userId=970373193472806912 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='} 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.025028488474569878 IBM866 Russian confidence = 0.03584846061623734 IBM855 Russian confidence = 0.06631813313747058 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.052240941021551225 ISO-8859-9 Turkish confidence = 0.3812489858339177 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=970373193472806912 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:15 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":"970373194894675968","isDelete":false,"createTime":"2024-03-27 14:37:43","updateTime":null,"event":null,"accountId":null,"userId":"970373193472806912","nickName":"有一个朋友","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/aea0caca25438b7490305cd4c704d515.jpg","identityCard":null,"genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440103,"districtName":"荔湾区","birthYear":"1989","birthDate":null,"constellationCode":10,"constellation":"天蝎座","chineseZodiacCode":null,"chineseZodiac":null,"height":183,"weight":67,"educationCode":0,"education":"高中及以下","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":50001,"maximumIncome":999999,"incomeCode":6,"income":"50000以上","diplomaVerificationCode":null,"describeInfo":"男,89年,183/67。广东人,在上海工作,外企财务会计。寻觅一个三品好,三观一致的女生为伴。","self":null,"domicilePlaceProvinceCode":440000,"domicilePlaceProvinceName":"广东省","domicilePlaceCityCode":440100,"domicilePlaceCityName":"广州市","nationCode":2,"nation":"蒙古族","bodilyFormCode":0,"bodilyForm":"偏瘦","accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":9,"industry":"广告/市场","occupationCode":70,"occupation":"广告客户专员","onlyChild":null,"carPurchaseSituationCode":0,"carPurchaseSituation":"未购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":441400,"hometownCityName":"梅州市","auditProfilePhoto":null,"photoList":[{"id":"970374492671053824","isDelete":false,"createTime":"2024-03-27 14:42:53","updateTime":null,"event":null,"miId":970373194894675968,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/647e941c007594cd32d977b172efe58a.jpg","auditImgId":970374491320487936,"auditStatus":1},{"id":"970374492754939904","isDelete":false,"createTime":"2024-03-27 14:42:53","updateTime":null,"event":null,"miId":970373194894675968,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/122668a4d1cc4fcffd91fc3d2934fc8b.jpg","auditImgId":970374491404374016,"auditStatus":1},{"id":"970374575324008448","isDelete":false,"createTime":"2024-03-27 14:43:13","updateTime":null,"event":null,"miId":970373194894675968,"photoType":1,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/bc07ad3c778a592b48a48a01a6e6bcee.jpg","auditImgId":970374573990219776,"auditStatus":1}],"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} = 970373194894675968 ${nickName} ${reps.json()['data']} nickName Returns a value from the given ``dictionary`` based on the given ``key``. ${nickName} = 有一个朋友 ${miId_list} Returns a list containing given items. ${miId_list} = [] ${genderCode} ${reps.json()['data']} genderCode Returns a value from the given ``dictionary`` based on the given ``key``. ${genderCode} = 0 ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${miId_list} ${miId} Adds ``values`` to the end of ``list``. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${nickName} Makes a variable available globally in all tests and suites. ${nickName} = 有一个朋友 ${miId_list} Makes a variable available globally in all tests and suites. ${miId_list} = ['970373194894675968'] ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 0 ${userId} ${miId} ${userid_list} ${miId_list} 970373193472806912 970373194894675968 ${dataTime} result_format=%Y-%m-%d %H:%M:%S Returns current local or UTC time with an optional increment. ${dataTime} = 2024-03-27 15:42:15 ${Time} ${dataTime} 30 days Adds time to date and returns the resulting date. ${Time} = 2024-04-26 15:42:15.000 pymysql database='dating_agency_mall',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_mall',user='root',password='qniaothreetwoonego',host='8.135.8.221')) ${insert_1} INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${userId}, ${miId}, 101, '${dataTime}', '${Time}', 1) Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to True to run command without an explicit transaction commit or rollback. Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right`(`id`, `is_delete`, `create_time`, `update_time`, `user_id`, `mi_id`, `type`, `start_time`, `end_time`, `enable`) VALUES (NULL, 0, '2024-03-27 15:42:15', '2024-03-27 15:42:15', 970373193472806912, 970373194894675968, 101, '2024-03-27 15:42:15', '2024-04-26 15:42:15.000', 1) ${insert_1} = None ${check_1} SELECT id FROM `dating_agency_mall`.`da_right` WHERE `mi_id` = '${miId}' AND `type` = '101' 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_mall`.`da_right` WHERE `mi_id` = '970373194894675968' AND `type` = '101' ${check_1} = ((970388913854222337,),) ${right_id} ${check_1[0][0]} Returns the given values which can then be assigned to a variables. ${right_id} = 970388913854222337 ${insert_2} INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '规格', 1, 102, NULL) Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to True to run command without an explicit transaction commit or rollback. Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-03-27 15:42:15', '2024-03-27 15:42:15', 970388913854222337, '规格', 1, 102, NULL) ${insert_2} = None ${insert_3} INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益上限额度', 2, 1, '10') Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to True to run command without an explicit transaction commit or rollback. Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-03-27 15:42:15', '2024-03-27 15:42:15', 970388913854222337, '权益上限额度', 2, 1, '10') ${insert_3} = None ${insert_4} INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '${dataTime}', '${dataTime}', ${right_id}, '权益剩余额度', 3, 1, '10') Executes the sqlString as SQL commands. Useful to pass arguments to your sql. Set optional input `sansTran` to True to run command without an explicit transaction commit or rollback. Executing : Execute SQL String | INSERT INTO `dating_agency_mall`.`da_right_term`(`id`, `is_delete`, `create_time`, `update_time`, `right_id`, `display_name`, `name`, `unit`, `value`) VALUES (NULL, 0, '2024-03-27 15:42:15', '2024-03-27 15:42:15', 970388913854222337, '权益剩余额度', 3, 1, '10') ${insert_4} = None Disconnects from the database. Executing : Disconnect From Database ${value} 18 [NUMBERS] Generates a string with a desired ``length`` from the given ``chars``. ${value} = 385902779063200111 ${authenticationCode} 1 Evaluates the given expression in Python and returns the result. ${authenticationCode} = 1 ${miId} ${client_header} ${miId_list} ${Cheader_list} 970373194894675968 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='} 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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} { \ \ \ \ "authenticationCode":"${authenticationCode}", \ \ \ \ "miId":"${miId}", \ \ \ \ "value":"${value}" } Returns the given values which can then be assigned to a variables. ${data} = { "authenticationCode":"1", "miId":"970373194894675968", "value":"385902779063200111" } ${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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'Content-Length': '99'} body=b'{ "authenticationCode":"1", "miId":"970373194894675968", "value":"385902779063200111" }' 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': 'Wed, 27 Mar 2024 07:42:16 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":"970389435034243072"} ${reps} = <Response [200]> ${code} ${reps.json()} code Returns a value from the given ``dictionary`` based on the given ``key``. ${code} = 0 ${auditId} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${auditId} = 970389435034243072 ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${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'> ${auditId} Makes a variable available globally in all tests and suites. ${auditId} = 970389435034243072 资料认证 征婚人资料 ${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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', '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=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&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=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&pageNum=1 path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', '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.13980738330325287 IBM855 Russian confidence = 0.06643547608588603 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.024273653192915787 ISO-8859-9 Turkish confidence = 0.3993243290407528 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=%E6%9C%89%E4%B8%80%E4%B8%AA%E6%9C%8B%E5%8F%8B&pageNum=1 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 27 Mar 2024 07:42:16 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":"970389435034243072","phone":"15873640527","name":"有一个朋友","status":0,"authenticationCode":1,"authenticationName":"学历认证","createTime":"2024-03-27 15:42:15","auditTime":null},{"id":"970374636846059520","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-27 14:43:27","auditTime":"2024-03-27 14:43:28"},{"id":"970374573902139392","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":6,"authenticationName":"相册审核","createTime":"2024-03-27 14:43:12","auditTime":"2024-03-27 14:43:13"},{"id":"970374491190464512","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":6,"authenticationName":"相册审核","createTime":"2024-03-27 14:42:53","auditTime":"2024-03-27 14:42:53"},{"id":"970374383229079552","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-27 14:42:27","auditTime":"2024-03-27 14:42:28"},{"id":"970373213626437632","phone":"15873640527","name":"有一个朋友","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-27 14:37:48","auditTime":"2024-03-27 14:37:58"}],"total":6,"size":10,"current":1,"pages":1}} ${reps} = <Response [200]> ${records} ${reps.json()['data']} records Returns a value from the given ``dictionary`` based on the given ``key``. ${records} = [{'id': '970389435034243072', 'phone': '15873640527', 'name': '有一个朋友', 'status': 0, 'authenticationCode': 1, 'authenticationName': '学历认证', 'createTime': '2024-03-27 15:42:15', 'auditTime': None}, {'id... ${info} @{records} {'id': '970389435034243072', 'phone': '15873640527', 'name': '有一个朋友', 'status': 0, 'authenticationCode': 1, 'authenticationName': '学历认证', 'createTime': '2024-03-27 15:42:15', 'auditTime': None} ${InfoId} ${info} id Returns a value from the given ``dictionary`` based on the given ``key``. ${InfoId} = 970389435034243072 ${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} = 970389435034243072 ${admin_header} @{Aheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==','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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', '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":"970389435034243072","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/g6O5DXHixyNrf7tt4Dn1VGOHdYWaYX2/IHLa4dEOAvGSiNUAbG0dowCURPJvh3LnepVyLUPMn43nvflA==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'} body=b'{"id":"970389435034243072","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': 'Wed, 27 Mar 2024 07:42:16 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":"970389435034243072"} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = 970389435034243072 ${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} = 970389435034243072 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` = '970389435034243072' ${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