${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} = 手机号 13168550964 ${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} = 13168550964 ${id} ${content} 13168550964 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['13168550964'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['13168550964'] ${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} 13168550964 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":"13168550964", "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":"13168550964", "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': 'Thu, 21 Mar 2024 11:22:01 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==","userId":"963432943739604992"}} ${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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 963432943739604992 ${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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='} ${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} = ['963432943739604992'] ${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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}"] ${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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 963432943739604992 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', '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=963432943739604992 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=963432943739604992 path_url=/dating-agency-uec/user/list/own-organization?userId=963432943739604992 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', '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.0 IBM855 Russian confidence = 0.0 ISO-8859-7 Greek confidence = 0.0 windows-1253 Greek confidence = 0.0 ISO-8859-5 Bulgairan confidence = 0.0 windows-1251 Bulgarian confidence = 0.01 TIS-620 Thai confidence = 0.0 ISO-8859-9 Turkish confidence = 0.2794564987311486 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-uec/user/list/own-organization?userId=963432943739604992 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 11:22:01 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":[{"orgId":"963432943739605555","fullName":"寻找伴侣","shortName":"寻伴"}]} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = [{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}] ${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. ${data} Logs the given message with the given level. [{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}] 接口:短信验证码登录认证 用户登录婚介平台 ${EXECDIR}\\DA_data.yaml Imports a variable file with the given path and optional arguments. ${userId} ${client_header} ${userid_list} ${Cheader_list} 963432943739604992 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='} 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}, 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=963432943739604992 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=963432943739604992 path_url=/dating-agency-service/user/get/marriage/information/details?userId=963432943739604992 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='} 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.0 IBM855 Russian confidence = 0.11199558468606934 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.046476906554671106 ISO-8859-9 Turkish confidence = 0.4171093444341742 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=963432943739604992 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 11:22:02 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":"965011050246311936","isDelete":false,"createTime":"2024-03-12 19:30:29","updateTime":null,"event":null,"accountId":null,"userId":963432943739604992,"nickName":"hinzai","name":"王颖勋","profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/afeb83bebb3e4c7214fd3bb8f2b10cd7.png","identityCard":"44058319951227041X","genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440112,"districtName":"黄埔区","birthYear":"1995","birthDate":"1995-12-27","constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":"猪","height":134,"weight":null,"educationCode":1,"education":"中专","maritalStatusCode":1,"maritalStatusName":"离异","minimumIncome":1,"maximumIncome":3000,"incomeCode":0,"income":"3000以下","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":null,"nation":null,"bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":null,"accountTypeName":null,"nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":null,"carPurchaseSituation":null,"propertyPermitsCode":null,"propertyPermits":null,"wechatId":null,"auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} id Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 965011050246311936 ${nickName} ${reps.json()['data']} nickName Returns a value from the given ``dictionary`` based on the given ``key``. ${nickName} = hinzai ${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} = ['965011050246311936'] ${nickName} Makes a variable available globally in all tests and suites. ${nickName} = hinzai ${value} 在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上,自觉遵守公司的的,坚持参加公司的每次的培训。要求积极上进,爱护公司的一砖一瓦,一直严谨的态度和积极的热情投身于学习和工作中,虽然有成功的泪水,也有失败的辛酸,然而日益激烈的社会竟争也使我充分地认识到成为一名德智体全面发展的优秀工作者的重要性。 Returns the given values which can then be assigned to a variables. ${value} = 在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上,自觉遵守公司的的,坚持参加公司的每次的培训。要求积极上进,爱护公司的一砖一瓦,一直严谨的态度和积极的热情投身于学习和工作... ${authenticationCode} 7 Evaluates the given expression in Python and returns the result. ${authenticationCode} = 7 ${miId} ${client_header} ${miId_list} ${Cheader_list} 965011050246311936 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='} 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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg=='}, 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":7,"miId":"965011050246311936","value":"在学习上,严格要求自己,端正工作态度,作到了理论联理实际;从而提高了自身的一专多能的长处及思想文化素质,包括生活中也学到了养成良好的生活习惯,生活充实而有条理,有严谨的生活态度和良好的生活作风,为人热情大方,诚实守信,乐于助人,拥有自己的良好做事原则,能与同事们和睦相处。思想上... ${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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'Content-Length': '844'} body=b'{"authenticationCode":7,"miId":"965011050246311936","value":"\xe5\x9c\xa8\xe5\xad\xa6\xe4\xb9\xa0\xe4\xb8\x8a\xef\xbc\x8c\xe4\xb8\xa5\xe6\xa0\xbc\xe8\xa6\x81\xe6\xb1\x82\xe8\x87\xaa\xe5\xb7\xb1\xef\xbc\x8c\xe7\xab\xaf\xe6\xad\xa3\xe5\xb7\xa5\xe4\xbd\x9c\xe6\x80\x81\xe5\xba\xa6\xef\xbc\x8c\xe4\xbd\x9c\xe5\x88\xb0\xe4\xba\x86\xe7\x90\x86\xe8\xae\xba\xe8\x81\x94\xe7\x90\x86\xe5\xae\x9e\xe9\x99\x85;\xe4\xbb\x8e\xe8\x80\x8c\xe6\x8f\x90\xe9\xab\x98\xe4\xba\x86\xe8\x87\xaa\xe8\xba\xab\xe7\x9a\x84\xe4\xb8\x80\xe4\xb8\x93\xe5\xa4\x9a\xe8\x83\xbd\xe7\x9a\x84\xe9\x95\xbf\xe5\xa4\x84\xe5\x8f\x8a\xe6\x80\x9d\xe6\x83\xb3\xe6\x96\x87\xe5\x8c\x96\xe7\xb4\xa0\xe8\xb4\xa8\xef\xbc\x8c\xe5\x8c\x85\xe6\x8b\xac\xe7\x94\x9f\xe6\xb4\xbb\xe4\xb8\xad\xe4\xb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\xb8\x80\xe5\x90\x8d\xe5\xbe\xb7\xe6\x99\xba\xe4\xbd\x93\xe5\x85\xa8\xe9\x9d\xa2\xe5\x8f\x91\xe5\xb1\x95\xe7\x9a\x84\xe4\xbc\x98\xe7\xa7\x80\xe5\xb7\xa5\xe4\xbd\x9c\xe8\x80\x85\xe7\x9a\x84\xe9\x87\x8d\xe8\xa6\x81\xe6\x80\xa7\xe3\x80\x82"}' 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': 'Thu, 21 Mar 2024 11:22:02 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":"968270416206499840"} ${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} = 968270416206499840 ${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 log ${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} = 968270416206499840 资料认证 征婚人资料 ${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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', '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=hinzai&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=hinzai&pageNum=1 path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=hinzai&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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', '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.033639699429515335 IBM866 Russian confidence = 0.2571955118155079 IBM855 Russian confidence = 0.1283596119153322 ISO-8859-7 Greek confidence = 0.01 windows-1253 Greek confidence = 0.01 ISO-8859-5 Bulgairan confidence = 0.0 windows-1251 Bulgarian confidence = 0.01 TIS-620 Thai confidence = 0.10082902095518866 ISO-8859-9 Turkish confidence = 0.44826610176718007 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=hinzai&pageNum=1 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Thu, 21 Mar 2024 11:22:02 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":"968270416206499840","phone":"13168550964","name":"hinzai","status":0,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-21 19:22:02","auditTime":null},{"id":"968198190262259712","phone":"13168550964","name":"hinzai","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-21 14:35:02","auditTime":null},{"id":"968198567627984896","phone":"13168550964","name":"hinzai","status":1,"authenticationCode":0,"authenticationName":"实名认证","createTime":"2024-03-21 14:36:32","auditTime":null},{"id":"968267340917641216","phone":"13168550964","name":"hinzai","status":2,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-21 19:09:49","auditTime":null},{"id":"968269804123328512","phone":"13168550964","name":"hinzai","status":2,"authenticationCode":7,"authenticationName":"介绍信息审核","createTime":"2024-03-21 19:19:36","auditTime":null}],"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} = [{'id': '968270416206499840', 'phone': '13168550964', 'name': 'hinzai', 'status': 0, 'authenticationCode': 7, 'authenticationName': '介绍信息审核', 'createTime': '2024-03-21 19:22:02', 'auditTime': None}, {... ${info} @{records} {'id': '968270416206499840', 'phone': '13168550964', 'name': 'hinzai', 'status': 0, 'authenticationCode': 7, 'authenticationName': '介绍信息审核', 'createTime': '2024-03-21 19:22:02', 'auditTime': None} ${InfoId} ${info} id Returns a value from the given ``dictionary`` based on the given ``key``. ${InfoId} = 968270416206499840 ${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} = 968270416206499840 ${admin_header} @{Aheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==','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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', '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":"968270416206499840","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/g6O5DXHixyNrf7tlqBp/0Iabmk8CBfG9MamALItPYh7S5KDHcc7birG+3PCjbBlRLyOUBXgYlLY4iXFg==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'} body=b'{"id":"968270416206499840","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': 'Thu, 21 Mar 2024 11:22:02 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":"968270416206499840"} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = 968270416206499840 ${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} = 968270416206499840 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` = '968270416206499840' ${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.2-Homepage Dating-agency.2-Homepage.MarriageInfo Dating-agency.2-Homepage.MarriageInfo.DataAuthentication Dating-agency.Web Dating-agency.Web.InfoAudit Dating-agency.Web.InfoAudit.AuditInfomation