${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} = 手机号
15014242835
${skip-line}
1
Returns the given values which can then be assigned to a variables.
${skip-line} = 1
${lines}
-1
Returns the given values which can then be assigned to a variables.
${lines} = -1
${content}
${file}
${skip-line}
${lines}
Returns lines of the given ``string`` that contain the ``pattern``.
1 out of 2 lines matched
${content} = 15014242835
${id}
${content}
15014242835
${id}
${id}
\n
Splits the ``string`` using ``separator`` as a delimiter string.
${id} = ['15014242835']
${id}
Makes a variable available globally in all tests and suites.
${id} = ['15014242835']
${userid_list}
Returns a list containing given items.
${userid_list} = []
${Cheader_list}
Returns a list containing given items.
${Cheader_list} = []
${Aheader_list}
Returns a list containing given items.
${Aheader_list} = []
${account}
@{id}
15014242835
Helper for quickly disabling all urllib3 warnings.
dating
${${dating}.dating域名}
${${dating}.AHeader}
Create Session: create a HTTP session to a server
Creating Session using : alias=dating, url=http://dating-agency-api-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
{ \ \ "account":"${account}", \ \ "accountType":2, \ \ "captcha":888888 }
Returns the given values which can then be assigned to a variables.
${data} = { "account":"15014242835", "accountType":2, "captcha":888888 }
${reps}
dating
/dating-agency-uec/authorize/by-captcha
${data.encode('utf-8')}
Sends a POST request on a previously created HTTP Session.
Starting new HTTP connection (1): dating-agency-api-test.qniao.cn
http://dating-agency-api-test.qniao.cn:80 "POST /dating-agency-uec/authorize/by-captcha HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
path_url=/dating-agency-uec/authorize/by-captcha
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Content-Length': '68'}
body=b'{ "account":"15014242835", "accountType":2, "captcha":888888 }'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/authorize/by-captcha
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 02:58:35 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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==","userId":"964927709455192064"}}
${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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==
${userId}
${reps.json()['data']}
userId
Returns a value from the given ``dictionary`` based on the given ``key``.
${userId} = 964927709455192064
${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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==','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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw=='}
${userid_list}
${userId}
Adds ``values`` to the end of ``list``.
${Cheader_list}
${client_header}
Adds ``values`` to the end of ``list``.
${Aheader_list}
${login_header}
Adds ``values`` to the end of ``list``.
${code}==0
Should Be Equal As Strings
${message}
successful
ELSE
Should Be Equal As Strings
${message}
验证码错误或无效验证码,请重试!
Runs the given keyword with the given arguments, if ``condition`` is true.
${message}
successful
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'str'>
<class 'str'>
${phone}
${account}
Returns the given values which can then be assigned to a variables.
${phone} = 15014242835
${phone}
Makes a variable available globally in all tests and suites.
${phone} = 15014242835
${userid_list}
Makes a variable available globally in all tests and suites.
${userid_list} = ['964927709455192064']
${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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==','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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw=='}"]
${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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==','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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw=='}
${Aheader}
Returns a list containing given items.
${Aheader} = []
${userId}
${login_header}
${userid_list}
${Aheader_list}
964927709455192064
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==','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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', '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=964927709455192064 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=964927709455192064
path_url=/dating-agency-uec/user/list/own-organization?userId=964927709455192064
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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', 'X-Organization-Id': '963432943739605555'}
body=None
utf-8 confidence = 0.99
SHIFT_JIS Japanese confidence = 0.01
EUC-JP Japanese confidence = 0.01
GB2312 Chinese confidence = 0.01
EUC-KR Korean confidence = 0.01
CP949 Korean confidence = 0.01
Big5 Chinese confidence = 0.01
EUC-TW Taiwan confidence = 0.01
windows-1251 Russian confidence = 0.01
KOI8-R Russian confidence = 0.01
ISO-8859-5 Russian confidence = 0.0
MacCyrillic Russian confidence = 0.0
IBM866 Russian confidence = 0.0
IBM855 Russian confidence = 0.0
ISO-8859-7 Greek confidence = 0.0
windows-1253 Greek confidence = 0.0
ISO-8859-5 Bulgairan confidence = 0.0
windows-1251 Bulgarian confidence = 0.01
TIS-620 Thai confidence = 0.0
ISO-8859-9 Turkish confidence = 0.2794564987311486
windows-1255 Hebrew confidence = 0.0
windows-1255 Hebrew confidence = 0.0
windows-1255 Hebrew confidence = 0.0
utf-8 confidence = 0.99
SHIFT_JIS Japanese confidence = 0.01
EUC-JP Japanese confidence = 0.01
GB2312 Chinese confidence = 0.01
EUC-KR Korean confidence = 0.01
CP949 Korean confidence = 0.01
Big5 Chinese confidence = 0.01
EUC-TW Taiwan confidence = 0.01
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/list/own-organization?userId=964927709455192064
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 02:58:35 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":[{"orgId":"963432943739605555","fullName":"寻找伴侣","shortName":"寻伴"}]}
${reps} = <Response [200]>
${data}
${reps.json()}
data
Returns a value from the given ``dictionary`` based on the given ``key``.
${data} = [{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}]
${message}
${reps.json()}
message
Returns a value from the given ``dictionary`` based on the given ``key``.
${message} = successful
${message}
successful
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'str'>
<class 'str'>
${data}==[]
log
未获取到组织信息!
ELSE
log
${data}
Runs the given keyword with the given arguments, if ``condition`` is true.
${data}
Logs the given message with the given level.
[{'orgId': '963432943739605555', 'fullName': '寻找伴侣', 'shortName': '寻伴'}]
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==','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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', '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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', 'X-Organization-Id': '963432943739605555'}
body=None
utf-8 confidence = 0.9690625
SHIFT_JIS Japanese confidence = 0.01
EUC-JP Japanese confidence = 0.01
GB2312 Chinese confidence = 0.01
EUC-KR Korean confidence = 0.01
CP949 Korean confidence = 0.01
Big5 Chinese confidence = 0.01
EUC-TW Taiwan confidence = 0.01
windows-1251 Russian confidence = 0.01
KOI8-R Russian confidence = 0.01
ISO-8859-5 Russian confidence = 0.0
MacCyrillic Russian confidence = 0.12287515576985893
IBM866 Russian confidence = 0.1820372678071984
IBM855 Russian confidence = 0.0
ISO-8859-7 Greek confidence = 0.0
windows-1253 Greek confidence = 0.0
ISO-8859-5 Bulgairan confidence = 0.0
windows-1251 Bulgarian confidence = 0.01
TIS-620 Thai confidence = 0.0
ISO-8859-9 Turkish confidence = 0.41600535235170244
windows-1255 Hebrew confidence = 0.0
windows-1255 Hebrew confidence = 0.01
windows-1255 Hebrew confidence = 0.01
utf-8 confidence = 0.9690625
SHIFT_JIS Japanese confidence = 0.01
EUC-JP Japanese confidence = 0.01
GB2312 Chinese confidence = 0.01
EUC-KR Korean confidence = 0.01
CP949 Korean confidence = 0.01
Big5 Chinese confidence = 0.01
EUC-TW Taiwan confidence = 0.01
GET Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-uec/user/get/base-info
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 02:58:35 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":"964927709455192064","realName":"就是不吃饭","nickName":null,"phone":"15014242835","matchmakerFlag":false}}
${reps} = <Response [200]>
${phone}
${reps.json()['data']}
phone
Returns a value from the given ``dictionary`` based on the given ``key``.
${phone} = 15014242835
${matchmakerFlag}
${reps.json()['data']}
matchmakerFlag
Returns a value from the given ``dictionary`` based on the given ``key``.
${matchmakerFlag} = False
${phone}
Makes a variable available globally in all tests and suites.
${phone} = 15014242835
${matchmakerFlag}
Makes a variable available globally in all tests and suites.
${matchmakerFlag} = False
接口:短信验证码登录认证
用户登录婚介平台
${EXECDIR}\\DA_data.yaml
Imports a variable file with the given path and optional arguments.
${admin_header}
@{Aheader_list}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==','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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${reps}
dating
dating-agency-mall/user/page/product/by/operator
params=pageSize=10&pageNum=1
Sends a GET request on a previously created HTTP Session.
Starting new HTTP connection (1): dating-agency-api-test.qniao.cn
http://dating-agency-api-test.qniao.cn:80 "GET /dating-agency-mall/user/page/product/by/operator?pageSize=10&pageNum=1 HTTP/1.1" 200 None
GET Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-mall/user/page/product/by/operator?pageSize=10&pageNum=1
path_url=/dating-agency-mall/user/page/product/by/operator?pageSize=10&pageNum=1
headers={'User-Agent': 'python-requests/2.15.1', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '50325897884795881', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', 'X-Organization-Id': '963432943739605555'}
body=None
utf-8 confidence = 0.99
SHIFT_JIS Japanese confidence = 0.01
EUC-JP Japanese confidence = 0.01
GB2312 Chinese confidence = 0.01
EUC-KR Korean confidence = 0.01
CP949 Korean confidence = 0.01
Big5 Chinese confidence = 0.01
EUC-TW Taiwan confidence = 0.01
windows-1251 Russian confidence = 0.01
KOI8-R Russian confidence = 0.01
ISO-8859-5 Russian confidence = 0.0
MacCyrillic Russian confidence = 0.0
IBM866 Russian confidence = 0.04285745825723985
IBM855 Russian confidence = 0.038581336112262256
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.1244136915290347
ISO-8859-9 Turkish confidence = 0.3099787437381887
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-mall/user/page/product/by/operator?pageSize=10&pageNum=1
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 02:58:36 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers'}
body={"code":0,"message":"successful","data":{"records":[{"productId":"975024857609801728","productSpecId":"975024857651744768","mainCategory":1,"subCategory":101,"productTitle":"学历认证","productDesc":"学历认证产品描述","detailDesc":"学历认证详细描述","status":1,"unitOriginalPrice":3370.000,"unitSellingPrice":0.010,"productSpecUnit":102,"validityPeriodValue":"358"},{"productId":"975024858238947328","productSpecId":"975024858276696064","mainCategory":2,"subCategory":201,"productTitle":"头像修改","productDesc":"头像修改产品描述","detailDesc":"头像修改详情描述","status":2,"unitOriginalPrice":1826.000,"unitSellingPrice":0.010,"productSpecUnit":102,"validityPeriodValue":"365"},{"productId":"975024858876481536","productSpecId":"975024858922618880","mainCategory":3,"subCategory":301,"productTitle":"解锁更多人数","productDesc":"解锁更多人数产品描述","detailDesc":"解锁更多人数详情描述","status":2,"unitOriginalPrice":2931.000,"unitSellingPrice":0.010,"productSpecUnit":101,"validityPeriodValue":"116"},{"productId":"975024859484655616","productSpecId":"975024859526598656","mainCategory":3,"subCategory":302,"productTitle":"高级搜索","productDesc":"高级搜索产品描述","detailDesc":"高级搜索详细描述","status":2,"unitOriginalPrice":3573.000,"unitSellingPrice":0.010,"productSpecUnit":102,"validityPeriodValue":"30"},{"productId":"975024860180910080","productSpecId":"975024860218658816","mainCategory":4,"subCategory":401,"productTitle":"线下约见面","productDesc":"线下约见面产品描述","detailDesc":"线下约见面详情描述","status":2,"unitOriginalPrice":637.000,"unitSellingPrice":0.010,"productSpecUnit":102,"validityPeriodValue":"283"},{"productId":"975024860805861376","productSpecId":"975024860843610112","mainCategory":3,"subCategory":501,"productTitle":"聊天卡","productDesc":"聊天卡产品描述","detailDesc":"聊天卡详情描述","status":2,"unitOriginalPrice":1401.000,"unitSellingPrice":1.401,"productSpecUnit":102,"validityPeriodValue":"63"},{"productId":"975024861455978496","productSpecId":"975024861493727232","mainCategory":3,"subCategory":601,"productTitle":"会员","productDesc":"会员产品描述","detailDesc":"会员详细描述","status":1,"unitOriginalPrice":3317.000,"unitSellingPrice":3.317,"productSpecUnit":101,"validityPeriodValue":"1"}],"total":7,"size":10,"current":1,"pages":1}}
${reps} = <Response [200]>
${records}
${reps.json()['data']}
records
Returns a value from the given ``dictionary`` based on the given ``key``.
${records} = [{'productId': '975024857609801728', 'productSpecId': '975024857651744768', 'mainCategory': 1, 'subCategory': 101, 'productTitle': '学历认证', 'productDesc': '学历认证产品描述', 'detailDesc': '学历认证详细描述', 'status'...
${records}
Makes a variable available globally in all tests and suites.
${records} = [{'productId': '975024857609801728', 'productSpecId': '975024857651744768', 'mainCategory': 1, 'subCategory': 101, 'productTitle': '学历认证', 'productDesc': '学历认证产品描述', 'detailDesc': '学历认证详细描述', 'status'...
${productIdList}
Returns a list containing given items.
${productIdList} = []
${productTitleList}
Returns a list containing given items.
${productTitleList} = []
${product}
@{records}
{'productId': '975024857609801728', 'productSpecId': '975024857651744768', 'mainCategory': 1, 'subCategory': 101, 'productTitle': '学历认证', 'productDesc': '学历认证产品描述', 'detailDesc': '学历认证详细描述', 'status':...
${status}
${product}
status
Returns a value from the given ``dictionary`` based on the given ``key``.
${status} = 1
${productId}
${product}
productId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productId} = 975024857609801728
${productTitle}
${product}
productTitle
Returns a value from the given ``dictionary`` based on the given ``key``.
${productTitle} = 学历认证
${productSpecId}
${product}
productSpecId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productSpecId} = 975024857651744768
${productIdList}
${productId}
Adds ``values`` to the end of ``list``.
${productTitleList}
${productTitle}
Adds ``values`` to the end of ``list``.
${status}
Makes a variable available globally in all tests and suites.
${status} = 1
${productId}
Makes a variable available globally in all tests and suites.
${productId} = 975024857609801728
${productTitle}
Makes a variable available globally in all tests and suites.
${productTitle} = 学历认证
${productIdList}
Makes a variable available globally in all tests and suites.
${productIdList} = ['975024857609801728']
${productSpecId}
Makes a variable available globally in all tests and suites.
${productSpecId} = 975024857651744768
${productTitleList}
Makes a variable available globally in all tests and suites.
${productTitleList} = ['学历认证']
{'productId': '975024858238947328', 'productSpecId': '975024858276696064', 'mainCategory': 2, 'subCategory': 201, 'productTitle': '头像修改', 'productDesc': '头像修改产品描述', 'detailDesc': '头像修改详情描述', 'status':...
${status}
${product}
status
Returns a value from the given ``dictionary`` based on the given ``key``.
${status} = 2
${productId}
${product}
productId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productId} = 975024858238947328
${productTitle}
${product}
productTitle
Returns a value from the given ``dictionary`` based on the given ``key``.
${productTitle} = 头像修改
${productSpecId}
${product}
productSpecId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productSpecId} = 975024858276696064
${productIdList}
${productId}
Adds ``values`` to the end of ``list``.
${productTitleList}
${productTitle}
Adds ``values`` to the end of ``list``.
${status}
Makes a variable available globally in all tests and suites.
${status} = 2
${productId}
Makes a variable available globally in all tests and suites.
${productId} = 975024858238947328
${productTitle}
Makes a variable available globally in all tests and suites.
${productTitle} = 头像修改
${productIdList}
Makes a variable available globally in all tests and suites.
${productIdList} = ['975024857609801728', '975024858238947328']
${productSpecId}
Makes a variable available globally in all tests and suites.
${productSpecId} = 975024858276696064
${productTitleList}
Makes a variable available globally in all tests and suites.
${productTitleList} = ['学历认证', '头像修改']
{'productId': '975024858876481536', 'productSpecId': '975024858922618880', 'mainCategory': 3, 'subCategory': 301, 'productTitle': '解锁更多人数', 'productDesc': '解锁更多人数产品描述', 'detailDesc': '解锁更多人数详情描述', 'st...
${status}
${product}
status
Returns a value from the given ``dictionary`` based on the given ``key``.
${status} = 2
${productId}
${product}
productId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productId} = 975024858876481536
${productTitle}
${product}
productTitle
Returns a value from the given ``dictionary`` based on the given ``key``.
${productTitle} = 解锁更多人数
${productSpecId}
${product}
productSpecId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productSpecId} = 975024858922618880
${productIdList}
${productId}
Adds ``values`` to the end of ``list``.
${productTitleList}
${productTitle}
Adds ``values`` to the end of ``list``.
${status}
Makes a variable available globally in all tests and suites.
${status} = 2
${productId}
Makes a variable available globally in all tests and suites.
${productId} = 975024858876481536
${productTitle}
Makes a variable available globally in all tests and suites.
${productTitle} = 解锁更多人数
${productIdList}
Makes a variable available globally in all tests and suites.
${productIdList} = ['975024857609801728', '975024858238947328', '975024858876481536']
${productSpecId}
Makes a variable available globally in all tests and suites.
${productSpecId} = 975024858922618880
${productTitleList}
Makes a variable available globally in all tests and suites.
${productTitleList} = ['学历认证', '头像修改', '解锁更多人数']
{'productId': '975024859484655616', 'productSpecId': '975024859526598656', 'mainCategory': 3, 'subCategory': 302, 'productTitle': '高级搜索', 'productDesc': '高级搜索产品描述', 'detailDesc': '高级搜索详细描述', 'status':...
${status}
${product}
status
Returns a value from the given ``dictionary`` based on the given ``key``.
${status} = 2
${productId}
${product}
productId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productId} = 975024859484655616
${productTitle}
${product}
productTitle
Returns a value from the given ``dictionary`` based on the given ``key``.
${productTitle} = 高级搜索
${productSpecId}
${product}
productSpecId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productSpecId} = 975024859526598656
${productIdList}
${productId}
Adds ``values`` to the end of ``list``.
${productTitleList}
${productTitle}
Adds ``values`` to the end of ``list``.
${status}
Makes a variable available globally in all tests and suites.
${status} = 2
${productId}
Makes a variable available globally in all tests and suites.
${productId} = 975024859484655616
${productTitle}
Makes a variable available globally in all tests and suites.
${productTitle} = 高级搜索
${productIdList}
Makes a variable available globally in all tests and suites.
${productIdList} = ['975024857609801728', '975024858238947328', '975024858876481536', '975024859484655616']
${productSpecId}
Makes a variable available globally in all tests and suites.
${productSpecId} = 975024859526598656
${productTitleList}
Makes a variable available globally in all tests and suites.
${productTitleList} = ['学历认证', '头像修改', '解锁更多人数', '高级搜索']
{'productId': '975024860180910080', 'productSpecId': '975024860218658816', 'mainCategory': 4, 'subCategory': 401, 'productTitle': '线下约见面', 'productDesc': '线下约见面产品描述', 'detailDesc': '线下约见面详情描述', 'statu...
${status}
${product}
status
Returns a value from the given ``dictionary`` based on the given ``key``.
${status} = 2
${productId}
${product}
productId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productId} = 975024860180910080
${productTitle}
${product}
productTitle
Returns a value from the given ``dictionary`` based on the given ``key``.
${productTitle} = 线下约见面
${productSpecId}
${product}
productSpecId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productSpecId} = 975024860218658816
${productIdList}
${productId}
Adds ``values`` to the end of ``list``.
${productTitleList}
${productTitle}
Adds ``values`` to the end of ``list``.
${status}
Makes a variable available globally in all tests and suites.
${status} = 2
${productId}
Makes a variable available globally in all tests and suites.
${productId} = 975024860180910080
${productTitle}
Makes a variable available globally in all tests and suites.
${productTitle} = 线下约见面
${productIdList}
Makes a variable available globally in all tests and suites.
${productIdList} = ['975024857609801728', '975024858238947328', '975024858876481536', '975024859484655616', '975024860180910080']
${productSpecId}
Makes a variable available globally in all tests and suites.
${productSpecId} = 975024860218658816
${productTitleList}
Makes a variable available globally in all tests and suites.
${productTitleList} = ['学历认证', '头像修改', '解锁更多人数', '高级搜索', '线下约见面']
{'productId': '975024860805861376', 'productSpecId': '975024860843610112', 'mainCategory': 3, 'subCategory': 501, 'productTitle': '聊天卡', 'productDesc': '聊天卡产品描述', 'detailDesc': '聊天卡详情描述', 'status': 2,...
${status}
${product}
status
Returns a value from the given ``dictionary`` based on the given ``key``.
${status} = 2
${productId}
${product}
productId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productId} = 975024860805861376
${productTitle}
${product}
productTitle
Returns a value from the given ``dictionary`` based on the given ``key``.
${productTitle} = 聊天卡
${productSpecId}
${product}
productSpecId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productSpecId} = 975024860843610112
${productIdList}
${productId}
Adds ``values`` to the end of ``list``.
${productTitleList}
${productTitle}
Adds ``values`` to the end of ``list``.
${status}
Makes a variable available globally in all tests and suites.
${status} = 2
${productId}
Makes a variable available globally in all tests and suites.
${productId} = 975024860805861376
${productTitle}
Makes a variable available globally in all tests and suites.
${productTitle} = 聊天卡
${productIdList}
Makes a variable available globally in all tests and suites.
${productIdList} = ['975024857609801728', '975024858238947328', '975024858876481536', '975024859484655616', '975024860180910080', '975024860805861376']
${productSpecId}
Makes a variable available globally in all tests and suites.
${productSpecId} = 975024860843610112
${productTitleList}
Makes a variable available globally in all tests and suites.
${productTitleList} = ['学历认证', '头像修改', '解锁更多人数', '高级搜索', '线下约见面', '聊天卡']
{'productId': '975024861455978496', 'productSpecId': '975024861493727232', 'mainCategory': 3, 'subCategory': 601, 'productTitle': '会员', 'productDesc': '会员产品描述', 'detailDesc': '会员详细描述', 'status': 1, 'u...
${status}
${product}
status
Returns a value from the given ``dictionary`` based on the given ``key``.
${status} = 1
${productId}
${product}
productId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productId} = 975024861455978496
${productTitle}
${product}
productTitle
Returns a value from the given ``dictionary`` based on the given ``key``.
${productTitle} = 会员
${productSpecId}
${product}
productSpecId
Returns a value from the given ``dictionary`` based on the given ``key``.
${productSpecId} = 975024861493727232
${productIdList}
${productId}
Adds ``values`` to the end of ``list``.
${productTitleList}
${productTitle}
Adds ``values`` to the end of ``list``.
${status}
Makes a variable available globally in all tests and suites.
${status} = 1
${productId}
Makes a variable available globally in all tests and suites.
${productId} = 975024861455978496
${productTitle}
Makes a variable available globally in all tests and suites.
${productTitle} = 会员
${productIdList}
Makes a variable available globally in all tests and suites.
${productIdList} = ['975024857609801728', '975024858238947328', '975024858876481536', '975024859484655616', '975024860180910080', '975024860805861376', '975024861455978496']
${productSpecId}
Makes a variable available globally in all tests and suites.
${productSpecId} = 975024861493727232
${productTitleList}
Makes a variable available globally in all tests and suites.
${productTitleList} = ['学历认证', '头像修改', '解锁更多人数', '高级搜索', '线下约见面', '聊天卡', '会员']
${admin_header}
${productId}
${Aheader_list}
${productIdList}
{'Content-Type':'application/json','X-APP-ID':'50325897884795881','Authorization':'QNT iHP4V/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==','X-Organization-Id':'96...
975024857609801728
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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', 'X-Organization-Id': '963432943739605555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creating session: dating
${data}
{"productId":"${productId}","status":1}
Returns the given values which can then be assigned to a variables.
${data} = {"productId":"975024857609801728","status":1}
${reps}
dating
dating-agency-mall/user/operate/product
${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-mall/user/operate/product HTTP/1.1" 200 None
POST Request : url=http://dating-agency-api-test.qniao.cn/dating-agency-mall/user/operate/product
path_url=/dating-agency-mall/user/operate/product
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/g6O5DXHixyNrf7tnckMaIWNh8yNuItJ+GuXniqogySpoEym+Vdxbt7KDAokpxi5DAOUzRHJkIUYCrqzw==', 'X-Organization-Id': '963432943739605555', 'Content-Length': '45'}
body=b'{"productId":"975024857609801728","status":1}'
POST Response : url=http://dating-agency-api-test.qniao.cn/dating-agency-mall/user/operate/product
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Tue, 09 Apr 2024 02:58:36 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":null}
${reps} = <Response [200]>
${message}
${reps.json()}
message
Returns a value from the given ``dictionary`` based on the given ``key``.
${message} = successful
${message}
successful
Fails if objects are unequal after converting them to strings.
Argument types are:
<class 'str'>
<class 'str'>
All Tests
Dating-agency
Dating-agency.0-Login
Dating-agency.0-Login.Login-interface
Dating-agency.2-Web
Dating-agency.2-Web.Mall
Dating-agency.2-Web.Mall.Product