Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953924
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924'}
Create Session: create a HTTP session to a server
ZTBF
https://api-client-uec-test.qniao.cn
${header}
Creating Session using : alias=ZTBF, url=https://api-client-uec-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creates and returns a dictionary based on the given ``items``.
account=13517986787
captcha=888888
accountType=2
${data}
${data} = {'account': '13517986787', 'captcha': '888888', 'accountType': '2'}
Logs the given message with the given level.
${data}
{'account': '13517986787', 'captcha': '888888', 'accountType': '2'}
Sends a POST request on a previously created HTTP Session.
ZTBF
/uec/authorize/by-captcha
json=${data}
${respones}
POST Request : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
path_url=/uec/authorize/by-captcha
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924', 'Content-Length': '67'}
body=b'{"account": "13517986787", "captcha": "888888", "accountType": "2"}'
POST Response : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 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/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ==","userId":"609432405077528576"}}
/usr/local/python3/lib/python3.6/site-packages/urllib3/connectionpool.py:1020: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api-client-uec-test.qniao.cn'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
${respones} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${respones.json()["data"]}
token
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ==
Makes a variable available globally in all tests and suites.
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ==
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=UTF-8
X-APP-ID=503258978847953924
Authorization=QNT ${gettoken}
${header}
${header} = {'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847953924', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ=='}
Create Session: create a HTTP session to a server
ZTB
https://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=https://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847953924', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==","signType":1,"sign":"485c081cb954d1fd6d448c939e9f5b1d","signStr":"{\"loginToken\":\"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==\",\"signType\":1}"}
${data}
${data} = {"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==","signType":1,"sign":"485c081cb954d1fd6d448c939e9f5b1d","signStr":"{"loginToken":"iHP4V/g6O5DXHi...
Sends a POST request on a previously created HTTP Session.
ZTB
recycle-user-center/authorize/get/product-line-token/by/login-token
${data}
${respones}
POST Request : url=https://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
path_url=/recycle-user-center/authorize/get/product-line-token/by/login-token
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847953924', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ==', 'Content-Length': '291'}
body={"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==","signType":1,"sign":"485c081cb954d1fd6d448c939e9f5b1d","signStr":"{"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==","signType":1}"}
POST Response : url=https://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
status=400, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":400,"message":"JSON parse error: Unexpected character ('l' (code 108)): was expecting comma to separate Object entries; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character ('l' (code 108)): was expecting comma to separate Object entries\n at [Source: (PushbackInputStream); line: 1, column: 175]","data":null}
/usr/local/python3/lib/python3.6/site-packages/urllib3/connectionpool.py:1020: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api-client-ztb-test.qniao.cn'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factorydeliverychannel/get/self-factory-delivery-channel-list?
params=pageNum=1&pageSize=20
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factorydeliverychannel/get/self-factory-delivery-channel-list?pageNum=1&pageSize=20
path_url=/ztb-factory/factorydeliverychannel/get/self-factory-delivery-channel-list?pageNum=1&pageSize=20
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factorydeliverychannel/get/self-factory-delivery-channel-list?pageNum=1&pageSize=20
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
name
${Name of consignee}
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"productId":"629736087564193792","productName":"牛奶盒","konePrice":"指导价格:5000","unitPrice":"5000","plateNumber":"京A88888","deliveryChannelType":1,"factoryDeliveryChannelId":"628650922460975104","consigneeName":"${Name of consignee}","netWeight":"20000","settleWeight":"20000","estimatedAmount":100000,"weightNoteImageUrls":["https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/19345550560503914.jpg","https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/19345550363230371.jpg","https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/19345551438903633.jpg"]}
${data}
Variable '${Name of consignee}' not found.
Variable '${Name of consignee}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/get/outbound-delivery-order-list?
params=pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/outbound-delivery-order-list?pageNum=1&pageSize=15
path_url=/ztb-factory/get/outbound-delivery-order-list?pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/outbound-delivery-order-list?pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Logs the given message with the given level.
${reps}
<Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${OrderID}
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${OrderID}","auditStatus":1}
${data}
Variable '${OrderID}' not found.
Variable '${OrderID}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${OrderID}","categoryId":"629736087564193792","otherFee":0,"subsidy":0,"proxyPaySurcharge":666,"freight":0,"deductPercent":"10.00","unitPrice":5000,"factoryId":"615896891544178688","settleUnitPrice":4.444,"settlePrice":79992,"netWeight":20000,"settleWeight":18000,"weightNoteImageUrls":["https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/19347141146174653.jpg","https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/19347141136136270.jpg","https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/19347141138102713.jpg"]}
${data}
Variable '${OrderID}' not found.
Variable '${OrderID}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${OrderID}","auditStatus":0}
${data}
Variable '${OrderID}' not found.
Variable '${OrderID}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=utf-8
X-APP-ID=503258978847953927
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688'}
Create Session: create a HTTP session to a server
ZTB
http://api-client-uec-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-uec-test.qniao.cn, headers={'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creates and returns a dictionary based on the given ``items``.
account=13517986787
captcha=888888
accountType=2
${data}
${data} = {'account': '13517986787', 'captcha': '888888', 'accountType': '2'}
Logs the given message with the given level.
${data}
{'account': '13517986787', 'captcha': '888888', 'accountType': '2'}
Sends a POST request on a previously created HTTP Session.
ZTB
/uec/authorize/by-captcha
json=${data}
${respones}
POST Request : url=http://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
path_url=/uec/authorize/by-captcha
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Content-Length': '67'}
body=b'{"account": "13517986787", "captcha": "888888", "accountType": "2"}'
POST Response : url=http://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 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/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==","userId":"609432405077528576"}}
${respones} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${respones.json()["data"]}
token
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==
Makes a variable available globally in all tests and suites.
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=utf-8
X-APP-ID=503258978847953927
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688'}
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"loginToken":"${gettoken}"}
${token}
${token} = {"loginToken":"iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA=="}
Sends a POST request on a previously created HTTP Session.
ZTB
/recycle-user-center/authorize/get/product-line-token/by/login-token
${token}
${res}
POST Request : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
path_url=/recycle-user-center/authorize/get/product-line-token/by/login-token
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Content-Length': '105'}
body={"loginToken":"iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA=="}
POST Response : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==","userToken":null,"userId":"609432405077528576"}}
${res} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${res.json()}
data
${gettoken}
${gettoken} = {'token': 'iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==', 'userToken': None, 'userId': '609432405077528576'}
Makes a variable available globally in all tests and suites.
${gettoken}
${gettoken} = {'token': 'iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==', 'userToken': None, 'userId': '609432405077528576'}
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=utf-8
X-APP-ID=503258978847953927
X-FACTORY-ID=615896891544178688
Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q==
${header}
${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"cardNo":"2836962348","weight":4000.0}
${data}
${data} = {"cardNo":"2836962348","weight":4000.0}
Sends a POST request on a previously created HTTP Session.
ZTB
/ztb-factory/factory-customer/save/order
${data.encode('utf-8')}
${reps}
POST Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory-customer/save/order
path_url=/ztb-factory/factory-customer/save/order
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q==', 'Content-Length': '39'}
body=b'{"cardNo":"2836962348","weight":4000.0}'
POST Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory-customer/save/order
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
毛重称重成功,请下地磅
登录信息已经过期 != 毛重称重成功,请下地磅
登录信息已经过期 != 毛重称重成功,请下地磅
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
X-FACTORY-ID=615896891544178688
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/get/customer-list?
params=name=&pageNum=1&pageSize=1500
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/get/customer-list?name=&pageNum=1&pageSize=1500
path_url=/ztb-factory/factory/get/customer-list?name=&pageNum=1&pageSize=1500
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ=='}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/get/customer-list?name=&pageNum=1&pageSize=1500
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][3]}
name
${name}
Resolving variable '${reps.json()["data"]["records"][3]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][3]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/wechat-applet/get/order-list?
params=status=1&pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?status=1&pageNum=1&pageSize=15
path_url=/ztb-factory/factory/wechat-applet/get/order-list?status=1&pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?status=1&pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Logs the given message with the given level.
${reps}
<Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${id}
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=utf-8
X-APP-ID=503258978847953927
X-FACTORY-ID=615896891544178688
Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q==
${header}
${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"orderId":"${id}","imageUrl":"https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18843304679102985.jpg","index":"1"}
${data}
Variable '${id}' not found.
Variable '${id}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=utf-8
X-APP-ID=503258978847953927
X-FACTORY-ID=615896891544178688
Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q==
${header}
${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"orderId":"${id}","imageUrl":"https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18843304678604194.jpg","index":"0"}
${data}
Variable '${id}' not found.
Variable '${id}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"deductType":1,"isWithoutTare":0,"factoryCustomerId":"71","factoryCustomerName":"${name}","netWeight":"6666","settleWeight":"6666","productId":"615900170974007296","konePrice":"指导价格:4","unitPrice":"","productName":"纯工厂纸边","settleUnitPrice":"4"}
${data}
Variable '${name}' not found. Did you mean:
${TEST_NAME}
Variable '${name}' not found. Did you mean:
${TEST_NAME}
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuiqnv03Ce90k8lyCqBgV+kuJyHadOjvbNa1jfdMbMETA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuiqnv03Ce90k8lyCqBgV+kuJyHadOjvbNa1jfdMbMETA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuiqnv03Ce90k8lyCqBgV+kuJyHadOjvbNa1jfdMbMETA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/wechat-applet/get/order-list?s
params=status=3&pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?s&status=3&pageNum=1&pageSize=15
path_url=/ztb-factory/factory/wechat-applet/get/order-list?s&status=3&pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuiqnv03Ce90k8lyCqBgV+kuJyHadOjvbNa1jfdMbMETA==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?s&status=3&pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Logs the given message with the given level.
${reps}
<Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${New_pound_ID}
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
createorder
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=createorder, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
/ztb-factory/factory/submit/order-price
${url}
${url} = /ztb-factory/factory/submit/order-price
Returns the given values which can then be assigned to a variables.
{"id":"${id}","plateNumber":"京A10000","productId":"633721764358262784","deductType":1,"unitPrice":2,"isWithoutTare":0}
${data}
Variable '${id}' not found.
Variable '${id}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=utf-8
X-APP-ID=503258978847953927
Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiuMfHLAaXugsKJ9qcZh0Y0JqoFugtUcc8kzJGfkpKk9yA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiuMfHLAaXugsKJ9qcZh0Y0JqoFugtUcc8kzJGfkpKk9yA==', 'X...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiuMfHLAaXugsKJ9qcZh0Y0JqoFugtUcc8kzJGfkpKk9yA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"cardNo":"2836962348","weight":2000.0}
${data}
${data} = {"cardNo":"2836962348","weight":2000.0}
Sends a POST request on a previously created HTTP Session.
ZTB
/ztb-factory/factory-customer/save/order
${data.encode('utf-8')}
${reps}
POST Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory-customer/save/order
path_url=/ztb-factory/factory-customer/save/order
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiuMfHLAaXugsKJ9qcZh0Y0JqoFugtUcc8kzJGfkpKk9yA==', 'X-FACTORY-ID': '615896891544178688', 'Content-Length': '39'}
body=b'{"cardNo":"2836962348","weight":2000.0}'
POST Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory-customer/save/order
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
皮重称重成功、正在打印磅单
登录信息已经过期 != 皮重称重成功、正在打印磅单
登录信息已经过期 != 皮重称重成功、正在打印磅单
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${id}"}
${data}
Variable '${id}' not found.
Variable '${id}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"settleType":1,"ids":["${id}"]}
${data}
Variable '${id}' not found.
Variable '${id}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu0uPnrRpYjDgoomxi7YXg7P61PQp7sfpe1Oh8c4VFAPQ==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu0uPnrRpYjDgoomxi7YXg7P61PQp7sfpe1Oh8c4VFAPQ==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu0uPnrRpYjDgoomxi7YXg7P61PQp7sfpe1Oh8c4VFAPQ==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"settleType":3,"ids":["${id}"]}
${data}
Variable '${id}' not found.
Variable '${id}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json, text/plain, */*
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-ztb-test.qniao.cn, headers={'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/admin/get/agency-payment-order-audit-request-list?
params=pageNum=1&pageSize=10&status=
${reps}
GET Request : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/get/agency-payment-order-audit-request-list?pageNum=1&pageSize=10&status=
path_url=/ztb-factory/admin/get/agency-payment-order-audit-request-list?pageNum=1&pageSize=10&status=
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
body=None
GET Response : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/get/agency-payment-order-audit-request-list?pageNum=1&pageSize=10&status=
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:22 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Authorization': '906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":0,"message":"successful","data":{"records":[{"id":"663142896081440768","orderId":"663142876326268928","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":120.00,"totalPrice":120.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"颖勋废钢","createTime":"2021-11-30 19:34:13","remark":"","settlementPeriod":7,"settleWeight":1.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":120.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":0.23,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-12-01 12:00:00","weightAuditTime":"2021-11-30 19:34:08"},{"id":"663137287248416768","orderId":"663012796782481408","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":100.00,"totalPrice":100.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"不锈钢衬纸","createTime":"2021-11-30 19:11:55","remark":"暂无意见","settlementPeriod":7,"settleWeight":100.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":0.19,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-12-01 12:04:28","weightAuditTime":"2021-11-30 10:57:15"},{"id":"658723756629430272","orderId":"650431550193799168","customerEnterpriseId":"615227293564014592","customerEnterpriseName":"海南李总","customerContactsId":null,"customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021245599879168","supplierEnterpriseName":"千纸鹤","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"615896891544178688","customerFactoryName":"帮康总打包","customerLegalPersonName":"李总","customerLegalPersonIdCardNo":"320824199607986547","customerLegalPersonMobile":null,"managementType":1,"isOperatorNoAudit":0,"status":1,"settlePrice":7140.00,"totalPrice":7140.00,"agencyPaymentCreditId":"615897461055164416","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":10.00,"settlementFeeUnit":"元/吨","productName":"忠糠废铁3级,白卡","createTime":"2021-11-18 14:54:08","remark":"","settlementPeriod":7,"settleWeight":3570.000,"factoryCustomerId":"71","customerPersonName":"糠总了不得","settleUnitPrice":3.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":13.69,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-19 17:25:18","weightAuditTime":"2021-10-26 17:45:36"},{"id":"658723420414021632","orderId":"655489281967656960","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":2,"settlePrice":3000.00,"totalPrice":3000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"杂纸","createTime":"2021-11-18 14:52:48","remark":"暂无意见","settlementPeriod":7,"settleWeight":3000.000,"factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":5.75,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-12-01 13:58:19","weightAuditTime":"2021-11-09 16:41:29"},{"id":"658718393825890304","orderId":"655764356319023104","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"金银卡","createTime":"2021-11-18 14:32:49","remark":"","settlementPeriod":7,"settleWeight":1000.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":1.92,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-18 14:33:31","weightAuditTime":"2021-11-10 10:54:32"},{"id":"658712531409440768","orderId":"653776994152091648","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":3010.00,"totalPrice":3010.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"杂纸","createTime":"2021-11-18 14:09:31","remark":"","settlementPeriod":7,"settleWeight":3010.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":5.77,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-18 14:26:39","weightAuditTime":"2021-11-04 23:17:45"},{"id":"658712517870227456","orderId":"655853498700795904","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"杂纸","createTime":"2021-11-18 14:09:28","remark":"补差价单,已走线下付款,不用重复付款。","settlementPeriod":7,"settleWeight":1000.000,"factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":1.92,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-18 14:12:21","weightAuditTime":"2021-11-10 16:48:45"},{"id":"656304498435821568","orderId":"656304472531800064","customerEnterpriseId":"656171400947699712","customerEnterpriseName":"德美志远有限公司","customerContactsId":null,"customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"656171561203666944","customerFactoryName":"德美志远","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"5223281998071328... (set the log level to DEBUG or TRACE to see the full content)
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${In_plant_order_payment_ID}
${In_plant_order_payment_ID} = 663142896081440768
Makes a variable available globally in all tests and suites.
${In_plant_order_payment_ID}
${In_plant_order_payment_ID} = 663142896081440768
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${In_plant_order_payment_ID}","remark":"","status":1}
${data}
${data} = {"id":"663142896081440768","remark":"","status":1}
Logs the given message with the given level.
${data}
{"id":"663142896081440768","remark":"","status":1}
Sends a POST request on a previously created HTTP Session.
ZTB
/ztb-factory/admin/audit/agency-payment-order-audit-request
${data.encode('utf-8')}
${reps}
POST Request : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/audit/agency-payment-order-audit-request
path_url=/ztb-factory/admin/audit/agency-payment-order-audit-request
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960', 'Content-Length': '50'}
body=b'{"id":"663142896081440768","remark":"","status":1}'
POST Response : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/audit/agency-payment-order-audit-request
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Authorization': '906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":200100,"message":"已提交申请,请勿重复提交","data":null}
${reps} = <Response [200]>
Logs the given message with the given level.
${reps}
<Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
successful
已提交申请,请勿重复提交 != successful
已提交申请,请勿重复提交 != successful
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json, text/plain, */*
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-psc-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-psc-test.qniao.cn, headers={'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/payment-settlement-center/admin/get/agency-payment-order-payable-list?
params=status=&pageNum=1&pageSize=10
${reps}
GET Request : url=http://api-ops-psc-test.qniao.cn/payment-settlement-center/admin/get/agency-payment-order-payable-list?status=&pageNum=1&pageSize=10
path_url=/payment-settlement-center/admin/get/agency-payment-order-payable-list?status=&pageNum=1&pageSize=10
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
body=None
GET Response : url=http://api-ops-psc-test.qniao.cn/payment-settlement-center/admin/get/agency-payment-order-payable-list?status=&pageNum=1&pageSize=10
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Authorization': '906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":0,"message":"successful","data":{"records":[{"createTime":"2021-12-01 12:04:27","updateTime":"2021-12-01 12:04:27","orderTime":"2021-11-30 10:57:15","id":"663392100741681152","orderId":"663012796782481408","auditRequestId":"663137287248416768","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":0,"settlePrice":100.00,"totalPrice":100.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":0.19,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"暂无意见","settleWeight":100.000,"productId":"663006318902251520","productName":"不锈钢衬纸","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-12-01 12:00:00","updateTime":"2021-12-01 12:00:00","orderTime":"2021-11-30 19:34:08","id":"663390978207518720","orderId":"663142876326268928","auditRequestId":"663142896081440768","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":120.00,"totalPrice":120.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":0.23,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":1.000,"productId":"617351238262067200","productName":"颖勋废钢","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":120.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-19 17:25:18","updateTime":"2021-11-19 17:25:18","orderTime":"2021-10-26 17:43:52","id":"659124190191947776","orderId":"650431550193799168","auditRequestId":"658723756629430272","customerEnterpriseId":"615227293564014592","customerEnterpriseName":"海南李总","customerContactsId":null,"customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021245599879168","supplierEnterpriseName":"千纸鹤","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"615896891544178688","customerFactoryName":"帮康总打包","customerLegalPersonName":"李总","customerLegalPersonIdCardNo":"320824199607986547","customerLegalPersonMobile":null,"managementType":1,"isOperatorNoAudit":0,"status":1,"settlePrice":7140.00,"totalPrice":7140.00,"agencyPaymentCreditId":"615897461055164416","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":10.00,"accountPeriodReceivePrice":13.69,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":3570.000,"productId":"633721824391335936","productName":"忠糠废铁3级,白卡","factoryCustomerId":"71","customerPersonName":"糠总了不得","settleUnitPrice":3.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千纸鹤","paymentEnterpriseId":574021245599879168,"paymentEnterpriseTableId":1,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-18 14:33:31","updateTime":"2021-11-18 14:33:31","orderTime":"2021-11-10 10:54:32","id":"658718570569666560","orderId":"655764356319023104","auditRequestId":"658718393825890304","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":1.92,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":1000.000,"productId":"592704401416785920","productName":"金银卡","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-18 14:26:39","updateTime":"2021-11-18 14:26:39","orderTime":"2021-11-04 23:17:28","id":"658716843611131904","orderId":"653776994152091648","auditRequestId":"658712531409440768","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":3010.00,"totalPrice":3010.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":5.77,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":3010.000,"productId":"635234231852863488","productName":"杂纸","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-18 14:12:21","updateTime":"2021-11-18 14:12:21","orderTime":"2021-11-10 16:48:45","id":"658713244462092288","orderId":"655853498700795904","auditRequestId":"658712517870227456","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":1.92,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"补差价单,已走线下付款,不用重复付款。","settleWeight":1000.000,"productId":"635234231852863488","productName":"杂纸","factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-11 23:22:12","updateTime":"2021-11-11 23:22:12","orderTime":"2021-11-09 16:24:51","id":"656314905540038656","orderId":"655485096652050432","auditRequestId":"655485117636153344","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":0,"settlePrice":11.00,"totalPrice":11.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":0.02,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"暂无意见","settleWeight":11.000,"productId":"635234231852863488","productName":"杂纸","factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"5555192070061... (set the log level to DEBUG or TRACE to see the full content)
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${Payment_agent_ID}
${Payment_agent_ID} = 663392100741681152
Makes a variable available globally in all tests and suites.
${Payment_agent_ID}
${Payment_agent_ID} = 663392100741681152
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-psc-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-psc-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${Payment_agent_ID}","isMergePayment":0,"auditStatus":1}
${data}
${data} = {"id":"663392100741681152","isMergePayment":0,"auditStatus":1}
Sends a POST request on a previously created HTTP Session.
ZTB
/payment-settlement-center/admin/audit/agency-payment-order-payable/${id}
${data.encode('utf-8')}
${reps}
Variable '${id}' not found.
Variable '${id}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/wechat-applet/get/order-list?
params=status=42&pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?status=42&pageNum=1&pageSize=15
path_url=/ztb-factory/factory/wechat-applet/get/order-list?status=42&pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?status=42&pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
successful
登录信息已经过期 != successful
登录信息已经过期 != successful
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/wechat-applet/get/order-list?
params=status=42&pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?status=42&pageNum=1&pageSize=15
path_url=/ztb-factory/factory/wechat-applet/get/order-list?status=42&pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/wechat-applet/get/order-list?status=42&pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${Pay_ID}
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuZrhORHq6RxTlhcEFR6khLMz37yo2eZhxL+5rBzf3zNg==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuZrhORHq6RxTlhcEFR6khLMz37yo2eZhxL+5rBzf3zNg==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuZrhORHq6RxTlhcEFR6khLMz37yo2eZhxL+5rBzf3zNg==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"settleType":1,"ids":["${Pay_ID}"]}
${data}
Variable '${Pay_ID}' not found.
Variable '${Pay_ID}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu8NIrdTFgIEUqQjG1iIScYRz66I1L+T2QOQkx3oG6hYw==
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu8NIrdTFgIEUqQjG1iIScYRz66I1L+T2QOQkx3oG6hYw=='}
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu8NIrdTFgIEUqQjG1iIScYRz66I1L+T2QOQkx3oG6hYw=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/get/all-product?
json={pageNum=1&pageSize=100}
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/get/all-product
path_url=/ztb-factory/factory/get/all-product
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu8NIrdTFgIEUqQjG1iIScYRz66I1L+T2QOQkx3oG6hYw==', 'Content-Length': '26'}
body=b'"{pageNum=1&pageSize=100}"'
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/get/all-product
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
X-FACTORY-ID=615896891544178688
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytsGGi+AUHO80Gpq76XYxz5qApitKhzjoiq+6aX4El3WA==
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytsGGi+AUHO80Gpq76XYxz5qApit...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytsGGi+AUHO80Gpq76XYxz5qApitKhzjoiq+6aX4El3WA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/get/customer-list?
json={name=&pageNum=1&pageSize=1500}
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/get/customer-list
path_url=/ztb-factory/factory/get/customer-list
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytsGGi+AUHO80Gpq76XYxz5qApitKhzjoiq+6aX4El3WA==', 'Content-Length': '33'}
body=b'"{name=&pageNum=1&pageSize=1500}"'
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/get/customer-list
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][1]}
id
${id}
Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/get/factory-car-list
params=plateNumber=&pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/factory-car-list?plateNumber=&pageNum=1&pageSize=15
path_url=/ztb-factory/get/factory-car-list?plateNumber=&pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/factory-car-list?plateNumber=&pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][1]}
driverId
${driverId}
Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/recycle-user-center/get/self-department-member-list?
json={enterpriseId=null&isPassFromBackstage=1}
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-member-list
path_url=/recycle-user-center/get/self-department-member-list
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': '615896891544178688', 'Content-Length': '43'}
body=b'"{enterpriseId=null&isPassFromBackstage=1}"'
GET Response : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-member-list
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
successful
登录信息已经过期 != successful
登录信息已经过期 != successful
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxys0yqz3cIoQSiIWq+krFr0ftczFPPHJe+iKqVytuJ1ckw==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxys0yqz3cIoQSiIWq+krFr0ftczFPPHJe+iKqVytuJ1ckw==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
createorder
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=createorder, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxys0yqz3cIoQSiIWq+krFr0ftczFPPHJe+iKqVytuJ1ckw==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
/ztb-factory/create/scrap-paper-offsite-receipt-order
${url}
${url} = /ztb-factory/create/scrap-paper-offsite-receipt-order
Returns the given values which can then be assigned to a variables.
{"productCategoryInfos":[{"productId":"633721764358262784","productCategoryName":"勇兰废塑料三级","unitPrice":"2","konePrice":"指导价格:2","highestUnitPrice":null,"lowestUnitPrice":0}],"predictDeliveryToFactoryTime":null,"factoryCustomerId":"71","factoryCustomerName":"糠总了不得","driverId":"624651125643153408","plateNumber":"赣H97667","driverName":"余镇"}
${data}
${data} = {"productCategoryInfos":[{"productId":"633721764358262784","productCategoryName":"勇兰废塑料三级","unitPrice":"2","konePrice":"指导价格:2","highestUnitPrice":null,"lowestUnitPrice":0}],"predictDeliveryToFactoryT...
Logs the given message with the given level.
${data}
{"productCategoryInfos":[{"productId":"633721764358262784","productCategoryName":"勇兰废塑料三级","unitPrice":"2","konePrice":"指导价格:2","highestUnitPrice":null,"lowestUnitPrice":0}],"predictDeliveryToFactoryTime":null,"factoryCustomerId":"71","factoryCustomerName":"糠总了不得","driverId":"624651125643153408","plateNumber":"赣H97667","driverName":"余镇"}
Sends a POST request on a previously created HTTP Session.
createorder
${url}
${data.encode('utf-8')}
${reps}
POST Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/create/scrap-paper-offsite-receipt-order
path_url=/ztb-factory/create/scrap-paper-offsite-receipt-order
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxys0yqz3cIoQSiIWq+krFr0ftczFPPHJe+iKqVytuJ1ckw==', 'X-FACTORY-ID': '615896891544178688', 'Content-Length': '379'}
body=b'{"productCategoryInfos":[{"productId":"633721764358262784","productCategoryName":"\xe5\x8b\x87\xe5\x85\xb0\xe5\xba\x9f\xe5\xa1\x91\xe6\x96\x99\xe4\xb8\x89\xe7\xba\xa7","unitPrice":"2","konePrice":"\xe6\x8c\x87\xe5\xaf\xbc\xe4\xbb\xb7\xe6\xa0\xbc\xef\xbc\x9a2","highestUnitPrice":null,"lowestUnitPrice":0}],"predictDeliveryToFactoryTime":null,"factoryCustomerId":"71","factoryCustomerName":"\xe7\xb3\xa0\xe6\x80\xbb\xe4\xba\x86\xe4\xb8\x8d\xe5\xbe\x97","driverId":"624651125643153408","plateNumber":"\xe8\xb5\xa3H97667","driverName":"\xe4\xbd\x99\xe9\x95\x87"}'
POST Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/create/scrap-paper-offsite-receipt-order
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Logs the given message with the given level.
${reps}
<Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
successful
登录信息已经过期 != successful
登录信息已经过期 != successful
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3yfEzRxK716gkM6NVpNEepSQ==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3yfEzRxK716gkM6NVpNEepSQ==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3yfEzRxK716gkM6NVpNEepSQ==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/get/scrap-paper-offsite-receipt-order-list?
params=orderStatus=0&pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/scrap-paper-offsite-receipt-order-list?orderStatus=0&pageNum=1&pageSize=15
path_url=/ztb-factory/get/scrap-paper-offsite-receipt-order-list?orderStatus=0&pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3yfEzRxK716gkM6NVpNEepSQ==', 'X-FACTORY-ID': '615896891544178688'}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/scrap-paper-offsite-receipt-order-list?orderStatus=0&pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
orderId
${orderId}
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/get/scrap-paper-offsite-receipt-order-detail?
params=id=${orderId}
${reps}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
createorder
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=createorder, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
/ztb-factory/submit/scrap-paper-offsite-receipt-weight-note
${url}
${url} = /ztb-factory/submit/scrap-paper-offsite-receipt-weight-note
Returns the given values which can then be assigned to a variables.
{"scrapPaperReceiptId":"${orderId}","offsiteGrossWeight":"1500","offsiteTareWeight":"500","weightNoteList":[{"grossWeight":null,"tareWeight":null,"weightNoteImage":null,"netWeight":"1000","scrapPaperPurchaseOrderId":"${scrapPaperPurchaseOrderId} "}],"orderImageList":["https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18217089913158933.jpg","https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18217089914292475.jpg","https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18217089916720564.jpg"]}
${data}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvUpDa/cGBYvqW67g8p9HMp16JHEJ5NGVtmE6E5M4VrNw==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvUpDa/cGBYvqW67g8p9HMp16JHEJ5NGVtmE6E5M4VrNw==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvUpDa/cGBYvqW67g8p9HMp16JHEJ5NGVtmE6E5M4VrNw==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"scrapPaperReceiptId":"${orderId}","productCategorySettleInfoDtoList":[{"productId":"633721764358262784","scrapPaperPurchaseOrderId":"${scrapPaperPurchaseOrderId}","deductWeight":null,"deductPercent":null,"settleUnitPrice":2}]}
${data}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"scrapPaperReceiptId":"${orderId} "}
${data}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA=='}
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/get/scrap-paper-offsite-receipt-order-list?
params=orderStatus=4&pageNum=1&pageSize=15
${reps}
GET Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/scrap-paper-offsite-receipt-order-list?orderStatus=4&pageNum=1&pageSize=15
path_url=/ztb-factory/get/scrap-paper-offsite-receipt-order-list?orderStatus=4&pageNum=1&pageSize=15
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA=='}
body=None
GET Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/get/scrap-paper-offsite-receipt-order-list?orderStatus=4&pageNum=1&pageSize=15
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"settleType":1,"ids":["${orderId}"],"bankCardNo":null}
${data}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"settleType":3,"ids":["${orderId}"],"bankCardNo":null}
${data}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA=='}
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/get/scrap-paper-offsite-receipt-order-detail?
params=id=${orderId}
${reps}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json, text/plain, */*
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-ztb-test.qniao.cn, headers={'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/admin/get/agency-payment-order-audit-request-list?
params=pageNum=1&pageSize=10&status=
${reps}
GET Request : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/get/agency-payment-order-audit-request-list?pageNum=1&pageSize=10&status=
path_url=/ztb-factory/admin/get/agency-payment-order-audit-request-list?pageNum=1&pageSize=10&status=
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
body=None
GET Response : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/get/agency-payment-order-audit-request-list?pageNum=1&pageSize=10&status=
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Authorization': '906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":0,"message":"successful","data":{"records":[{"id":"663142896081440768","orderId":"663142876326268928","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":120.00,"totalPrice":120.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"颖勋废钢","createTime":"2021-11-30 19:34:13","remark":"","settlementPeriod":7,"settleWeight":1.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":120.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":0.23,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-12-01 12:00:00","weightAuditTime":"2021-11-30 19:34:08"},{"id":"663137287248416768","orderId":"663012796782481408","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":100.00,"totalPrice":100.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"不锈钢衬纸","createTime":"2021-11-30 19:11:55","remark":"暂无意见","settlementPeriod":7,"settleWeight":100.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":0.19,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-12-01 12:04:28","weightAuditTime":"2021-11-30 10:57:15"},{"id":"658723756629430272","orderId":"650431550193799168","customerEnterpriseId":"615227293564014592","customerEnterpriseName":"海南李总","customerContactsId":null,"customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021245599879168","supplierEnterpriseName":"千纸鹤","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"615896891544178688","customerFactoryName":"帮康总打包","customerLegalPersonName":"李总","customerLegalPersonIdCardNo":"320824199607986547","customerLegalPersonMobile":null,"managementType":1,"isOperatorNoAudit":0,"status":1,"settlePrice":7140.00,"totalPrice":7140.00,"agencyPaymentCreditId":"615897461055164416","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":10.00,"settlementFeeUnit":"元/吨","productName":"忠糠废铁3级,白卡","createTime":"2021-11-18 14:54:08","remark":"","settlementPeriod":7,"settleWeight":3570.000,"factoryCustomerId":"71","customerPersonName":"糠总了不得","settleUnitPrice":3.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":13.69,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-19 17:25:18","weightAuditTime":"2021-10-26 17:45:36"},{"id":"658723420414021632","orderId":"655489281967656960","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":2,"settlePrice":3000.00,"totalPrice":3000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"杂纸","createTime":"2021-11-18 14:52:48","remark":"暂无意见","settlementPeriod":7,"settleWeight":3000.000,"factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":5.75,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-12-01 13:58:19","weightAuditTime":"2021-11-09 16:41:29"},{"id":"658718393825890304","orderId":"655764356319023104","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"金银卡","createTime":"2021-11-18 14:32:49","remark":"","settlementPeriod":7,"settleWeight":1000.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":1.92,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-18 14:33:31","weightAuditTime":"2021-11-10 10:54:32"},{"id":"658712531409440768","orderId":"653776994152091648","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":3010.00,"totalPrice":3010.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"杂纸","createTime":"2021-11-18 14:09:31","remark":"","settlementPeriod":7,"settleWeight":3010.000,"factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":5.77,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-18 14:26:39","weightAuditTime":"2021-11-04 23:17:45"},{"id":"658712517870227456","orderId":"655853498700795904","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":0,"settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"settlementFeeUnit":"元/吨","productName":"杂纸","createTime":"2021-11-18 14:09:28","remark":"补差价单,已走线下付款,不用重复付款。","settlementPeriod":7,"settleWeight":1000.000,"factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"receivablePrice":null,"overduePrice":null,"accountPeriodReceivePrice":1.92,"waitReceivedPrice":null,"paidPrice":null,"overdueDays":null,"payableStatus":null,"receivableStatus":null,"customerSettleType":1,"auditId":null,"auditName":null,"updateTime":"2021-11-18 14:12:21","weightAuditTime":"2021-11-10 16:48:45"},{"id":"656304498435821568","orderId":"656304472531800064","customerEnterpriseId":"656171400947699712","customerEnterpriseName":"德美志远有限公司","customerContactsId":null,"customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"656171561203666944","customerFactoryName":"德美志远","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"5223281998071328... (set the log level to DEBUG or TRACE to see the full content)
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${id}
${id} = 663142896081440768
Makes a variable available globally in all tests and suites.
${id}
${id} = 663142896081440768
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${id}","remark":"","status":1}
${data}
${data} = {"id":"663142896081440768","remark":"","status":1}
Logs the given message with the given level.
${data}
{"id":"663142896081440768","remark":"","status":1}
Sends a POST request on a previously created HTTP Session.
ZTB
/ztb-factory/admin/audit/agency-payment-order-audit-request
${data.encode('utf-8')}
${reps}
POST Request : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/audit/agency-payment-order-audit-request
path_url=/ztb-factory/admin/audit/agency-payment-order-audit-request
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960', 'Content-Length': '50'}
body=b'{"id":"663142896081440768","remark":"","status":1}'
POST Response : url=http://api-ops-ztb-test.qniao.cn/ztb-factory/admin/audit/agency-payment-order-audit-request
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Origin, Access-Control-Request-Method, Access-Control-Request-Headers', 'Authorization': '906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":200100,"message":"已提交申请,请勿重复提交","data":null}
${reps} = <Response [200]>
Logs the given message with the given level.
${reps}
<Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
successful
已提交申请,请勿重复提交 != successful
已提交申请,请勿重复提交 != successful
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json, text/plain, */*
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-psc-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-psc-test.qniao.cn, headers={'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/payment-settlement-center/admin/get/agency-payment-order-payable-list?
params=status=&pageNum=1&pageSize=10
${reps}
GET Request : url=http://api-ops-psc-test.qniao.cn/payment-settlement-center/admin/get/agency-payment-order-payable-list?status=&pageNum=1&pageSize=10
path_url=/payment-settlement-center/admin/get/agency-payment-order-payable-list?status=&pageNum=1&pageSize=10
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
body=None
GET Response : url=http://api-ops-psc-test.qniao.cn/payment-settlement-center/admin/get/agency-payment-order-payable-list?status=&pageNum=1&pageSize=10
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Authorization': '906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":0,"message":"successful","data":{"records":[{"createTime":"2021-12-01 12:04:27","updateTime":"2021-12-01 12:04:27","orderTime":"2021-11-30 10:57:15","id":"663392100741681152","orderId":"663012796782481408","auditRequestId":"663137287248416768","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":0,"settlePrice":100.00,"totalPrice":100.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":0.19,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"暂无意见","settleWeight":100.000,"productId":"663006318902251520","productName":"不锈钢衬纸","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-12-01 12:00:00","updateTime":"2021-12-01 12:00:00","orderTime":"2021-11-30 19:34:08","id":"663390978207518720","orderId":"663142876326268928","auditRequestId":"663142896081440768","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":120.00,"totalPrice":120.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":0.23,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":1.000,"productId":"617351238262067200","productName":"颖勋废钢","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":120.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-19 17:25:18","updateTime":"2021-11-19 17:25:18","orderTime":"2021-10-26 17:43:52","id":"659124190191947776","orderId":"650431550193799168","auditRequestId":"658723756629430272","customerEnterpriseId":"615227293564014592","customerEnterpriseName":"海南李总","customerContactsId":null,"customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021245599879168","supplierEnterpriseName":"千纸鹤","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"615896891544178688","customerFactoryName":"帮康总打包","customerLegalPersonName":"李总","customerLegalPersonIdCardNo":"320824199607986547","customerLegalPersonMobile":null,"managementType":1,"isOperatorNoAudit":0,"status":1,"settlePrice":7140.00,"totalPrice":7140.00,"agencyPaymentCreditId":"615897461055164416","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":10.00,"accountPeriodReceivePrice":13.69,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":3570.000,"productId":"633721824391335936","productName":"忠糠废铁3级,白卡","factoryCustomerId":"71","customerPersonName":"糠总了不得","settleUnitPrice":3.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千纸鹤","paymentEnterpriseId":574021245599879168,"paymentEnterpriseTableId":1,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-18 14:33:31","updateTime":"2021-11-18 14:33:31","orderTime":"2021-11-10 10:54:32","id":"658718570569666560","orderId":"655764356319023104","auditRequestId":"658718393825890304","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":1.92,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":1000.000,"productId":"592704401416785920","productName":"金银卡","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-18 14:26:39","updateTime":"2021-11-18 14:26:39","orderTime":"2021-11-04 23:17:28","id":"658716843611131904","orderId":"653776994152091648","auditRequestId":"658712531409440768","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":3010.00,"totalPrice":3010.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":5.77,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"","settleWeight":3010.000,"productId":"635234231852863488","productName":"杂纸","factoryCustomerId":"44","customerPersonName":"广州千鸟电商科技有限公司","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-18 14:12:21","updateTime":"2021-11-18 14:12:21","orderTime":"2021-11-10 16:48:45","id":"658713244462092288","orderId":"655853498700795904","auditRequestId":"658712517870227456","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":1,"settlePrice":1000.00,"totalPrice":1000.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":1.92,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"补差价单,已走线下付款,不用重复付款。","settleWeight":1000.000,"productId":"635234231852863488","productName":"杂纸","factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"555519207006146560","paymentPersonAdminName":"李甜"},{"createTime":"2021-11-11 23:22:12","updateTime":"2021-11-11 23:22:12","orderTime":"2021-11-09 16:24:51","id":"656314905540038656","orderId":"655485096652050432","auditRequestId":"655485117636153344","customerEnterpriseId":"573952019207950336","customerEnterpriseName":"千鸟IT打包站测试账号","customerContactsId":"574268907460890624","customerContactsName":null,"customerContactsMobile":null,"supplierEnterpriseId":"574021399518253056","supplierEnterpriseName":"千鸟-经济业务","supplierContactsId":null,"supplierContactsName":null,"supplierContactsMobile":null,"customerFactoryId":"573960116148244480","customerFactoryName":"萬镓再生资源","customerLegalPersonName":"张山","customerLegalPersonIdCardNo":"522328199607132811","customerLegalPersonMobile":null,"managementType":2,"isOperatorNoAudit":0,"status":0,"settlePrice":11.00,"totalPrice":11.00,"agencyPaymentCreditId":"573959839601004544","settlementMethod":"0","settlementInAccountPeriod":10.00,"overdueSettlement":13.00,"accountPeriodReceivePrice":0.02,"settlementFeeUnit":"元/吨","overduePrice":null,"remark":"暂无意见","settleWeight":11.000,"productId":"635234231852863488","productName":"杂纸","factoryCustomerId":"85","customerPersonName":"李四测试卡","settleUnitPrice":1.000,"overdueDays":null,"settlementPeriod":null,"paymentEnterpriseName":"千鸟-经济业务","paymentEnterpriseId":574021399518253056,"paymentEnterpriseTableId":2,"paymentPersonAdminId":"5555192070061... (set the log level to DEBUG or TRACE to see the full content)
${reps} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${reps.json()["data"]["records"][0]}
id
${id}
${id} = 663392100741681152
Makes a variable available globally in all tests and suites.
${id}
${id} = 663392100741681152
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=470236309865238555
Authorization=Token 906b281653681738294c0f55aa929960
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}
Create Session: create a HTTP session to a server
ZTB
http://api-ops-psc-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-ops-psc-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"id":"${id}","isMergePayment":0,"auditStatus":1}
${data}
${data} = {"id":"663392100741681152","isMergePayment":0,"auditStatus":1}
Sends a POST request on a previously created HTTP Session.
ZTB
/payment-settlement-center/admin/audit/agency-payment-order-payable/${id}
${data.encode('utf-8')}
${reps}
POST Request : url=http://api-ops-psc-test.qniao.cn/payment-settlement-center/admin/audit/agency-payment-order-payable/663392100741681152
path_url=/payment-settlement-center/admin/audit/agency-payment-order-payable/663392100741681152
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960', 'Content-Length': '62'}
body=b'{"id":"663392100741681152","isMergePayment":0,"auditStatus":1}'
POST Response : url=http://api-ops-psc-test.qniao.cn/payment-settlement-center/admin/audit/agency-payment-order-payable/663392100741681152
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Authorization': '906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'Cache-Control': 'no-cache, no-store, max-age=0, must-revalidate', 'Pragma': 'no-cache', 'Expires': '0', 'X-Frame-Options': 'DENY'}
body={"code":0,"message":"successful","data":null}
${reps} = <Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
successful
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTB
/ztb-factory/get/scrap-paper-offsite-receipt-order-detail?
params=id=${orderId}
${reps}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"settleType":1,"ids":["${orderId}"],"bankCardNo":null}
${data}
Variable '${orderId}' not found.
Variable '${orderId}' not found.
Test case contains no keywords.
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953924
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924'}
Create Session: create a HTTP session to a server
ZTB
http://api-client-uec-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-uec-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creates and returns a dictionary based on the given ``items``.
account=13517986787
captcha=888888
accountType=2
${data}
${data} = {'account': '13517986787', 'captcha': '888888', 'accountType': '2'}
Logs the given message with the given level.
${data}
{'account': '13517986787', 'captcha': '888888', 'accountType': '2'}
Sends a POST request on a previously created HTTP Session.
ZTB
/uec/authorize/by-captcha
json=${data}
${respones}
POST Request : url=http://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
path_url=/uec/authorize/by-captcha
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924', 'Content-Length': '67'}
body=b'{"account": "13517986787", "captcha": "888888", "accountType": "2"}'
POST Response : url=http://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 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/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w==","userId":"609432405077528576"}}
${respones} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${respones.json()["data"]}
token
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w==
Makes a variable available globally in all tests and suites.
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w==
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926'}
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"loginToken":"${gettoken}"}
${token}
${token} = {"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w=="}
Sends a POST request on a previously created HTTP Session.
ZTB
recycle-user-center/authorize/get/product-line-token/by/login-token
${token}
${res}
POST Request : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
path_url=/recycle-user-center/authorize/get/product-line-token/by/login-token
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Content-Length': '105'}
body={"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w=="}
POST Response : url=http://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":0,"message":"successful","data":"iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA=="}
${res} = <Response [200]>
Returns a value from the given ``dictionary`` based on the given ``key``.
${res.json()}
data
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA==
Makes a variable available globally in all tests and suites.
${gettoken}
${gettoken} = iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA==
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/x-www-form-urlencoded
X-APP-ID=470236309865238555
${header}
${header} = {'Content-Type': 'application/x-www-form-urlencoded', 'X-APP-ID': '470236309865238555'}
Create Session: create a HTTP session to a server
后台管理
http://api-ops-ztb-test.qniao.cn
${header}
Creating Session using : alias=后台管理, url=http://api-ops-ztb-test.qniao.cn, headers={'Content-Type': 'application/x-www-form-urlencoded', 'X-APP-ID': '470236309865238555'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Creates and returns a dictionary based on the given ``items``.
username=mengyan@qniao.cn
password=qn123456
${data}
${data} = {'username': 'mengyan@qniao.cn', 'password': 'qn123456'}
Logs the given message with the given level.
${data}
{'username': 'mengyan@qniao.cn', 'password': 'qn123456'}
Sends a POST request on a previously created HTTP Session.
后台管理
/recycle-service/admin/login
data=${data}
${resp}
POST Request : url=http://api-ops-ztb-test.qniao.cn/recycle-service/admin/login
path_url=/recycle-service/admin/login
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/x-www-form-urlencoded', 'X-APP-ID': '470236309865238555', 'Content-Length': '45'}
body=username=mengyan%40qniao.cn&password=qn123456
POST Response : url=http://api-ops-ztb-test.qniao.cn/recycle-service/admin/login
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Access-Control-Allow-Origin': '*', 'Access-Control-Request-Method': '*', 'Cache-Control': 'no-cache', 'Authorization': 'Token 906b281653681738294c0f55aa929960', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'X-Frame-Options': 'DENY'}
body={"code":200,"message":"登陆成功"}
${resp} = <Response [200]>
Logs the given message with the given level.
${resp}
<Response [200]>
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json
X-APP-ID=503258978847953926
Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==
X-FACTORY-ID=615896891544178688
${header}
${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...
Create Session: create a HTTP session to a server
ZTB
http://api-client-ztb-test.qniao.cn
${header}
Creating Session using : alias=ZTB, url=http://api-client-ztb-test.qniao.cn, headers={'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Returns the given values which can then be assigned to a variables.
{"cardNo":"","name":"吴彦祖","mobile":"13232323232","defaultPaymentMethod":1}
${data}
${data} = {"cardNo":"","name":"吴彦祖","mobile":"13232323232","defaultPaymentMethod":1}
Logs the given message with the given level.
${data}
{"cardNo":"","name":"吴彦祖","mobile":"13232323232","defaultPaymentMethod":1}
Sends a POST request on a previously created HTTP Session.
ZTB
/ztb-factory/factory/save/customer
${data.encode('utf-8')}
${reps}
POST Request : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/save/customer
path_url=/ztb-factory/factory/save/customer
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': '615896891544178688', 'Content-Length': '80'}
body=b'{"cardNo":"","name":"\xe5\x90\xb4\xe5\xbd\xa6\xe7\xa5\x96","mobile":"13232323232","defaultPaymentMethod":1}'
POST Response : url=http://api-client-ztb-test.qniao.cn/ztb-factory/factory/save/customer
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:23 GMT', 'Content-Type': 'application/json;charset=utf-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":401,"message":"登录信息已经过期"}
${reps} = <Response [200]>
Logs the given message with the given level.
${reps}
<Response [200]>
Fails if objects are unequal after converting them to strings.
${reps.json()["message"]}
successful
登录信息已经过期 != successful
登录信息已经过期 != successful
Test case contains no keywords.
Creates and returns a dictionary based on the given ``items``.
X-APP-ID=503258978847953924
X-FACTORY-ID=615992051053498368
Authorization=QNT ${gettoken}
${herder}
${herder} = {'X-APP-ID': '503258978847953924', 'X-FACTORY-ID': '615992051053498368', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA=='}
Create Session: create a HTTP session to a server
ZTBF
https://api-client-ztb-test.qniao.cn
${herder}
Creating Session using : alias=ZTBF, url=https://api-client-ztb-test.qniao.cn, headers={'X-APP-ID': '503258978847953924', 'X-FACTORY-ID': '615992051053498368', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA=='}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0
Sends a GET request on a previously created HTTP Session.
ZTBF
recycle-user-center/get/self-department-role-list
json={pageNum=1&pageSize=10&legalPersonName=13517986787&enterpriseName=%E7%B3%A0%E5%95%8A}
${reps}
GET Request : url=https://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-role-list
path_url=/recycle-user-center/get/self-department-role-list
headers={'User-Agent': 'python-requests/2.26.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'X-APP-ID': '503258978847953924', 'X-FACTORY-ID': '615992051053498368', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA==', 'Content-Length': '87', 'Content-Type': 'application/json'}
body=b'"{pageNum=1&pageSize=10&legalPersonName=13517986787&enterpriseName=%E7%B3%A0%E5%95%8A}"'
GET Response : url=https://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-role-list
status=400, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Wed, 01 Dec 2021 06:11:24 GMT', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive'}
body={"code":400,"message":"Required Long parameter 'enterpriseDepartmentId' is not present","data":null}
/usr/local/python3/lib/python3.6/site-packages/urllib3/connectionpool.py:1020: InsecureRequestWarning: Unverified HTTPS request is being made to host 'api-client-ztb-test.qniao.cn'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/1.26.x/advanced-usage.html#ssl-warnings
InsecureRequestWarning,
HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-role-list
HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-role-list
Critical Tests
All Tests
Ztb-Factory-Rf-Api
Ztb-Factory-Rf-Api.Login
Ztb-Factory-Rf-Api.Login.Factory
Ztb-Factory-Rf-Api.ZTB小程序
Ztb-Factory-Rf-Api.ZTB小程序.出货
Ztb-Factory-Rf-Api.ZTB小程序.厂内收货
Ztb-Factory-Rf-Api.ZTB小程序.厂外收货
Ztb-Factory-Rf-Api.ZTB小程序.常规代卖
Ztb-Factory-Rf-Api.ZTB小程序.登录
Ztb-Factory-Rf-Api.系统设置
Ztb-Factory-Rf-Api.系统设置.员工管理