${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} = 手机号 13448902715 13525397706 ${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``. 2 out of 3 lines matched ${content} = 13448902715 13525397706 ${id} ${content} 13448902715 13525397706 ${id} ${id} \n Splits the ``string`` using ``separator`` as a delimiter string. ${id} = ['13448902715', '13525397706'] ${id} Makes a variable available globally in all tests and suites. ${id} = ['13448902715', '13525397706'] ${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} 13448902715 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":"13448902715", "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":"13448902715", "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': 'Sat, 20 Apr 2024 04:08:24 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==","userId":"978668893159690240"}} ${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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 978668893159690240 ${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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==','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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} ${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'> 13525397706 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":"13525397706", "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":"13525397706", "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': 'Sat, 20 Apr 2024 04:08:24 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==","userId":"978668872108478464"}} ${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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw== ${userId} ${reps.json()['data']} userId Returns a value from the given ``dictionary`` based on the given ``key``. ${userId} = 978668872108478464 ${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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==','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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} ${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} = ['13448902715', '13525397706'] ${userid_list} Makes a variable available globally in all tests and suites. ${userid_list} = ['978668893159690240', '978668872108478464'] ${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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==','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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='}", "{'Content-Type':'... ${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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==','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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} ${Aheader} Returns a list containing given items. ${Aheader} = [] ${userId} ${login_header} ${userid_list} ${Aheader_list} 978668893159690240 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==','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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==', '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=978668893159690240 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668893159690240 path_url=/dating-agency-uec/user/list/own-organization?userId=978668893159690240 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668893159690240 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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. 未获取到组织信息! 978668872108478464 {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==','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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==', '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=978668872108478464 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668872108478464 path_url=/dating-agency-uec/user/list/own-organization?userId=978668872108478464 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==', 'X-Organization-Id': '963432943739605555'} body=None GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=978668872108478464 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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. 未获取到组织信息! ${admin_header} @{Aheader_list} {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==','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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==', '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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==', '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': 'Sat, 20 Apr 2024 04:08:25 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":"978668893159690240","realName":null,"nickName":null,"phone":"13448902715","matchmakerFlag":false}} ${reps} = <Response [200]> ${phone} ${reps.json()['data']} phone Returns a value from the given ``dictionary`` based on the given ``key``. ${phone} = 13448902715 ${matchmakerFlag} ${reps.json()['data']} matchmakerFlag Returns a value from the given ``dictionary`` based on the given ``key``. ${matchmakerFlag} = False {'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==','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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==', '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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==', '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': 'Sat, 20 Apr 2024 04:08:25 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":"978668872108478464","realName":null,"nickName":null,"phone":"13525397706","matchmakerFlag":false}} ${reps} = <Response [200]> ${phone} ${reps.json()['data']} phone Returns a value from the given ``dictionary`` based on the given ``key``. ${phone} = 13525397706 ${matchmakerFlag} ${reps.json()['data']} matchmakerFlag Returns a value from the given ``dictionary`` based on the given ``key``. ${matchmakerFlag} = False ${phone} Makes a variable available globally in all tests and suites. ${phone} = 13525397706 ${matchmakerFlag} Makes a variable available globally in all tests and suites. ${matchmakerFlag} = 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} = [] ${userId} ${client_header} ${userid_list} ${Cheader_list} 978668893159690240 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='}, 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=978668893159690240 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=978668893159690240 path_url=/dating-agency-service/user/get/marriage/information/details?userId=978668893159690240 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 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.06233323997387445 IBM855 Russian confidence = 0.15432015721687364 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.031048402457021194 ISO-8859-9 Turkish confidence = 0.3945387191932284 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=978668893159690240 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":"978733730317340672","isDelete":false,"createTime":"2024-04-19 16:19:30","updateTime":null,"event":null,"accountId":null,"userId":null,"nickName":"可乐无糖加冰","name":null,"profilePhoto":null,"identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440113,"cityName":"广州市","districtCode":440113,"districtName":"番禺区","birthYear":"2004","birthDate":null,"constellationCode":6,"constellation":"巨蟹座","chineseZodiacCode":null,"chineseZodiac":null,"height":141,"weight":null,"educationCode":0,"education":"高中及以下","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","diplomaVerificationCode":"242346791016784009","describeInfo":null,"identityType":2,"identityTypeName":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":1,"nation":"汉族","bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":0,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":{"id":"978739372855791616","isDelete":null,"createTime":"2024-04-19 16:41:56","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/80d9c390581014ea327efabc749cf042.jpg","auditImgId":null,"auditStatus":0},"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":44}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} id Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 978733730317340672 ${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} = 1 ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${miId_list} ${miId} Adds ``values`` to the end of ``list``. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${miId_list} Makes a variable available globally in all tests and suites. ${miId_list} = ['978733730317340672'] ${nickName} Makes a variable available globally in all tests and suites. ${nickName} = 可乐无糖加冰 ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 1 ${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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 978668872108478464 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, 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=978668872108478464 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=978668872108478464 path_url=/dating-agency-service/user/get/marriage/information/details?userId=978668872108478464 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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.018110850623675352 IBM866 Russian confidence = 0.05456474226363727 IBM855 Russian confidence = 0.10318973029768515 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.03712441076563591 ISO-8859-9 Turkish confidence = 0.3897179068631823 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=978668872108478464 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":"978733732204777472","isDelete":false,"createTime":"2024-04-19 16:19:31","updateTime":null,"event":null,"accountId":null,"userId":null,"nickName":"牛仔","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/509b08c2ae6f1291d750bfae96a60a44.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440111,"cityName":"广州市","districtCode":440111,"districtName":"白云区","birthYear":"2004","birthDate":null,"constellationCode":7,"constellation":"狮子座","chineseZodiacCode":null,"chineseZodiac":null,"height":140,"weight":null,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":8001,"maximumIncome":12000,"incomeCode":3,"income":"8001~12000","diplomaVerificationCode":"059010366173440746","describeInfo":null,"identityType":0,"identityTypeName":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":1,"nation":"汉族","bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":0,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":59}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} id Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 978733732204777472 ${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} = 1 ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${miId_list} ${miId} Adds ``values`` to the end of ``list``. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${miId_list} Makes a variable available globally in all tests and suites. ${miId_list} = ['978733730317340672', '978733732204777472'] ${nickName} Makes a variable available globally in all tests and suites. ${nickName} = 牛仔 ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 1 ${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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} ${miId} ${client_header} ${miId_list} ${Cheader_list} 978733730317340672 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/income/list 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/income/list HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/income/list path_url=/dating-agency-service/user/get/income/list 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} body=None SHIFT_JIS Japanese prober hit error at byte 70 EUC-JP Japanese prober hit error at byte 69 EUC-KR Korean prober hit error at byte 69 EUC-TW Taiwan prober hit error at byte 68 utf-8 confidence = 0.938125 SHIFT_JIS not active EUC-JP not active GB2312 Chinese confidence = 0.01 EUC-KR not active CP949 Korean confidence = 0.01 Big5 Chinese confidence = 0.01 EUC-TW not active windows-1251 Russian confidence = 0.01 KOI8-R Russian confidence = 0.01 ISO-8859-5 Russian confidence = 0.0 MacCyrillic Russian confidence = 0.01 IBM866 Russian confidence = 0.0 IBM855 Russian confidence = 0.0 ISO-8859-7 Greek confidence = 0.0 windows-1253 Greek confidence = 0.0 ISO-8859-5 Bulgairan confidence = 0.0 windows-1251 Bulgarian confidence = 0.01 TIS-620 Thai confidence = 0.35982121203616346 ISO-8859-9 Turkish confidence = 0.42755994894015487 windows-1255 Hebrew confidence = 0.0 windows-1255 Hebrew confidence = 0.01 windows-1255 Hebrew confidence = 0.01 utf-8 confidence = 0.938125 SHIFT_JIS not active EUC-JP not active GB2312 Chinese confidence = 0.01 EUC-KR not active CP949 Korean confidence = 0.01 Big5 Chinese confidence = 0.01 EUC-TW not active GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/income/list status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":[{"value":0,"desc":"3000以下"},{"value":1,"desc":"3001~5000"},{"value":2,"desc":"5001~8000"},{"value":3,"desc":"8001~12000"},{"value":4,"desc":"12001~20000"},{"value":5,"desc":"20001~50000"},{"value":6,"desc":"50000以上"}]} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = [{'value': 0, 'desc': '3000以下'}, {'value': 1, 'desc': '3001~5000'}, {'value': 2, 'desc': '5001~8000'}, {'value': 3, 'desc': '8001~12000'}, {'value': 4, 'desc': '12001~20000'}, {'value': 5, 'desc': '20... ${incomeData} random.choice(${data}) random Evaluates the given expression in Python and returns the result. ${incomeData} = {'value': 4, 'desc': '12001~20000'} ${income} ${incomeData} desc Returns a value from the given ``dictionary`` based on the given ``key``. ${income} = 12001~20000 ${incomeCode} ${incomeData} value Returns a value from the given ``dictionary`` based on the given ``key``. ${incomeCode} = 4 ${income} Makes a variable available globally in all tests and suites. ${income} = 12001~20000 ${incomeCode} Makes a variable available globally in all tests and suites. ${incomeCode} = 4 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} {"id":"${miId}","income":"${income}","incomeCode":${incomeCode}} Returns the given values which can then be assigned to a variables. ${data} = {"id":"978733730317340672","income":"12001~20000","incomeCode":4} ${reps} dating dating-agency-service/user/save/marriage/Information ${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/marriage/Information HTTP/1.1" 200 None POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information path_url=/dating-agency-service/user/save/marriage/Information 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==', 'Content-Length': '65'} body=b'{"id":"978733730317340672","income":"12001~20000","incomeCode":4}' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":"978733730317340672"} ${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'> 978733732204777472 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/income/list 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/income/list HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/income/list path_url=/dating-agency-service/user/get/income/list 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} body=None SHIFT_JIS Japanese prober hit error at byte 70 EUC-JP Japanese prober hit error at byte 69 EUC-KR Korean prober hit error at byte 69 EUC-TW Taiwan prober hit error at byte 68 utf-8 confidence = 0.938125 SHIFT_JIS not active EUC-JP not active GB2312 Chinese confidence = 0.01 EUC-KR not active CP949 Korean confidence = 0.01 Big5 Chinese confidence = 0.01 EUC-TW not active windows-1251 Russian confidence = 0.01 KOI8-R Russian confidence = 0.01 ISO-8859-5 Russian confidence = 0.0 MacCyrillic Russian confidence = 0.01 IBM866 Russian confidence = 0.0 IBM855 Russian confidence = 0.0 ISO-8859-7 Greek confidence = 0.0 windows-1253 Greek confidence = 0.0 ISO-8859-5 Bulgairan confidence = 0.0 windows-1251 Bulgarian confidence = 0.01 TIS-620 Thai confidence = 0.35982121203616346 ISO-8859-9 Turkish confidence = 0.42755994894015487 windows-1255 Hebrew confidence = 0.0 windows-1255 Hebrew confidence = 0.01 windows-1255 Hebrew confidence = 0.01 utf-8 confidence = 0.938125 SHIFT_JIS not active EUC-JP not active GB2312 Chinese confidence = 0.01 EUC-KR not active CP949 Korean confidence = 0.01 Big5 Chinese confidence = 0.01 EUC-TW not active GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/income/list status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":[{"value":0,"desc":"3000以下"},{"value":1,"desc":"3001~5000"},{"value":2,"desc":"5001~8000"},{"value":3,"desc":"8001~12000"},{"value":4,"desc":"12001~20000"},{"value":5,"desc":"20001~50000"},{"value":6,"desc":"50000以上"}]} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = [{'value': 0, 'desc': '3000以下'}, {'value': 1, 'desc': '3001~5000'}, {'value': 2, 'desc': '5001~8000'}, {'value': 3, 'desc': '8001~12000'}, {'value': 4, 'desc': '12001~20000'}, {'value': 5, 'desc': '20... ${incomeData} random.choice(${data}) random Evaluates the given expression in Python and returns the result. ${incomeData} = {'value': 2, 'desc': '5001~8000'} ${income} ${incomeData} desc Returns a value from the given ``dictionary`` based on the given ``key``. ${income} = 5001~8000 ${incomeCode} ${incomeData} value Returns a value from the given ``dictionary`` based on the given ``key``. ${incomeCode} = 2 ${income} Makes a variable available globally in all tests and suites. ${income} = 5001~8000 ${incomeCode} Makes a variable available globally in all tests and suites. ${incomeCode} = 2 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} {"id":"${miId}","income":"${income}","incomeCode":${incomeCode}} Returns the given values which can then be assigned to a variables. ${data} = {"id":"978733732204777472","income":"5001~8000","incomeCode":2} ${reps} dating dating-agency-service/user/save/marriage/Information ${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/marriage/Information HTTP/1.1" 200 None POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information path_url=/dating-agency-service/user/save/marriage/Information 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==', 'Content-Length': '63'} body=b'{"id":"978733732204777472","income":"5001~8000","incomeCode":2}' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":"978733732204777472"} ${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'> ${miId_list} Returns a list containing given items. ${miId_list} = [] ${userId} ${client_header} ${userid_list} ${Cheader_list} 978668893159690240 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='}, 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=978668893159690240 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=978668893159690240 path_url=/dating-agency-service/user/get/marriage/information/details?userId=978668893159690240 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 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.06233323997387445 IBM855 Russian confidence = 0.15432015721687364 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.031048402457021194 ISO-8859-9 Turkish confidence = 0.3945387191932284 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=978668893159690240 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":"978733730317340672","isDelete":false,"createTime":"2024-04-19 16:19:30","updateTime":null,"event":null,"accountId":null,"userId":null,"nickName":"可乐无糖加冰","name":null,"profilePhoto":null,"identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440113,"cityName":"广州市","districtCode":440113,"districtName":"番禺区","birthYear":"2004","birthDate":null,"constellationCode":6,"constellation":"巨蟹座","chineseZodiacCode":null,"chineseZodiac":null,"height":141,"weight":null,"educationCode":0,"education":"高中及以下","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":12001,"maximumIncome":20000,"incomeCode":4,"income":"12001~20000","diplomaVerificationCode":"242346791016784009","describeInfo":null,"identityType":2,"identityTypeName":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":1,"nation":"汉族","bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":0,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":{"id":"978739372855791616","isDelete":null,"createTime":"2024-04-19 16:41:56","updateTime":null,"event":null,"miId":null,"photoType":0,"photoUrl":"https://dating-agency-test.oss-accelerate.aliyuncs.com/80d9c390581014ea327efabc749cf042.jpg","auditImgId":null,"auditStatus":0},"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":44}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} id Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 978733730317340672 ${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} = 1 ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${miId_list} ${miId} Adds ``values`` to the end of ``list``. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${miId_list} Makes a variable available globally in all tests and suites. ${miId_list} = ['978733730317340672'] ${nickName} Makes a variable available globally in all tests and suites. ${nickName} = 可乐无糖加冰 ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 1 ${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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 978668872108478464 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, 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=978668872108478464 HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/marriage/information/details?userId=978668872108478464 path_url=/dating-agency-service/user/get/marriage/information/details?userId=978668872108478464 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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.018110850623675352 IBM866 Russian confidence = 0.05456474226363727 IBM855 Russian confidence = 0.10318973029768515 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.03712441076563591 ISO-8859-9 Turkish confidence = 0.3897179068631823 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=978668872108478464 status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":"978733732204777472","isDelete":false,"createTime":"2024-04-19 16:19:31","updateTime":null,"event":null,"accountId":null,"userId":null,"nickName":"牛仔","name":null,"profilePhoto":"https://dating-agency-test.oss-accelerate.aliyuncs.com/509b08c2ae6f1291d750bfae96a60a44.jpg","identityCard":null,"genderCode":1,"genderValue":"女","homeCountryCode":null,"homeCountry":null,"provinceCode":440000,"provinceName":"广东省","cityCode":440111,"cityName":"广州市","districtCode":440111,"districtName":"白云区","birthYear":"2004","birthDate":null,"constellationCode":7,"constellation":"狮子座","chineseZodiacCode":null,"chineseZodiac":null,"height":140,"weight":null,"educationCode":3,"education":"大学本科","maritalStatusCode":0,"maritalStatusName":"未婚","minimumIncome":5001,"maximumIncome":8000,"incomeCode":2,"income":"5001~8000","diplomaVerificationCode":"059010366173440746","describeInfo":null,"identityType":0,"identityTypeName":null,"domicilePlaceProvinceCode":null,"domicilePlaceProvinceName":null,"domicilePlaceCityCode":null,"domicilePlaceCityName":null,"nationCode":1,"nation":"汉族","bodilyFormCode":null,"bodilyForm":null,"accountTypeCode":1,"accountTypeName":"农村","nationalityCode":null,"nationality":null,"nativePlaceCode":440000,"nativePlaceName":"广东省","industryCode":null,"industry":null,"occupationCode":null,"occupation":null,"onlyChild":0,"carPurchaseSituationCode":1,"carPurchaseSituation":"已购车","propertyPermitsCode":0,"propertyPermits":"和家人同住","wechatId":null,"hometownProvinceCode":440000,"hometownProvinceName":"广东省","hometownCityCode":440500,"hometownCityName":"汕头市","auditProfilePhoto":null,"photoList":[],"describeAuditStatus":null,"describeAudit":null,"fillSerialNumber":null,"demandMarriage":null,"marriageSeekingContacts":null,"age":null,"meLike":null,"miSessionType":null,"consumeRight":false,"vip":null,"dataScoring":59}} ${reps} = <Response [200]> ${miId} ${reps.json()['data']} id Returns a value from the given ``dictionary`` based on the given ``key``. ${miId} = 978733732204777472 ${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} = 1 ${message} ${reps.json()} message Returns a value from the given ``dictionary`` based on the given ``key``. ${message} = successful ${miId_list} ${miId} Adds ``values`` to the end of ``list``. ${message} successful Fails if objects are unequal after converting them to strings. Argument types are: <class 'str'> <class 'str'> ${miId_list} Makes a variable available globally in all tests and suites. ${miId_list} = ['978733730317340672', '978733732204777472'] ${nickName} Makes a variable available globally in all tests and suites. ${nickName} = 牛仔 ${genderCode} Makes a variable available globally in all tests and suites. ${genderCode} = 1 ${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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} ${miId} ${client_header} ${miId_list} ${Cheader_list} 978733730317340672 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='} 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/occupation/list 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/occupation/list HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/occupation/list path_url=/dating-agency-service/user/get/occupation/list 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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.01517159254432644 IBM866 Russian confidence = 0.08885740689853067 IBM855 Russian confidence = 0.045585567130113906 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.0964301898373406 ISO-8859-9 Turkish confidence = 0.2613377570974015 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/occupation/list status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:25 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":[{"industryCode":1,"industry":"销售","occupationList":[{"occupationCode":1,"occupation":"销售总监"},{"occupationCode":2,"occupation":"销售经理"},{"occupationCode":3,"occupation":"销售主管"},{"occupationCode":4,"occupation":"销售专员"},{"occupationCode":5,"occupation":"渠道/分销管理"},{"occupationCode":6,"occupation":"渠道/分销专员"},{"occupationCode":7,"occupation":"经销商"},{"occupationCode":8,"occupation":"客户经理"},{"occupationCode":9,"occupation":"客户代表"},{"occupationCode":10,"occupation":"销售工程师"}]},{"industryCode":2,"industry":"客户服务","occupationList":[{"occupationCode":11,"occupation":"客服经理"},{"occupationCode":12,"occupation":"客服主管"},{"occupationCode":13,"occupation":"客服专员"},{"occupationCode":14,"occupation":"客服协调"},{"occupationCode":15,"occupation":"客服技术支持"}]},{"industryCode":3,"industry":"互联网/通信","occupationList":[{"occupationCode":16,"occupation":"技术总监"},{"occupationCode":17,"occupation":"技术经理"},{"occupationCode":18,"occupation":"工程师"},{"occupationCode":19,"occupation":"运维人员"},{"occupationCode":20,"occupation":"测试专员"},{"occupationCode":21,"occupation":"运营管理"},{"occupationCode":22,"occupation":"运营专员"},{"occupationCode":23,"occupation":"网页设计"},{"occupationCode":24,"occupation":"产品经理"}]},{"industryCode":4,"industry":"生产制造","occupationList":[{"occupationCode":25,"occupation":"工厂经理"},{"occupationCode":26,"occupation":"工程师"},{"occupationCode":27,"occupation":"项目主管"},{"occupationCode":28,"occupation":"营运经理"},{"occupationCode":29,"occupation":"营运主管"},{"occupationCode":30,"occupation":"车间主任"},{"occupationCode":31,"occupation":"物料管理"},{"occupationCode":32,"occupation":"生产领班"},{"occupationCode":33,"occupation":"操作工人"},{"occupationCode":34,"occupation":"安全管理"}]},{"industryCode":5,"industry":"物流仓储","occupationList":[{"occupationCode":35,"occupation":"物流经理"},{"occupationCode":36,"occupation":"物流主管"},{"occupationCode":37,"occupation":"物流专员"},{"occupationCode":38,"occupation":"仓库经理"},{"occupationCode":39,"occupation":"仓库管理员"},{"occupationCode":40,"occupation":"货运代理"},{"occupationCode":41,"occupation":"海关事务管理"},{"occupationCode":42,"occupation":"报单员"},{"occupationCode":43,"occupation":"快递员"}]},{"industryCode":6,"industry":"商贸/采购","occupationList":[{"occupationCode":44,"occupation":"商务经理"},{"occupationCode":45,"occupation":"商务专员"},{"occupationCode":46,"occupation":"采购经理"},{"occupationCode":47,"occupation":"采购专员"},{"occupationCode":48,"occupation":"外贸经理"},{"occupationCode":49,"occupation":"外贸专员"},{"occupationCode":50,"occupation":"业务跟单"},{"occupationCode":51,"occupation":"报关员"}]},{"industryCode":7,"industry":"人事/行政","occupationList":[{"occupationCode":52,"occupation":"人事总监"},{"occupationCode":53,"occupation":"人事经理"},{"occupationCode":54,"occupation":"人事主管"},{"occupationCode":55,"occupation":"人事专员"},{"occupationCode":56,"occupation":"招聘经理"},{"occupationCode":57,"occupation":"招聘专员"},{"occupationCode":58,"occupation":"培训经理"},{"occupationCode":59,"occupation":"培训专员"},{"occupationCode":60,"occupation":"秘书"},{"occupationCode":61,"occupation":"文员"},{"occupationCode":62,"occupation":"后勤"}]},{"industryCode":8,"industry":"高级管理","occupationList":[{"occupationCode":63,"occupation":"总经理"},{"occupationCode":64,"occupation":"副总经理"},{"occupationCode":65,"occupation":"合伙人"},{"occupationCode":66,"occupation":"总监"},{"occupationCode":67,"occupation":"经理"},{"occupationCode":68,"occupation":"总裁助理"}]},{"industryCode":9,"industry":"广告/市场","occupationList":[{"occupationCode":69,"occupation":"广告客户经理"},{"occupationCode":70,"occupation":"广告客户专员"},{"occupationCode":71,"occupation":"广告策划"},{"occupationCode":72,"occupation":"市场营销经理"},{"occupationCode":73,"occupation":"市场营销专员"},{"occupationCode":74,"occupation":"市场策划"},{"occupationCode":75,"occupation":"市场拓展"},{"occupationCode":76,"occupation":"公关经理"},{"occupationCode":77,"occupation":"公关专员"},{"occupationCode":78,"occupation":"媒介经理"},{"occupationCode":79,"occupation":"媒介专员"},{"occupationCode":80,"occupation":"品牌经理"},{"occupationCode":81,"occupation":"品牌专员"}]},{"industryCode":10,"industry":"传媒/艺术","occupationList":[{"occupationCode":82,"occupation":"主编"},{"occupationCode":83,"occupation":"编辑"},{"occupationCode":84,"occupation":"作家"},{"occupationCode":85,"occupation":"撰稿人"},{"occupationCode":86,"occupation":"文案策划"},{"occupationCode":87,"occupation":"出版发行"},{"occupationCode":88,"occupation":"导演"},{"occupationCode":89,"occupation":"记者"},{"occupationCode":90,"occupation":"主持人"},{"occupationCode":91,"occupation":"演员"},{"occupationCode":92,"occupation":"模特"},{"occupationCode":93,"occupation":"经纪人"},{"occupationCode":94,"occupation":"摄影师"},{"occupationCode":95,"occupation":"影视后期制作"},{"occupationCode":96,"occupation":"设计师"},{"occupationCode":97,"occupation":"画家"},{"occupationCode":98,"occupation":"音乐家"},{"occupationCode":99,"occupation":"舞蹈"},{"occupationCode":100,"occupation":"其他"}]},{"industryCode":11,"industry":"生物/制药","occupationList":[{"occupationCode":101,"occupation":"医药研发人员"},{"occupationCode":102,"occupation":"医药代表"},{"occupationCode":103,"occupation":"医药生产人员"},{"occupationCode":104,"occupation":"临床工作人员"},{"occupationCode":105,"occupation":"医疗器械研发"},{"occupationCode":106,"occupation":"医疗器械生产人员"},{"occupationCode":107,"occupation":"医疗器械销售人员"},{"occupationCode":108,"occupation":"药店人员"},{"occupationCode":109,"occupation":"健康顾问"},{"occupationCode":110,"occupation":"口腔医师"},{"occupationCode":111,"occupation":"其他"}]},{"industryCode":12,"industry":"建筑/房地产","occupationList":[{"occupationCode":123,"occupation":"建筑师"},{"occupationCode":124,"occupation":"工程师"},{"occupationCode":125,"occupation":"规划师"},{"occupationCode":126,"occupation":"房地产策划"},{"occupationCode":127,"occupation":"物业人员"},{"occupationCode":128,"occupation":"其他"}]},{"industryCode":13,"industry":"咨询/顾问","occupationList":[{"occupationCode":129,"occupation":"咨询经理"},{"occupationCode":130,"occupation":"咨询师"},{"occupationCode":131,"occupation":"专业顾问"},{"occupationCode":132,"occupation":"培训师"}]},{"industryCode":14,"industry":"财会/审计","occupationList":[{"occupationCode":138,"occupation":"财务总监"},{"occupationCode":139,"occupation":"财务经理"},{"occupationCode":140,"occupation":"财务主管"},{"occupationCode":141,"occupation":"会计"},{"occupationCode":142,"occupation":"注册会计师"},{"occupationCode":143,"occupation":"审计师"},{"occupationCode":144,"occupation":"税务经理"},{"occupationCode":145,"occupation":"税务专员"},{"occupationCode":146,"occupation":"成本经理"}]},{"industryCode":15,"industry":"教育/科研","occupationList":[{"occupationCode":147,"occupation":"教师"},{"occupationCode":148,"occupation":"讲师/助教"},{"occupationCode":149,"occupation":"中学教师"},{"occupationCode":150,"occupation":"小学教师"},{"occupationCode":151,"occupation":"幼师"},{"occupationCode":152,"occupation":"教务管理人员"},{"occupationCode":153,"occupation":"职业技术教师"},{"occupationCode":154,"occupation":"培训师"},{"occupationCode":155,"occupation":"科研管理人员"},{"occupationCode":156,"occupation":"科研人员"}]},{"industryCode":16,"industry":"服务业","occupationList":[{"occupationCode":157,"occupation":"餐饮管理人员"},{"occupationCode":158,"occupation":"厨师"},{"occupationCode":159,"occupation":"餐饮服务人员"},{"occupationCode":160,"occupation":"酒店管理"},{"occupationCode":161,"occupation":"大堂经理"},{"occupationCode":162,"occupation":"酒店服务人员"},{"occupationCode":163,"occupation":"导游"},{"occupationCode":164,"occupation":"健身教练"},{"occupationCode":165,"occupation":"商场经理"},{"occupationCode":166,"occupation":"零售店长"},{"occupationCode":167,"occupation":"店员"},{"occupationCode":168,"occupation":"保安经理"},{"occupationCode":169,"occupation":"保安人员"},{"occupationCode":170,"occupation":"家政服务"}]},{"industryCode":17,"industry":"交通运输","occupationList":[{"occupationCode":171,"occupation":"飞行员"},{"occupationCode":172,"occupation":"空乘人员"},{"occupationCode":173,"occupation":"地勤人员"},{"occupationCode":174,"occupation":"列车司机"},{"occupationCode":175,"occupation":"乘务员"},{"occupationCode":176,"occupation":"船长"},{"occupationCode":177,"occupation":"船员"},{"occupationCode":178,"occupation":"司机"}]},{"industryCode":18,"industry":"政府机构","occupationList":[{"occupationCode":179,"occupation":"公务员"}]},{"industryCode":19,"industry":"农林牧鱼","occupationList":[{"occupationCode":180,"occupation":"饲养员"},{"occupationCode":181,"occupation":"林业技术员"},{"occupationCode":182,"occupation":"水产养殖技术员"},{"occupationCode":183,"occupation":"兽医"}]},{"industryCode":20,"industry":"其他","occupationList":[{"occupationCode":184,"occupation":"自由职业"},{"occupationCode":185,"occupation":"在校学生"},{"occupationCode":186,"occupation":"待业"}]},{"industryCode":21,"industry":"金融/银行/保险","occupationList":[{"occupationCode":115,"occupation":"银行管理人员"},{"occupationCode":116,"occupation":"银行职员"},{"occupationCode":117,"occupation":"保险管理人员"},{"occupationCode":118,"occupation":"保险职员"},{"occupationCode":119,"occupation":"证券交易员"},{"occupationCode":120,"occupation":"分析师"},{"occupationCode":121,"occupation":"投行业务员"},{"occupationCode":122,"occupation":"基金经理"}]},{"industryCode":22,"industry":"医疗/护理","occupationList":[{"occupationCode":112,"occupation":"医疗管理人员"},{"occupationCode":113,"occupation":"医生"},{"occupationCode":114,"occupation":"药剂师"}]},{"industryCode":23,"industry":"法律","occupationList":[{"occupationCode":133,"occupation":"律师"},{"occupationCode":134,"occupation":"律师助理"},{"occupationCode":135,"occupation":"法务经理"},{"occupationCode":136,"occupation":"法务专员"},{"occupationCode":137,"occupation":"知识产权专员"}]}]} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = [{'industryCode': 1, 'industry': '销售', 'occupationList': [{'occupationCode': 1, 'occupation': '销售总监'}, {'occupationCode': 2, 'occupation': '销售经理'}, {'occupationCode': 3, 'occupation': '销售主管'}, {'occup... ${industryData} random.choice(${data}) random Evaluates the given expression in Python and returns the result. ${industryData} = {'industryCode': 10, 'industry': '传媒/艺术', 'occupationList': [{'occupationCode': 82, 'occupation': '主编'}, {'occupationCode': 83, 'occupation': '编辑'}, {'occupationCode': 84, 'occupation': '作家'}, {'occup... ${industry} ${industryData} industry Returns a value from the given ``dictionary`` based on the given ``key``. ${industry} = 传媒/艺术 ${industryCode} ${industryData} industryCode Returns a value from the given ``dictionary`` based on the given ``key``. ${industryCode} = 10 ${occupationList} ${industryData} occupationList Returns a value from the given ``dictionary`` based on the given ``key``. ${occupationList} = [{'occupationCode': 82, 'occupation': '主编'}, {'occupationCode': 83, 'occupation': '编辑'}, {'occupationCode': 84, 'occupation': '作家'}, {'occupationCode': 85, 'occupation': '撰稿人'}, {'occupationCode': 86,... ${occupationData} random.choice(${occupationList}) random Evaluates the given expression in Python and returns the result. ${occupationData} = {'occupationCode': 86, 'occupation': '文案策划'} ${occupation} ${occupationData} occupation Returns a value from the given ``dictionary`` based on the given ``key``. ${occupation} = 文案策划 ${occupationCode} ${occupationData} occupationCode Returns a value from the given ``dictionary`` based on the given ``key``. ${occupationCode} = 86 ${industry} Makes a variable available globally in all tests and suites. ${industry} = 传媒/艺术 ${occupation} Makes a variable available globally in all tests and suites. ${occupation} = 文案策划 ${industryCode} Makes a variable available globally in all tests and suites. ${industryCode} = 10 ${occupationCode} Makes a variable available globally in all tests and suites. ${occupationCode} = 86 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} { \ \ \ \ "id": "${miId}", \ \ \ \ "industry": "${industry}", \ \ \ \ "industryCode": "${industryCode}", \ \ \ \ "occupation": "${occupation}", \ \ \ \ "occupationCode": "${occupationCode}" } Returns the given values which can then be assigned to a variables. ${data} = { "id": "978733730317340672", "industry": "传媒/艺术", "industryCode": "10", "occupation": "文案策划", "occupationCode": "86" } ${reps} dating dating-agency-service/user/save/marriage/Information ${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/marriage/Information HTTP/1.1" 200 None POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information path_url=/dating-agency-service/user/save/marriage/Information 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/g6O5DXHixyNrf7tpli7lIeDUA1pHOp1oMPsSLiC9mIxudHeUd7YhhEETxoodI2JJaAdgjrTGQ9IYIw3Q==', 'Content-Length': '155'} body=b'{ "id": "978733730317340672", "industry": "\xe4\xbc\xa0\xe5\xaa\x92/\xe8\x89\xba\xe6\x9c\xaf", "industryCode": "10", "occupation": "\xe6\x96\x87\xe6\xa1\x88\xe7\xad\x96\xe5\x88\x92", "occupationCode": "86" }' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:26 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":"978733730317340672"} ${reps} = <Response [200]> 978733732204777472 {'Content-Type':'application/json','X-APP-ID':'50325897884795880','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${reps} dating dating-agency-service/user/get/occupation/list 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/occupation/list HTTP/1.1" 200 None GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/get/occupation/list path_url=/dating-agency-service/user/get/occupation/list 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='} 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.01517159254432644 IBM866 Russian confidence = 0.08885740689853067 IBM855 Russian confidence = 0.045585567130113906 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.0964301898373406 ISO-8859-9 Turkish confidence = 0.2613377570974015 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/occupation/list status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:26 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":[{"industryCode":1,"industry":"销售","occupationList":[{"occupationCode":1,"occupation":"销售总监"},{"occupationCode":2,"occupation":"销售经理"},{"occupationCode":3,"occupation":"销售主管"},{"occupationCode":4,"occupation":"销售专员"},{"occupationCode":5,"occupation":"渠道/分销管理"},{"occupationCode":6,"occupation":"渠道/分销专员"},{"occupationCode":7,"occupation":"经销商"},{"occupationCode":8,"occupation":"客户经理"},{"occupationCode":9,"occupation":"客户代表"},{"occupationCode":10,"occupation":"销售工程师"}]},{"industryCode":2,"industry":"客户服务","occupationList":[{"occupationCode":11,"occupation":"客服经理"},{"occupationCode":12,"occupation":"客服主管"},{"occupationCode":13,"occupation":"客服专员"},{"occupationCode":14,"occupation":"客服协调"},{"occupationCode":15,"occupation":"客服技术支持"}]},{"industryCode":3,"industry":"互联网/通信","occupationList":[{"occupationCode":16,"occupation":"技术总监"},{"occupationCode":17,"occupation":"技术经理"},{"occupationCode":18,"occupation":"工程师"},{"occupationCode":19,"occupation":"运维人员"},{"occupationCode":20,"occupation":"测试专员"},{"occupationCode":21,"occupation":"运营管理"},{"occupationCode":22,"occupation":"运营专员"},{"occupationCode":23,"occupation":"网页设计"},{"occupationCode":24,"occupation":"产品经理"}]},{"industryCode":4,"industry":"生产制造","occupationList":[{"occupationCode":25,"occupation":"工厂经理"},{"occupationCode":26,"occupation":"工程师"},{"occupationCode":27,"occupation":"项目主管"},{"occupationCode":28,"occupation":"营运经理"},{"occupationCode":29,"occupation":"营运主管"},{"occupationCode":30,"occupation":"车间主任"},{"occupationCode":31,"occupation":"物料管理"},{"occupationCode":32,"occupation":"生产领班"},{"occupationCode":33,"occupation":"操作工人"},{"occupationCode":34,"occupation":"安全管理"}]},{"industryCode":5,"industry":"物流仓储","occupationList":[{"occupationCode":35,"occupation":"物流经理"},{"occupationCode":36,"occupation":"物流主管"},{"occupationCode":37,"occupation":"物流专员"},{"occupationCode":38,"occupation":"仓库经理"},{"occupationCode":39,"occupation":"仓库管理员"},{"occupationCode":40,"occupation":"货运代理"},{"occupationCode":41,"occupation":"海关事务管理"},{"occupationCode":42,"occupation":"报单员"},{"occupationCode":43,"occupation":"快递员"}]},{"industryCode":6,"industry":"商贸/采购","occupationList":[{"occupationCode":44,"occupation":"商务经理"},{"occupationCode":45,"occupation":"商务专员"},{"occupationCode":46,"occupation":"采购经理"},{"occupationCode":47,"occupation":"采购专员"},{"occupationCode":48,"occupation":"外贸经理"},{"occupationCode":49,"occupation":"外贸专员"},{"occupationCode":50,"occupation":"业务跟单"},{"occupationCode":51,"occupation":"报关员"}]},{"industryCode":7,"industry":"人事/行政","occupationList":[{"occupationCode":52,"occupation":"人事总监"},{"occupationCode":53,"occupation":"人事经理"},{"occupationCode":54,"occupation":"人事主管"},{"occupationCode":55,"occupation":"人事专员"},{"occupationCode":56,"occupation":"招聘经理"},{"occupationCode":57,"occupation":"招聘专员"},{"occupationCode":58,"occupation":"培训经理"},{"occupationCode":59,"occupation":"培训专员"},{"occupationCode":60,"occupation":"秘书"},{"occupationCode":61,"occupation":"文员"},{"occupationCode":62,"occupation":"后勤"}]},{"industryCode":8,"industry":"高级管理","occupationList":[{"occupationCode":63,"occupation":"总经理"},{"occupationCode":64,"occupation":"副总经理"},{"occupationCode":65,"occupation":"合伙人"},{"occupationCode":66,"occupation":"总监"},{"occupationCode":67,"occupation":"经理"},{"occupationCode":68,"occupation":"总裁助理"}]},{"industryCode":9,"industry":"广告/市场","occupationList":[{"occupationCode":69,"occupation":"广告客户经理"},{"occupationCode":70,"occupation":"广告客户专员"},{"occupationCode":71,"occupation":"广告策划"},{"occupationCode":72,"occupation":"市场营销经理"},{"occupationCode":73,"occupation":"市场营销专员"},{"occupationCode":74,"occupation":"市场策划"},{"occupationCode":75,"occupation":"市场拓展"},{"occupationCode":76,"occupation":"公关经理"},{"occupationCode":77,"occupation":"公关专员"},{"occupationCode":78,"occupation":"媒介经理"},{"occupationCode":79,"occupation":"媒介专员"},{"occupationCode":80,"occupation":"品牌经理"},{"occupationCode":81,"occupation":"品牌专员"}]},{"industryCode":10,"industry":"传媒/艺术","occupationList":[{"occupationCode":82,"occupation":"主编"},{"occupationCode":83,"occupation":"编辑"},{"occupationCode":84,"occupation":"作家"},{"occupationCode":85,"occupation":"撰稿人"},{"occupationCode":86,"occupation":"文案策划"},{"occupationCode":87,"occupation":"出版发行"},{"occupationCode":88,"occupation":"导演"},{"occupationCode":89,"occupation":"记者"},{"occupationCode":90,"occupation":"主持人"},{"occupationCode":91,"occupation":"演员"},{"occupationCode":92,"occupation":"模特"},{"occupationCode":93,"occupation":"经纪人"},{"occupationCode":94,"occupation":"摄影师"},{"occupationCode":95,"occupation":"影视后期制作"},{"occupationCode":96,"occupation":"设计师"},{"occupationCode":97,"occupation":"画家"},{"occupationCode":98,"occupation":"音乐家"},{"occupationCode":99,"occupation":"舞蹈"},{"occupationCode":100,"occupation":"其他"}]},{"industryCode":11,"industry":"生物/制药","occupationList":[{"occupationCode":101,"occupation":"医药研发人员"},{"occupationCode":102,"occupation":"医药代表"},{"occupationCode":103,"occupation":"医药生产人员"},{"occupationCode":104,"occupation":"临床工作人员"},{"occupationCode":105,"occupation":"医疗器械研发"},{"occupationCode":106,"occupation":"医疗器械生产人员"},{"occupationCode":107,"occupation":"医疗器械销售人员"},{"occupationCode":108,"occupation":"药店人员"},{"occupationCode":109,"occupation":"健康顾问"},{"occupationCode":110,"occupation":"口腔医师"},{"occupationCode":111,"occupation":"其他"}]},{"industryCode":12,"industry":"建筑/房地产","occupationList":[{"occupationCode":123,"occupation":"建筑师"},{"occupationCode":124,"occupation":"工程师"},{"occupationCode":125,"occupation":"规划师"},{"occupationCode":126,"occupation":"房地产策划"},{"occupationCode":127,"occupation":"物业人员"},{"occupationCode":128,"occupation":"其他"}]},{"industryCode":13,"industry":"咨询/顾问","occupationList":[{"occupationCode":129,"occupation":"咨询经理"},{"occupationCode":130,"occupation":"咨询师"},{"occupationCode":131,"occupation":"专业顾问"},{"occupationCode":132,"occupation":"培训师"}]},{"industryCode":14,"industry":"财会/审计","occupationList":[{"occupationCode":138,"occupation":"财务总监"},{"occupationCode":139,"occupation":"财务经理"},{"occupationCode":140,"occupation":"财务主管"},{"occupationCode":141,"occupation":"会计"},{"occupationCode":142,"occupation":"注册会计师"},{"occupationCode":143,"occupation":"审计师"},{"occupationCode":144,"occupation":"税务经理"},{"occupationCode":145,"occupation":"税务专员"},{"occupationCode":146,"occupation":"成本经理"}]},{"industryCode":15,"industry":"教育/科研","occupationList":[{"occupationCode":147,"occupation":"教师"},{"occupationCode":148,"occupation":"讲师/助教"},{"occupationCode":149,"occupation":"中学教师"},{"occupationCode":150,"occupation":"小学教师"},{"occupationCode":151,"occupation":"幼师"},{"occupationCode":152,"occupation":"教务管理人员"},{"occupationCode":153,"occupation":"职业技术教师"},{"occupationCode":154,"occupation":"培训师"},{"occupationCode":155,"occupation":"科研管理人员"},{"occupationCode":156,"occupation":"科研人员"}]},{"industryCode":16,"industry":"服务业","occupationList":[{"occupationCode":157,"occupation":"餐饮管理人员"},{"occupationCode":158,"occupation":"厨师"},{"occupationCode":159,"occupation":"餐饮服务人员"},{"occupationCode":160,"occupation":"酒店管理"},{"occupationCode":161,"occupation":"大堂经理"},{"occupationCode":162,"occupation":"酒店服务人员"},{"occupationCode":163,"occupation":"导游"},{"occupationCode":164,"occupation":"健身教练"},{"occupationCode":165,"occupation":"商场经理"},{"occupationCode":166,"occupation":"零售店长"},{"occupationCode":167,"occupation":"店员"},{"occupationCode":168,"occupation":"保安经理"},{"occupationCode":169,"occupation":"保安人员"},{"occupationCode":170,"occupation":"家政服务"}]},{"industryCode":17,"industry":"交通运输","occupationList":[{"occupationCode":171,"occupation":"飞行员"},{"occupationCode":172,"occupation":"空乘人员"},{"occupationCode":173,"occupation":"地勤人员"},{"occupationCode":174,"occupation":"列车司机"},{"occupationCode":175,"occupation":"乘务员"},{"occupationCode":176,"occupation":"船长"},{"occupationCode":177,"occupation":"船员"},{"occupationCode":178,"occupation":"司机"}]},{"industryCode":18,"industry":"政府机构","occupationList":[{"occupationCode":179,"occupation":"公务员"}]},{"industryCode":19,"industry":"农林牧鱼","occupationList":[{"occupationCode":180,"occupation":"饲养员"},{"occupationCode":181,"occupation":"林业技术员"},{"occupationCode":182,"occupation":"水产养殖技术员"},{"occupationCode":183,"occupation":"兽医"}]},{"industryCode":20,"industry":"其他","occupationList":[{"occupationCode":184,"occupation":"自由职业"},{"occupationCode":185,"occupation":"在校学生"},{"occupationCode":186,"occupation":"待业"}]},{"industryCode":21,"industry":"金融/银行/保险","occupationList":[{"occupationCode":115,"occupation":"银行管理人员"},{"occupationCode":116,"occupation":"银行职员"},{"occupationCode":117,"occupation":"保险管理人员"},{"occupationCode":118,"occupation":"保险职员"},{"occupationCode":119,"occupation":"证券交易员"},{"occupationCode":120,"occupation":"分析师"},{"occupationCode":121,"occupation":"投行业务员"},{"occupationCode":122,"occupation":"基金经理"}]},{"industryCode":22,"industry":"医疗/护理","occupationList":[{"occupationCode":112,"occupation":"医疗管理人员"},{"occupationCode":113,"occupation":"医生"},{"occupationCode":114,"occupation":"药剂师"}]},{"industryCode":23,"industry":"法律","occupationList":[{"occupationCode":133,"occupation":"律师"},{"occupationCode":134,"occupation":"律师助理"},{"occupationCode":135,"occupation":"法务经理"},{"occupationCode":136,"occupation":"法务专员"},{"occupationCode":137,"occupation":"知识产权专员"}]}]} ${reps} = <Response [200]> ${data} ${reps.json()} data Returns a value from the given ``dictionary`` based on the given ``key``. ${data} = [{'industryCode': 1, 'industry': '销售', 'occupationList': [{'occupationCode': 1, 'occupation': '销售总监'}, {'occupationCode': 2, 'occupation': '销售经理'}, {'occupationCode': 3, 'occupation': '销售主管'}, {'occup... ${industryData} random.choice(${data}) random Evaluates the given expression in Python and returns the result. ${industryData} = {'industryCode': 9, 'industry': '广告/市场', 'occupationList': [{'occupationCode': 69, 'occupation': '广告客户经理'}, {'occupationCode': 70, 'occupation': '广告客户专员'}, {'occupationCode': 71, 'occupation': '广告策划'}... ${industry} ${industryData} industry Returns a value from the given ``dictionary`` based on the given ``key``. ${industry} = 广告/市场 ${industryCode} ${industryData} industryCode Returns a value from the given ``dictionary`` based on the given ``key``. ${industryCode} = 9 ${occupationList} ${industryData} occupationList Returns a value from the given ``dictionary`` based on the given ``key``. ${occupationList} = [{'occupationCode': 69, 'occupation': '广告客户经理'}, {'occupationCode': 70, 'occupation': '广告客户专员'}, {'occupationCode': 71, 'occupation': '广告策划'}, {'occupationCode': 72, 'occupation': '市场营销经理'}, {'occupat... ${occupationData} random.choice(${occupationList}) random Evaluates the given expression in Python and returns the result. ${occupationData} = {'occupationCode': 81, 'occupation': '品牌专员'} ${occupation} ${occupationData} occupation Returns a value from the given ``dictionary`` based on the given ``key``. ${occupation} = 品牌专员 ${occupationCode} ${occupationData} occupationCode Returns a value from the given ``dictionary`` based on the given ``key``. ${occupationCode} = 81 ${industry} Makes a variable available globally in all tests and suites. ${industry} = 广告/市场 ${occupation} Makes a variable available globally in all tests and suites. ${occupation} = 品牌专员 ${industryCode} Makes a variable available globally in all tests and suites. ${industryCode} = 9 ${occupationCode} Makes a variable available globally in all tests and suites. ${occupationCode} = 81 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 Creating session: dating ${data} { \ \ \ \ "id": "${miId}", \ \ \ \ "industry": "${industry}", \ \ \ \ "industryCode": "${industryCode}", \ \ \ \ "occupation": "${occupation}", \ \ \ \ "occupationCode": "${occupationCode}" } Returns the given values which can then be assigned to a variables. ${data} = { "id": "978733732204777472", "industry": "广告/市场", "industryCode": "9", "occupation": "品牌专员", "occupationCode": "81" } ${reps} dating dating-agency-service/user/save/marriage/Information ${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/marriage/Information HTTP/1.1" 200 None POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information path_url=/dating-agency-service/user/save/marriage/Information 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/g6O5DXHixyNrf7tixT2ojyj8RLurlNUH7IjL409btrshT5wAXnN7ydpwHmYLJdKZJoWEC005jGdH1QCw==', 'Content-Length': '154'} body=b'{ "id": "978733732204777472", "industry": "\xe5\xb9\xbf\xe5\x91\x8a/\xe5\xb8\x82\xe5\x9c\xba", "industryCode": "9", "occupation": "\xe5\x93\x81\xe7\x89\x8c\xe4\xb8\x93\xe5\x91\x98", "occupationCode": "81" }' POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-service/user/save/marriage/Information status=200, reason= headers={'Server': 'nginx/1.16.1', 'Date': 'Sat, 20 Apr 2024 04:08:26 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":"978733732204777472"} ${reps} = <Response [200]> 资料认证 征婚人资料 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