${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} = 手机号 13977594623 ${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} = 13977594623 ${id} ${content} 13977594623 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['13977594623'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['13977594623'] ${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} 13977594623 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":"13977594623", "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":"13977594623", "accountType":2, "captcha":888888 }' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 29 Mar 2024 08:47:12 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==","userId":"971127868094550016"}} ${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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 971127868094550016 ${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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==','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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='} ${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'> ${phone} ${account} Returns the given values which can then be assigned to a variables. ${phone} = 13977594623 ${phone} Makes a variable available globally in all tests and suites. ${phone} = 13977594623 ${userid_list} Makes a variable available globally in all tests and suites. ${userid_list} = ['971127868094550016'] ${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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==','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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='}"] ${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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==','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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 971127868094550016 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==','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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==', '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=971127868094550016 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=971127868094550016 path_url=/dating-agency-uec/user/list/own-organization?userId=971127868094550016 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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=971127868094550016 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 29 Mar 2024 08:47:12 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":[]} ${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} 971127868094550016 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='} 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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='}, 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=971127868094550016 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=971127868094550016 path_url=/dating-agency-service/user/get/marriage/information/details?userId=971127868094550016 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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='} 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.013963085882938514 IBM866 Russian confidence = 0.0579063812046746 IBM855 Russian confidence = 0.091335597621372 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.07476804405946254 ISO-8859-9 Turkish confidence = 0.3851107575260312 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=971127868094550016 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 29 Mar 2024 08:47:12 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":{"id":"971127869667414016","isDelete":false,"createTime":"2024-03-29 16:36:32","updateTime":null,"event":null,"accountId":null,"userId":"971127868094550016","nickName":"茯苓","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/c7c968a93cff69375df767aefe112da4.jpg","identityCard":null,"genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":430000,"provinceName":"湖南省","cityCode":430400,"cityName":"衡阳市","districtCode":430406,"districtName":"雁峰区","birthYear":"1999","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":153,"weight":38,"educationCode":4,"education":"硕士","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":430000,"domicilePlaceProvinceName":"湖南省","domicilePlaceCityCode":430400,"domicilePlaceCityName":"衡阳市","nationCode":5,"nation":"维吾尔族","bodilyFormCode":0,"bodilyForm":"偏瘦","accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":430000,"hometownProvinceName":"湖南省","hometownCityCode":430400,"hometownCityName":"衡阳市","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} = 971127869667414016 ${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} = ['971127869667414016'] ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 0 ${manImgList} ["https://dating-agency-test.oss-accelerate.aliyuncs.com/d82cdcee2a4ad82a61c311772797db5e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/8f5409ef7017ee3319865b59df944b2c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/118b97c369e7d820cc9dbb7945f5df4b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/d274c4228025fc173501e204a3341711.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5040c8ff3a9c29864b15926cb69a1c1e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f1fb686bf354b37736f32373038a08ba.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/360c7d7d5bfd9ed6b7bc0f8aa053e92d.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cfb4d3efca13891901d8f4c502798287.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/74220a4807411872f456b73d6c7b67c5.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/21f79ccaf480ffb9b0d689f4a1e551fb.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/e245c18b37ad0183f8a548537e7b5613.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/36c8ca5e065ae6408ff65d0f855301f0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/84340889d0e42c25a0a95016316e6362.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c4c64cd64e3fd0691bf14073a5d24dbf.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/884ad42964dcb76c62ee5ae0e5de9131.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b0a228f442cb03e9da13959b6b012e98.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/327e898829ecccb16b8ab86b0313e571.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6df28c0d585aa10f2d76e266c68d7880.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/30464b28455d6ddbc1f049ce4adfda7a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c7c968a93cff69375df767aefe112da4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/9e1c238e45a3c9264b83c0b1d4054019.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/0c1e15d1c956cb8bb678b2a1f7992f76.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/aea0caca25438b7490305cd4c704d515.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/14eee17ccd0333cda335d68004885f1f.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/863db444113cabe238ce37e1ff12d8c8.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/42e77d2434934a6fc24638fd5bf130d6.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/122668a4d1cc4fcffd91fc3d2934fc8b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/24ef3e3c4e781b97c9e3da52cc2a6a88.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c91757deace453ee22c3d12ea9913bd0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b2b34146d7354dab2d7a7c6e65395762.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/905cbc906449e997be51c6b129c9481e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/18a7ce70dbba030da53442f0ad55e63b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/991c4bc6f06c1c3fb1d6a9a5178ee34c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/df8705ac114d936428d0765f78fc3af8.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5d4eeebbf9f7df899a8964d3c802a2b7.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/61971786fabc9be4718e10f9323649ef.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f99a80033c77b990f9d2c75c2e6b6c1e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6647f59b5f8057c9aa67324261153cdd.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/fde465e0db7e83a6a29ad133c270c8ba.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/647e941c007594cd32d977b172efe58a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ca8faec9558e2aae046f8620fd21fed6.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/82e53568724f2010025231a600fd78b2.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/e40ca792f19cb70f045ebfe04c57c52c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/9e62e2e3ad1b53d20a933a651c958201.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7f7e09f9c1f83b68de7967df210716d4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/3d9ccb6c9206e28c3dd6104d38eccd19.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ccc7a8fea47b80921b7cc790c87d6bc1.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/71a5453ecfd81a21c7fbbbcea50ec6ab.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/bc07ad3c778a592b48a48a01a6e6bcee.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/228b58091bcdac00789bcefd77886cf2.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/d2c20517cc88b51d9960f017b6e9d856.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/894641101adeadccc172acaf0acc9c63.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/8f5083fe00659f8a27d2f8d2088d0610.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/3fdbd451d84c4b7ae52f25feb9421418.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f72d6d2eaf3810e9825ac9dd253ec9b4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/8c1f62d66b53a712c4ee7fdb8db7df94.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/28e7fb32363d891db3c3cb214c7b8a85.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5e66fcb168ce5fb660e24a0623130307.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f3452fd74b259a07e979b03254eb35f1.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7fa87b7954e5837c5aeb7488f2fca46e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6a22917ec872e71815020f5731422980.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/d623055d903f2ac6e9677f85fa586eb0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c7253b3ddf1212ce2cf0baa5bf34142b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/d36dfdb0481ab5063b03b5eca61e3cde.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/28aa78ce92cf8d7a00efb7663b290e83.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/9873adca4a81b04856c1df4c646dd1dc.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7323562eba749cb69eea0baed36f3124.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ff4dab6a3922bc157aaafbac2d962a39.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7b6c2afaa9eacad5d0325b71bc46052c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5c337585ae48913daf5982dfb41243c4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/71a5453ecfd81a21c7fbbbcea50ec6ab.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/365936561e069a69c28685132958d557.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/bc07ad3c778a592b48a48a01a6e6bcee.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/571282746fff6c3f9652b4475922afc9.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b3180f68bea8bcfa5adb0e5e56233c17.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ff6cafa72bcaaa90bb03609416ac4a17.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/25ab8f1b8ae3e56ad229b746e2877c17.jpg"] Returns the given values which can then be assigned to a variables. ${manImgList} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/d82cdcee2a4ad82a61c311772797db5e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/8f5409ef7017ee3319865b59df944b2c.jpg","https://da... ${manImgUrl} random.choice(${manImgList}) random Evaluates the given expression in Python and returns the result. ${manImgUrl} = https://dating-agency-test.oss-accelerate.aliyuncs.com/7323562eba749cb69eea0baed36f3124.jpg ${womanImgList} ["https://dating-agency-test.oss-accelerate.aliyuncs.com/c4ffc55089f4ad31d470a4a4139762c0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/31cfe566de5a978ef518510588c03ef7.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c07233ded18b5b803368ac263f5947e3.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/917b24805282978f73bdeeb44a4d9310.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6915d287757be1cdcf248a33db54a434.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/3a949227719af879e0d3110dd8b46da9.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/64bfe55dbfdad8c5f71d8feac6e7bee9.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ecd53d3a2e2eb503598bd3fae31e1882.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5faf286ce9c99e09ebebb35461c3c91c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/45d5a86455d48686b6677c6e08c38294.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6fc52dbf166c3b62bd8bf03b11d0dac8.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/761fc775f7189b611dbd157218a6b4b8.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f0906bef43f4341a3a7d65f2b7feebae.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ecfa67de7dd217ae285a720100a72b18.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/fecdbac6dee34407fca0ed349603da6e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/889ca4abb2de5874d87a945e7d6f80f3.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/a2a78cdb419f6f2d85d0dc87dc45abd3.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/8e2c2b134b06b4afdde30f46f618f6cb.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b52a0c7aafadaedb0037bb2c8a4c9008.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c4a2322bc9416b32a64f0aa7bd367ca9.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f0d912abaadb963b9f4b9fdd6ee04526.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c1286d7d6a07ae48dafca35ceb320fef.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/9b0e046f763d129aef5257d02581ad59.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/71e2ac4806378e5c6f29e2e9d01f1b3b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cd5dda0a1f539861cc78f1bef4a8e8ab.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c6fc977ab1effc2f57c1b61ea0b4a10b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/59aae418037d0bf103f63de805eeb86b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/960b3d371ed4af8788c1fc4a8c889933.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/884c65f91e6b346bb7c9e26e750ce4d3.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c5e4bca3b533fdfbcc2557e83512215c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/bbef238ab2bea9bd3e831d0e9d9557e4.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/1c771bf0c01eb0e5fab3fede9dab7608.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/6df02f3978e72f14fb2b33b9a3e56fe9.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c9525ae0873fe94a5dd15a01717c07a0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/417ebe61e78592b42d212eb00a2ec23c.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/1adabba412cc81d3fa40fdf78eba46d7.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/afcf0ad64c7224a8a08163cc98ef6cb6.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/84b55bb41fcf7350d2c86d0d518bf546.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/80d9c390581014ea327efabc749cf042.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7ea11516b07156a1bcfa227c4fef9207.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/abae88e4e07536531d0ac7d03f7f576b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/a2826ad22aab2d082bb3598b387f1689.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b26399e635fa7dd44808342595fa334a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b3a641d16e9e547228a8ccbc8e7e5aef.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cc28a387d249a8673a0cd24cf9e49896.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7615cc23bd2cf922e50e5fb3810e749f.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/d0d15693e059e2525d4ea469451e4387.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/f43b18d37584c0797d8ef3606d578a11.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/55f9f41f1ff9f2b71837af94ec02126a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/af74f07f326842a4c958f855ce11544b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/753745c3d3bdbffc9fecff9b3869d880.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5e3fb99b37448612749dd8b3fc5cf917.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/91b79f1e3eb2b13fa334de8157a6b9be.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/e94e9f29216a38527dbdc3aa75f7f415.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/3e77d927fa1611c71b34f80f235608df.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/82d51050e13fea977a054a0208d1e616.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/e11371938ac8e89479916077db4d5d36.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/0a7411a8d971063c92c8a52088b5875d.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/78bd71bd58a4087ff3fe47eeb468a5d6.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ce75dfc5f2139ac05731f0fc7de4ce6e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/841ed8e2c89132088579276a3bc20ea9.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/a34e5221ae3347d4a05916be6f55aa29.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/0568ebaee6f5b361c77cab42ad15db63.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/94dfaed7942184a47e62276105065052.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/28d09499553f74d4dd9e63ab8ce1656f.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/5f1da263f386098e93bced978c2f3251.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/509b08c2ae6f1291d750bfae96a60a44.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/699b9ee0b52a22f0b4ac7919b9d26b28.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/934cb4df0bd8bbdde4c089dd2e879e26.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/88957d37f3ead953e13861081b1d8a19.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/df44ee000435c8b1b923716f85ec8498.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/7eb2af6c427932e505a28ffd5def69ec.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b106f4c511921e4e6076f361f835ed4b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ec1fda9c73eee8d0e2ff47c026dbe69b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/110bb7da41f7b496c1054a076c81878a.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/79aab098fd7fc078c22d425511dd5021.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/c11a7e66e47492db879792954aa44b84.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/b3a641d16e9e547228a8ccbc8e7e5aef.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/cc28a387d249a8673a0cd24cf9e49896.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/ee8546367652cae005ce3d58d25e8a7b.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/810a40993432db570fdcabba46bcd28e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/baf366d637a7f8c57f359d42d917585e.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/4b5e681b87ec1e902ea940313cdefef0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/753745c3d3bdbffc9fecff9b3869d880.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/8740ae3b8b86bcd3c06e63c1c4181f2d.png","https://dating-agency-test.oss-accelerate.aliyuncs.com/3a9852deff49ad1a60fa821a24b8e897.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/94ebc0dc461bea0feea8876620a922fb.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/474ca6f3a54b70396325a9847904f071.jpg"] Returns the given values which can then be assigned to a variables. ${womanImgList} = ["https://dating-agency-test.oss-accelerate.aliyuncs.com/c4ffc55089f4ad31d470a4a4139762c0.jpg","https://dating-agency-test.oss-accelerate.aliyuncs.com/31cfe566de5a978ef518510588c03ef7.jpg","https://da... ${womanImgUrl} random.choice(${womanImgList}) random Evaluates the given expression in Python and returns the result. ${womanImgUrl} = https://dating-agency-test.oss-accelerate.aliyuncs.com/ce75dfc5f2139ac05731f0fc7de4ce6e.jpg ${authenticationCode} 8 Evaluates the given expression in Python and returns the result. ${authenticationCode} = 8 ${miId} ${client_header} ${miId_list} ${Cheader_list} 971127869667414016 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='} 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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} ${genderCode}==1 { \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ["${womanImgUrl}"] } { \ \ \ \ "authenticationCode": ${authenticationCode}, \ \ \ \ "miId": "${miId}", \ \ \ \ "imgUrl": ["${manImgUrl}"] } Sets variable based on the given condition. ${data} = { "authenticationCode": 8, "miId": "971127869667414016", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/7323562eba749cb69eea0baed36f3124.jpg"] } ${reps} dating dating-agency-service/user/save/certification/audit ${data.encode('utf-8')} Sends a POST request on a previously created HTTP Session. Starting new HTTP connection (1): dating-agency-api-test.qniao.cn http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-service/user/save/certification/audit HTTP/1.1" 200 None POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit path_url=/dating-agency-service/user/save/certification/audit headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795880', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==', 'Content-Length': '176'} body=b'{ "authenticationCode": 8, "miId": "971127869667414016", "imgUrl": ["https://dating-agency-test.oss-accelerate.aliyuncs.com/7323562eba749cb69eea0baed36f3124.jpg"] }' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/certification/audit status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 29 Mar 2024 08:47:13 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":"971130556366589952"} ${reps} = <Response [200]> ${auditId} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${auditId} = 971130556366589952 ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${auditId}==None Should Be Equal As Strings ${message} 正在审核中!请等待审核完成。 ELSE Should Be Equal As Strings ${message} successful Runs the given keyword with the given arguments, if ``condition`` is true. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${auditId} Makes a variable available globally in all tests and suites. ${auditId} = 971130556366589952 pymysql database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221' Loads the DB API 2.0 module given `dbapiModuleName` then uses it to connect to the database using the map string `db_custom_param_string`. Executing : Connect To Database Using Custom Params : pymysql.connect(db_api_2.connect(database='dating_agency_service',user='root',password='qniaothreetwoonego',host='8.135.8.221')) ${check} SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '${auditId}' AND `authentication_code` = '8' AND `is_delete` = '0' Uses the input `selectStatement` to query for the values that will be returned as a list of tuples. Set optional input `sansTran` to True to run command without an explicit transaction commit or rollback. Set optional input `returnAsDict` to True to return values as a list of dictionaries. Executing : Query | SELECT id FROM `dating_agency_service`.`da_marriage_information_certification_audit` WHERE `id` = '971130556366589952' AND `authentication_code` = '8' AND `is_delete` = '0' ${check} = ((971130556366589952,),) ${id} ${check[0][0]} Returns the given values which can then be assigned to a variables. ${id} = 971130556366589952 ${id} ${auditId} Fails if objects are unequal after converting them to strings. Argument types are: <class 'int'> <class 'str'> Disconnects from the database. Executing : Disconnect From Database ${userId} ${client_header} ${userid_list} ${Cheader_list} 971127868094550016 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='} 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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='}, 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=971127868094550016 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=971127868094550016 path_url=/dating-agency-service/user/get/marriage/information/details?userId=971127868094550016 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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA=='} 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.013963085882938514 IBM866 Russian confidence = 0.0579063812046746 IBM855 Russian confidence = 0.091335597621372 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.07476804405946254 ISO-8859-9 Turkish confidence = 0.3996828280459947 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=971127868094550016 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 29 Mar 2024 08:47:13 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":"971127869667414016","isDelete":false,"createTime":"2024-03-29 16:36:32","updateTime":null,"event":null,"accountId":null,"userId":"971127868094550016","nickName":"茯苓","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/c7c968a93cff69375df767aefe112da4.jpg","identityCard":null,"genderCode":0,"genderValue":"男","homeCountryCode":null,"homeCountry":null,"provinceCode":430000,"provinceName":"湖南省","cityCode":430400,"cityName":"衡阳市","districtCode":430406,"districtName":"雁峰区","birthYear":"1999","birthDate":null,"constellationCode":null,"constellation":null,"chineseZodiacCode":null,"chineseZodiac":null,"height":153,"weight":38,"educationCode":4,"education":"硕士","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","diplomaVerificationCode":null,"describeInfo":null,"self":null,"domicilePlaceProvinceCode":430000,"domicilePlaceProvinceName":"湖南省","domicilePlaceCityCode":430400,"domicilePlaceCityName":"衡阳市","nationCode":5,"nation":"维吾尔族","bodilyFormCode":0,"bodilyForm":"偏瘦","accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":null,"nativePlaceName":null,"industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":null,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":430000,"hometownProvinceName":"湖南省","hometownCityCode":430400,"hometownCityName":"衡阳市","auditProfilePhoto":{"id":"971130556442087424","isDelete":null,"createTime":"2024-03-29 16:47:13","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/7323562eba749cb69eea0baed36f3124.jpg","auditImgId":null,"auditStatus":0},"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} id Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 971127869667414016 ${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} = ['971127869667414016'] ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 0 资料认证 征婚人资料 ${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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==','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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==', '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=%E8%8C%AF%E8%8B%93&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=%E8%8C%AF%E8%8B%93&pageNum=1 path_url=/dating-agency-service/user/get/marriage/information/audit/page?pageSize=10&name=%E8%8C%AF%E8%8B%93&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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==', '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.21004300131599818 IBM855 Russian confidence = 0.14221661547437375 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.0 ISO-8859-9 Turkish confidence = 0.43407739548452207 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=%E8%8C%AF%E8%8B%93&pageNum=1 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 29 Mar 2024 08:47:13 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":"971130556366589952","phone":"13977594623","name":"茯苓","status":0,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:47:13","auditTime":null},{"id":"971130522292064256","phone":"13977594623","name":"茯苓","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:47:04","auditTime":"2024-03-29 16:47:05"},{"id":"971130467724169216","phone":"13977594623","name":"茯苓","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:46:51","auditTime":"2024-03-29 16:46:52"},{"id":"971130085295919104","phone":"13977594623","name":"茯苓","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:45:20","auditTime":"2024-03-29 16:45:21"},{"id":"971130040756604928","phone":"13977594623","name":"茯苓","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:45:10","auditTime":"2024-03-29 16:45:11"},{"id":"971129988181004288","phone":"13977594623","name":"茯苓","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:44:57","auditTime":"2024-03-29 16:44:58"},{"id":"971128352591187968","phone":"13977594623","name":"茯苓","status":1,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:38:27","auditTime":"2024-03-29 16:38:28"},{"id":"971127882581676032","phone":"13977594623","name":"茯苓","status":2,"authenticationCode":8,"authenticationName":"头像审核","createTime":"2024-03-29 16:36:35","auditTime":"2024-03-29 16:38:08"}],"total":8,"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': '971130556366589952', 'phone': '13977594623', 'name': '茯苓', 'status': 0, 'authenticationCode': 8, 'authenticationName': '头像审核', 'createTime': '2024-03-29 16:47:13', 'auditTime': None}, {'id': ... ${info} @{records} {'id': '971130556366589952', 'phone': '13977594623', 'name': '茯苓', 'status': 0, 'authenticationCode': 8, 'authenticationName': '头像审核', 'createTime': '2024-03-29 16:47:13', 'auditTime': None} ${InfoId} ${info} id Returns a value from the given ``dictionary`` based on the given ``key``. ${InfoId} = 971130556366589952 ${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} = 971130556366589952 ${admin_header} @{Aheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==','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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==', '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":"971130556366589952","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/g6O5DXHixyNrf7tuqfCY84LRFCv2mWw5+m9XEJtf2vpX26xsKUSTeLAaGY0hqhnwafvYrTITtUyyqqnA==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '38'} body=b'{"id":"971130556366589952","status":1}' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/exe/certification/audit status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 29 Mar 2024 08:47:13 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":"971130556366589952"} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = 971130556366589952 ${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} = 971130556366589952 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` = '971130556366589952' ${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