${EXECDIR}\\DA_data.yaml Imports a variable file with the given path and optional arguments. ${EXECDIR}\\DA_data.yaml Imports a variable file with the given path and optional arguments. ${file} D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\0-Login\\phone-test.txt Returns the contents of a specified file. Getting file '<a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt">D:\LYL\Study\Robot_framework\space\Dating-agency\0-Login\phone-test.txt</a>'. ${file} = 手机号 15675143029 ${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} = 15675143029 ${id} ${content} 15675143029 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['15675143029'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['15675143029'] ${userid_list} Returns a list containing given items. ${userid_list} = [] ${Cheader_list} Returns a list containing given items. ${Cheader_list} = [] ${Aheader_list} Returns a list containing given items. ${Aheader_list} = [] ${phoneList} Returns a list containing given items. ${phoneList} = [] ${account} @{id} 15675143029 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":"15675143029", "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":"15675143029", "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, 14 Jun 2024 08:14:59 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==","userId":"969659763816271872"}} ${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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 969659763816271872 ${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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==','X-Organization-Id':'96... ${login_header} Logs the given message with the given level. {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==','X-Organization-Id':'963432943739605555'} ${client_header} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'} Returns the given values which can then be assigned to a variables. ${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} ${userid_list} ${userId} Adds ``values`` to the end of ``list``. ${Cheader_list} ${client_header} Adds ``values`` to the end of ``list``. ${Aheader_list} ${login_header} Adds ``values`` to the end of ``list``. ${phoneList} ${account} Adds ``values`` to the end of ``list``. ${code}==0 Should Be Equal As Strings ${message} successful ELSE Should Be Equal As Strings ${message} 验证码错误或无效验证码,请重试! Runs the given keyword with the given arguments, if ``condition`` is true. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${phoneList} Makes a variable available globally in all tests and suites. ${phoneList} = ['15675143029'] ${userid_list} Makes a variable available globally in all tests and suites. ${userid_list} = ['969659763816271872'] ${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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==','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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='}"] ${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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==','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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 969659763816271872 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==','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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==', '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=969659763816271872 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=969659763816271872 path_url=/dating-agency-uec/user/list/own-organization?userId=969659763816271872 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=969659763816271872 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:14:59 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":[]} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = [] ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${data}==[] log 未获取到组织信息! ELSE log ${data} Runs the given keyword with the given arguments, if ``condition`` is true. 未获取到组织信息! Logs the given message with the given level. 未获取到组织信息! ${matchmakerFlagList} Returns a list containing given items. ${matchmakerFlagList} = [] ${admin_header} @{Aheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==','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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-uec/user/get/base-info Sends a GET request on a previously created HTTP Session. Starting new HTTP connection (1): dating-agency-api-test.qniao.cn http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/get/base-info HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info path_url=/dating-agency-uec/user/get/base-info headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:14:59 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":{"userId":"969659763816271872","realName":null,"nickName":null,"phone":"15675143029","matchmakerFlag":false}} ${reps} = <Response [200]> ${phone} ${reps.json()['data']} phone Returns a value from the given ``dictionary`` based on the given ``key``. ${phone} = 15675143029 ${matchmakerFlag} ${reps.json()['data']} matchmakerFlag Returns a value from the given ``dictionary`` based on the given ``key``. ${matchmakerFlag} = False ${matchmakerFlagList} ${matchmakerFlag} Adds ``values`` to the end of ``list``. ${phone} Makes a variable available globally in all tests and suites. ${phone} = 15675143029 ${matchmakerFlag} Makes a variable available globally in all tests and suites. ${matchmakerFlag} = False ${matchmakerFlagList} Makes a variable available globally in all tests and suites. ${matchmakerFlagList} = [False] 接口:短信验证码登录认证 用户登录婚介平台 ${EXECDIR}\\DA_data.yaml Imports a variable file with the given path and optional arguments. ${miId_list} Returns a list containing given items. ${miId_list} = [] ${nickNameList} Returns a list containing given items. ${nickNameList} = [] ${genderCodeList} Returns a list containing given items. ${genderCodeList} = [] ${userId} ${client_header} ${userid_list} ${Cheader_list} 969659763816271872 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating /dating-agency-service/user/get/first/fill/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/first/fill/marriage/information/details?userId=969659763816271872 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/first/fill/marriage/information/details?userId=969659763816271872 path_url=/dating-agency-service/user/get/first/fill/marriage/information/details?userId=969659763816271872 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} 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.0548549802544013 IBM855 Russian confidence = 0.1730840854239253 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.04872578912989713 ISO-8859-9 Turkish confidence = 0.33656206713934006 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/first/fill/marriage/information/details?userId=969659763816271872 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:14:59 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":"969659765636599808","accountId":null,"userId":"969659763816271872","nickName":"我迪迦在黑龙江","genderCode":0,"homeCountryCode":null,"homeCountry":null,"provinceCode":230000,"provinceName":"黑龙江省","cityCode":230100,"cityName":"哈尔滨市","districtCode":230102,"districtName":"道里区","birthYear":"2004","educationCode":1,"education":"中专","incomeCode":2,"income":"5001~8000","height":"178","maritalStatusCode":1,"maritalStatusName":"离异","hometownProvinceCode":230000,"hometownProvinceName":"黑龙江省","hometownCityCode":230100,"hometownCityName":"哈尔滨市","identityType":0,"identityTypeName":"本人","fillSerialNumber":8}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} id Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 969659765636599808 ${nickName} ${reps.json()['data']} nickName Returns a value from the given ``dictionary`` based on the given ``key``. ${nickName} = 我迪迦在黑龙江 ${genderCode} ${reps.json()['data']} genderCode Returns a value from the given ``dictionary`` based on the given ``key``. ${genderCode} = 0 ${miId_list} ${miId} Adds ``values`` to the end of ``list``. ${nickNameList} ${nickName} Adds ``values`` to the end of ``list``. ${genderCodeList} ${genderCode} Adds ``values`` to the end of ``list``. ${userId} Makes a variable available globally in all tests and suites. ${userId} = 969659763816271872 ${miId_list} Makes a variable available globally in all tests and suites. ${miId_list} = ['969659765636599808'] ${nickNameList} Makes a variable available globally in all tests and suites. ${nickNameList} = ['我迪迦在黑龙江'] ${genderCodeList} Makes a variable available globally in all tests and suites. ${genderCodeList} = [0] ${client-header} @{Cheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/site/activity/details params=id=998286299716784128 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/site/activity/details?id=998286299716784128 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/site/activity/details?id=998286299716784128 path_url=/dating-agency-service/user/get/site/activity/details?id=998286299716784128 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} 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.006567384796586797 MacCyrillic Russian confidence = 0.016610591940344765 IBM866 Russian confidence = 0.04938791776584645 IBM855 Russian confidence = 0.08181797145337105 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.018628803421648386 ISO-8859-9 Turkish confidence = 0.4515410651908994 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/site/activity/details?id=998286299716784128 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:14:59 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":"998286299716784128","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:30","event":null,"name":"恭喜你获得","vipActivityId":null,"goodsId":null,"applyStartTime":"2024-06-12 15:11:20","applyEndTime":"2024-06-15 15:11:31","beginTime":"2024-06-15 15:11:38","endTime":"2024-06-16 15:11:41","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440106,"districtName":"天河区","detailedAddress":"(具体地址报名后通知)","numberParticipants":15,"numberMan":7,"numberWoman":8,"manEntryFee":null,"womanEntryFee":null,"manDiscount":null,"womanDiscount":null,"depict":"喝中国劲酒,打亲朋好友。\n喝劲酒加冰,锤父老乡亲。\n红牛加劲酒,一干干一宿。\n劲酒好不好,先看配料表。\n一瓶提神醒脑,两瓶没完没了。\n三瓶火急火燎,四瓶拍手叫好。\n三两劲酒温着喝,大嫂来了叫大哥","status":1,"activityType":0,"communityId":"995313929934737408","communityName":"离异群","communityQrCodeUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/离异群.png","contactPictureUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/联系人.png","goodsName":null,"chargeType":null,"mutualAssistanceLimit":2,"participationAllocations":[],"imgList":[{"id":"998286299804864512","isDelete":false,"createTime":[2024,6,12,15,14,27],"updateTime":[2024,6,12,15,14,27],"event":null,"siteActivityId":998286299716784128,"url":"https://dating-agency-test.oss-accelerate.aliyuncs.com/茅台4.png","serialNumber":0}],"manNumber":0,"womanNumber":0,"participantStatus":-1,"userOpenAssistanceStatus":2,"participationAllocation":{"id":"145","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":0,"genderCode":0,"genderValue":"男","enable":true},"openedAssistanceId":"999025652093030400","participationAllocationList":[{"id":"145","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":0,"genderCode":0,"genderValue":"男","enable":true},{"id":"146","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":1,"genderCode":0,"genderValue":"男","enable":true},{"id":"147","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":0,"genderCode":1,"genderValue":"女","enable":true},{"id":"148","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":1,"genderCode":1,"genderValue":"女","enable":true}],"thisDayTimes":"2024-06-14 16:14:59","endTimes":"2024-06-15 02:12:22"}} ${reps} = <Response [200]> ${assistNumber} ${reps.json()['data']['participationAllocation']} assistNumber Returns a value from the given ``dictionary`` based on the given ``key``. ${assistNumber} = 5 ${openedAssistanceId} ${reps.json()['data']} openedAssistanceId Returns a value from the given ``dictionary`` based on the given ``key``. ${openedAssistanceId} = 999025652093030400 ${assistNumber}>0 Log To Console 可发起助力 Runs the given keyword with the given arguments, if ``condition`` is true. 可发起助力 Logs the given message to the console. ${openedAssistanceId} Makes a variable available globally in all tests and suites. ${openedAssistanceId} = 999025652093030400 ${client-header} @{Cheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/assistance/details params=openedAssistanceId=${openedAssistanceId} 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/assistance/details?openedAssistanceId=999025652093030400 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/assistance/details?openedAssistanceId=999025652093030400 path_url=/dating-agency-service/user/get/assistance/details?openedAssistanceId=999025652093030400 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/g6O5DXHixyNrf7tmhMWrNGWP5lsu8qzU6h+HgXkE+G5qxfrBX6jIPElyLSwwJSjXMpkA7JjscXsPb0Vg=='} 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.006211240612262859 MacCyrillic Russian confidence = 0.015692867914413655 IBM866 Russian confidence = 0.05314724427238134 IBM855 Russian confidence = 0.0877225045539434 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.022504728905538313 ISO-8859-9 Turkish confidence = 0.4499664263775203 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/assistance/details?openedAssistanceId=999025652093030400 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:14:59 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":"998286299716784128","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:30","event":null,"name":"恭喜你获得","vipActivityId":null,"goodsId":null,"applyStartTime":"2024-06-12 15:11:20","applyEndTime":"2024-06-15 15:11:31","beginTime":"2024-06-15 15:11:38","endTime":"2024-06-16 15:11:41","provinceCode":440000,"provinceName":"广东省","cityCode":440100,"cityName":"广州市","districtCode":440106,"districtName":"天河区","detailedAddress":"(具体地址报名后通知)","numberParticipants":15,"numberMan":7,"numberWoman":8,"manEntryFee":null,"womanEntryFee":null,"manDiscount":null,"womanDiscount":null,"depict":"喝中国劲酒,打亲朋好友。\n喝劲酒加冰,锤父老乡亲。\n红牛加劲酒,一干干一宿。\n劲酒好不好,先看配料表。\n一瓶提神醒脑,两瓶没完没了。\n三瓶火急火燎,四瓶拍手叫好。\n三两劲酒温着喝,大嫂来了叫大哥","status":1,"activityType":0,"communityId":"995313929934737408","communityName":"离异群","communityQrCodeUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/离异群.png","contactPictureUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/联系人.png","goodsName":null,"chargeType":null,"mutualAssistanceLimit":2,"participationAllocations":[{"id":"145","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":0,"genderCode":0,"genderValue":"男","enable":true},{"id":"146","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":1,"genderCode":0,"genderValue":"男","enable":true},{"id":"147","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":0,"genderCode":1,"genderValue":"女","enable":true},{"id":"148","isDelete":false,"createTime":"2024-06-12 15:14:26","updateTime":"2024-06-12 15:14:26","event":null,"siteActivityId":998286299716784128,"transactionPrice":0.000000,"originalPrice":50.000000,"assistNumber":5,"assistRule":0,"discountAmount":20.000000,"validTime":10,"userType":1,"genderCode":1,"genderValue":"女","enable":true}],"imgList":[{"id":"998286299804864512","isDelete":false,"createTime":[2024,6,12,15,14,27],"updateTime":[2024,6,12,15,14,27],"event":null,"siteActivityId":998286299716784128,"url":"https://dating-agency-test.oss-accelerate.aliyuncs.com/茅台4.png","serialNumber":0}],"assistanceDiscount":{"id":"999025652093030400","isDelete":false,"createTime":"2024-06-14 16:12:22","updateTime":"2024-06-14 16:12:22","event":null,"siteActivityId":"998286299716784128","userId":"969659763816271872","validTime":10,"genderCode":0,"startTime":"2024-06-14 16:12:22","endTime":"2024-06-15 02:12:22","status":0},"assistingNumber":5,"quantityAssisted":1,"assistingUserVos":[{"userId":"986635834872696832","nickName":"嘉宾3号","avatarUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/205520361E10C43.png"}],"couldHelp":0,"userVo":{"userId":"969659763816271872","nickName":"我迪迦在黑龙江","avatarUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/f1fb686bf354b37736f32373038a08ba.jpg"}}} ${reps} = <Response [200]> ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${file} D:\\LYL\\Study\\Robot_framework\\space\\Dating-agency\\1-Applet\\6-Activity\\phone.txt Returns the contents of a specified file. Getting file '<a href="file://D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\6-Activity\phone.txt">D:\LYL\Study\Robot_framework\space\Dating-agency\1-Applet\6-Activity\phone.txt</a>'. ${file} = 手机号 15014242835 ${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} = 15014242835 ${id} ${content} 15014242835 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['15014242835'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['15014242835'] ${userid_list} Returns a list containing given items. ${userid_list} = [] ${Cheader_list} Returns a list containing given items. ${Cheader_list} = [] ${Aheader_list} Returns a list containing given items. ${Aheader_list} = [] ${phoneList} Returns a list containing given items. ${phoneList} = [] ${account} @{id} 15014242835 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":"15014242835", "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":"15014242835", "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, 14 Jun 2024 08:15:00 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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==","userId":"978668013433786368"}} ${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 978668013433786368 ${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==','X-Organization-Id':'96... ${login_header} Logs the given message with the given level. {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==','X-Organization-Id':'963432943739605555'} ${client_header} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT ${token}'} Returns the given values which can then be assigned to a variables. ${client_header} = {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw=='} ${userid_list} ${userId} Adds ``values`` to the end of ``list``. ${Cheader_list} ${client_header} Adds ``values`` to the end of ``list``. ${Aheader_list} ${login_header} Adds ``values`` to the end of ``list``. ${phoneList} ${account} Adds ``values`` to the end of ``list``. ${code}==0 Should Be Equal As Strings ${message} successful ELSE Should Be Equal As Strings ${message} 验证码错误或无效验证码,请重试! Runs the given keyword with the given arguments, if ``condition`` is true. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${phoneList} Makes a variable available globally in all tests and suites. ${phoneList} = ['15014242835'] ${userid_list} Makes a variable available globally in all tests and suites. ${userid_list} = ['978668013433786368'] ${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==','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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw=='}"] ${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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==','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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 978668013433786368 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==','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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==', '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=978668013433786368 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668013433786368 path_url=/dating-agency-uec/user/list/own-organization?userId=978668013433786368 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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==', '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.01 ISO-8859-5 Bulgairan confidence = 0.0 windows-1251 Bulgarian confidence = 0.0 TIS-620 Thai confidence = 0.0 ISO-8859-9 Turkish confidence = 0.2794564987311486 windows-1255 Hebrew confidence = 0.0 windows-1255 Hebrew confidence = 0.01 windows-1255 Hebrew confidence = 0.01 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=978668013433786368 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:15:00 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': '趣招亲'}] ${matchmakerFlagList} Returns a list containing given items. ${matchmakerFlagList} = [] ${admin_header} @{Aheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==','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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-uec/user/get/base-info Sends a GET request on a previously created HTTP Session. Starting new HTTP connection (1): dating-agency-api-test.qniao.cn http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-uec/user/get/base-info HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info path_url=/dating-agency-uec/user/get/base-info headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==', 'X-Organization-Id': '963432943739605555'} body=None utf-8 confidence = 0.9690625 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.12287515576985893 IBM866 Russian confidence = 0.1820372678071984 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.41600535235170244 windows-1255 Hebrew confidence = 0.0 windows-1255 Hebrew confidence = 0.01 windows-1255 Hebrew confidence = 0.01 utf-8 confidence = 0.9690625 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/get/base-info status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:15:00 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'} body={"code":0,"message":"successful","data":{"userId":"978668013433786368","realName":"就是不吃饭","nickName":null,"phone":"15014242835","matchmakerFlag":false}} ${reps} = <Response [200]> ${phone} ${reps.json()['data']} phone Returns a value from the given ``dictionary`` based on the given ``key``. ${phone} = 15014242835 ${matchmakerFlag} ${reps.json()['data']} matchmakerFlag Returns a value from the given ``dictionary`` based on the given ``key``. ${matchmakerFlag} = False ${matchmakerFlagList} ${matchmakerFlag} Adds ``values`` to the end of ``list``. ${phone} Makes a variable available globally in all tests and suites. ${phone} = 15014242835 ${matchmakerFlag} Makes a variable available globally in all tests and suites. ${matchmakerFlag} = False ${matchmakerFlagList} Makes a variable available globally in all tests and suites. ${matchmakerFlagList} = [False] ${client_header} @{Cheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw=='} 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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} {"openedAssistanceId":"${openedAssistanceId}"} Returns the given values which can then be assigned to a variables. ${data} = {"openedAssistanceId":"999025652093030400"} ${reps} dating dating-agency-service/user/assistance/participant ${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/assistance/participant HTTP/1.1" 200 None POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/assistance/participant path_url=/dating-agency-service/user/assistance/participant 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/g6O5DXHixyNrf7tsI4LxersKwPpHkSDpywNbFdaZ2M//s9WT4u/BUqpkUOIFO8l2XNeXpUkajPjgDxrw==', 'Content-Length': '43'} body=b'{"openedAssistanceId":"999025652093030400"}' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/assistance/participant status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 14 Jun 2024 08:15:00 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]> ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> All Tests Dating-agency Dating-agency.0-Login Dating-agency.0-Login.Login-interface Dating-agency.1-Applet Dating-agency.1-Applet.6-Activity Dating-agency.1-Applet.6-Activity.Avtivity