You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
3195 lines
235 KiB
3195 lines
235 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<robot generator="Robot 3.1.2 (Python 3.6.8 on linux)" generated="20211201 14:11:22.134" rpa="false">
|
|
<suite id="s1" name="Ztb-Factory-Rf-Api" source="/root/ztb-factory-rf-api">
|
|
<suite id="s1-s1" name="Login" source="/root/ztb-factory-rf-api/Login">
|
|
<suite id="s1-s1-s1" name="Factory" source="/root/ztb-factory-rf-api/Login/factory.robot">
|
|
<test id="s1-s1-s1-t1" name="login">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953924</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.256" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.255" endtime="20211201 14:11:22.256"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTBF</arg>
|
|
<arg>https://api-client-uec-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.257" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.257" endtime="20211201 14:11:22.257"></status>
|
|
</kw>
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>account=13517986787</arg>
|
|
<arg>captcha=888888</arg>
|
|
<arg>accountType=2</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.258" level="INFO">${data} = {'account': '13517986787', 'captcha': '888888', 'accountType': '2'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.257" endtime="20211201 14:11:22.258"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.258" level="INFO">{'account': '13517986787', 'captcha': '888888', 'accountType': '2'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.258" endtime="20211201 14:11:22.258"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTBF</arg>
|
|
<arg>/uec/authorize/by-captcha</arg>
|
|
<arg>json=${data}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${respones}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.378" level="INFO">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"}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.378" level="INFO">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"}}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.378" level="INFO">/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,</msg>
|
|
<msg timestamp="20211201 14:11:22.378" level="INFO">${respones} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.258" endtime="20211201 14:11:22.378"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${respones.json()["data"]}</arg>
|
|
<arg>token</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${gettoken}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.379" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.379" endtime="20211201 14:11:22.379"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${gettoken}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.380" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.379" endtime="20211201 14:11:22.380"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:22.255" endtime="20211201 14:11:22.380" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s1-s1-t2" name="login-token">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json;charset=UTF-8</arg>
|
|
<arg>X-APP-ID=503258978847953924</arg>
|
|
<arg>Authorization=QNT ${gettoken}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.381" level="INFO">${header} = {'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847953924', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOk2liWDM+3OSEYlgr+uHuLuQ=='}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.381" endtime="20211201 14:11:22.381"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>https://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.381" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.381" endtime="20211201 14:11:22.382"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==","signType":1,"sign":"485c081cb954d1fd6d448c939e9f5b1d","signStr":"{\"loginToken\":\"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==\",\"signType\":1}"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.382" level="INFO">${data} = {"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEViRwIt3pF89Av3SPmQ/4DDkNTf2tJix8dVTigIo/0C2A==","signType":1,"sign":"485c081cb954d1fd6d448c939e9f5b1d","signStr":"{"loginToken":"iHP4V/g6O5DXHi...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.382" endtime="20211201 14:11:22.382"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>recycle-user-center/authorize/get/product-line-token/by/login-token</arg>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${respones}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.525" level="INFO">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}"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.525" level="INFO">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}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.526" level="INFO">/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,</msg>
|
|
<msg timestamp="20211201 14:11:22.527" level="FAIL">HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.382" endtime="20211201 14:11:22.527"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.380" endtime="20211201 14:11:22.527" critical="yes">HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/authorize/get/product-line-token/by/login-token</status>
|
|
</test>
|
|
<status status="FAIL" starttime="20211201 14:11:22.245" endtime="20211201 14:11:22.528"></status>
|
|
</suite>
|
|
<status status="FAIL" starttime="20211201 14:11:22.242" endtime="20211201 14:11:22.528"></status>
|
|
</suite>
|
|
<suite id="s1-s2" name="ZTB小程序" source="/root/ztb-factory-rf-api/ZTB小程序">
|
|
<suite id="s1-s2-s1" name="出货" source="/root/ztb-factory-rf-api/ZTB小程序/出货.robot">
|
|
<test id="s1-s2-s1-t1" name="选择收货方">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.536" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.535" endtime="20211201 14:11:22.536"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.536" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.536" endtime="20211201 14:11:22.537"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factorydeliverychannel/get/self-factory-delivery-channel-list?</arg>
|
|
<arg>params=pageNum=1&pageSize=20</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.556" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.556" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.556" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.537" endtime="20211201 14:11:22.556"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>name</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${Name of consignee}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.557" level="FAIL">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.556" endtime="20211201 14:11:22.557"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.534" endtime="20211201 14:11:22.557" critical="yes">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s1-t2" name="创建出货单">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.560" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.559" endtime="20211201 14:11:22.560"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.560" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.560" endtime="20211201 14:11:22.561"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"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"]}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.562" level="FAIL">Variable '${Name of consignee}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.561" endtime="20211201 14:11:22.562"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.558" endtime="20211201 14:11:22.563" critical="yes">Variable '${Name of consignee}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s1-t3" name="OrderID">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.564" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.563" endtime="20211201 14:11:22.564"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.564" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.564" endtime="20211201 14:11:22.565"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/get/outbound-delivery-order-list?</arg>
|
|
<arg>params=pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.583" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.583" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.583" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.565" endtime="20211201 14:11:22.583"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${reps}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.584" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.584" endtime="20211201 14:11:22.584"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${OrderID}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.585" level="FAIL">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.584" endtime="20211201 14:11:22.585"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.563" endtime="20211201 14:11:22.585" critical="yes">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s1-t4" name="审核">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.587" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.586" endtime="20211201 14:11:22.587"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.587" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.587" endtime="20211201 14:11:22.587"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${OrderID}","auditStatus":1}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.588" level="FAIL">Variable '${OrderID}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.588" endtime="20211201 14:11:22.588"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.585" endtime="20211201 14:11:22.588" critical="yes">Variable '${OrderID}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s1-t5" name="确认收款">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.590" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.589" endtime="20211201 14:11:22.590"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.590" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.590" endtime="20211201 14:11:22.591"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"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"]}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.591" level="FAIL">Variable '${OrderID}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.591" endtime="20211201 14:11:22.591"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.589" endtime="20211201 14:11:22.592" critical="yes">Variable '${OrderID}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s1-t6" name="Close_order">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.593" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.592" endtime="20211201 14:11:22.593"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.593" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.593" endtime="20211201 14:11:22.593"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${OrderID}","auditStatus":0}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.594" level="FAIL">Variable '${OrderID}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.593" endtime="20211201 14:11:22.594"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.592" endtime="20211201 14:11:22.594" critical="yes">Variable '${OrderID}' not found.</status>
|
|
</test>
|
|
<status status="FAIL" starttime="20211201 14:11:22.531" endtime="20211201 14:11:22.595"></status>
|
|
</suite>
|
|
<suite id="s1-s2-s2" name="厂内收货" source="/root/ztb-factory-rf-api/ZTB小程序/厂内收货.robot">
|
|
<test id="s1-s2-s2-t1" name="login">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json;charset=utf-8</arg>
|
|
<arg>X-APP-ID=503258978847953927</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.600" level="INFO">${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.600" endtime="20211201 14:11:22.600"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-uec-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.601" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.600" endtime="20211201 14:11:22.601"></status>
|
|
</kw>
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>account=13517986787</arg>
|
|
<arg>captcha=888888</arg>
|
|
<arg>accountType=2</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.601" level="INFO">${data} = {'account': '13517986787', 'captcha': '888888', 'accountType': '2'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.601" endtime="20211201 14:11:22.601"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.602" level="INFO">{'account': '13517986787', 'captcha': '888888', 'accountType': '2'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.601" endtime="20211201 14:11:22.602"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/uec/authorize/by-captcha</arg>
|
|
<arg>json=${data}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${respones}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.652" level="INFO">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"}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.652" level="INFO">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"}}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.652" level="INFO">${respones} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.602" endtime="20211201 14:11:22.652"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${respones.json()["data"]}</arg>
|
|
<arg>token</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${gettoken}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.653" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.652" endtime="20211201 14:11:22.653"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${gettoken}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.653" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.653" endtime="20211201 14:11:22.654"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:22.599" endtime="20211201 14:11:22.654" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s2-t2" name="login_token">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json;charset=utf-8</arg>
|
|
<arg>X-APP-ID=503258978847953927</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.655" level="INFO">${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.654" endtime="20211201 14:11:22.655"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.655" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.655" endtime="20211201 14:11:22.655"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"loginToken":"${gettoken}"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${token}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.656" level="INFO">${token} = {"loginToken":"iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA=="}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.656" endtime="20211201 14:11:22.656"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/recycle-user-center/authorize/get/product-line-token/by/login-token</arg>
|
|
<arg>${token}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${res}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.774" level="INFO">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=="}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.774" level="INFO">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"}}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.774" level="INFO">${res} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.656" endtime="20211201 14:11:22.774"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${res.json()}</arg>
|
|
<arg>data</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${gettoken}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.775" level="INFO">${gettoken} = {'token': 'iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==', 'userToken': None, 'userId': '609432405077528576'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.774" endtime="20211201 14:11:22.775"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${gettoken}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.776" level="INFO">${gettoken} = {'token': 'iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiusHHsF2gTKJOp2uD1V9V3R40xE0fZgZKfHZCc8DMAxhA==', 'userToken': None, 'userId': '609432405077528576'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.775" endtime="20211201 14:11:22.776"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:22.654" endtime="20211201 14:11:22.776" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s2-t3" name="刷卡创建磅单">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json;charset=utf-8</arg>
|
|
<arg>X-APP-ID=503258978847953927</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.778" level="INFO">${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.777" endtime="20211201 14:11:22.778"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.778" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.778" endtime="20211201 14:11:22.779"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"cardNo":"2836962348","weight":4000.0}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.779" level="INFO">${data} = {"cardNo":"2836962348","weight":4000.0}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.779" endtime="20211201 14:11:22.779"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory-customer/save/order</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.804" level="INFO">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}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.804" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.804" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.779" endtime="20211201 14:11:22.804"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>毛重称重成功,请下地磅</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.805" level="FAIL">登录信息已经过期 != 毛重称重成功,请下地磅</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.805" endtime="20211201 14:11:22.805"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.776" endtime="20211201 14:11:22.806" critical="yes">登录信息已经过期 != 毛重称重成功,请下地磅</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t4" name="选择客户">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.807" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.807" endtime="20211201 14:11:22.807"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.808" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.807" endtime="20211201 14:11:22.808"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/get/customer-list?</arg>
|
|
<arg>params=name=&pageNum=1&pageSize=1500</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.825" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.825" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.825" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.808" endtime="20211201 14:11:22.825"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][3]}</arg>
|
|
<arg>name</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${name}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.826" level="FAIL">Resolving variable '${reps.json()["data"]["records"][3]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.825" endtime="20211201 14:11:22.826"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.806" endtime="20211201 14:11:22.826" critical="yes">Resolving variable '${reps.json()["data"]["records"][3]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t5" name="In_plant_receipt_order_ID">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.828" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.827" endtime="20211201 14:11:22.828"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.828" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.828" endtime="20211201 14:11:22.829"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/wechat-applet/get/order-list?</arg>
|
|
<arg>params=status=1&pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.846" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.846" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.846" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.829" endtime="20211201 14:11:22.846"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${reps}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.847" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.846" endtime="20211201 14:11:22.847"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${id}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.847" level="FAIL">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.847" endtime="20211201 14:11:22.847"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.827" endtime="20211201 14:11:22.847" critical="yes">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t6" name="picture">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json;charset=utf-8</arg>
|
|
<arg>X-APP-ID=503258978847953927</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.849" level="INFO">${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.848" endtime="20211201 14:11:22.849"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.849" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.849" endtime="20211201 14:11:22.849"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"orderId":"${id}","imageUrl":"https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18843304679102985.jpg","index":"1"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.850" level="FAIL">Variable '${id}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.850" endtime="20211201 14:11:22.850"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.848" endtime="20211201 14:11:22.850" critical="yes">Variable '${id}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t7" name="picture2">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json;charset=utf-8</arg>
|
|
<arg>X-APP-ID=503258978847953927</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQIF6J45eF3ZTmsbGC5bnSp3E+o8YPe3Q==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.852" level="INFO">${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyitYBjC62H1kESQ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.851" endtime="20211201 14:11:22.852"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.852" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.852" endtime="20211201 14:11:22.852"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"orderId":"${id}","imageUrl":"https://qncloudtest.oss-cn-shenzhen.aliyuncs.com/common/18843304678604194.jpg","index":"0"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.853" level="FAIL">Variable '${id}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.852" endtime="20211201 14:11:22.853"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.851" endtime="20211201 14:11:22.853" critical="yes">Variable '${id}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t8" name="(新建磅单)">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.855" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.854" endtime="20211201 14:11:22.855"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.855" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.855" endtime="20211201 14:11:22.856"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"deductType":1,"isWithoutTare":0,"factoryCustomerId":"71","factoryCustomerName":"${name}","netWeight":"6666","settleWeight":"6666","productId":"615900170974007296","konePrice":"指导价格:4","unitPrice":"","productName":"纯工厂纸边","settleUnitPrice":"4"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.856" level="FAIL">Variable '${name}' not found. Did you mean:
|
|
${TEST_NAME}</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.856" endtime="20211201 14:11:22.856"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.853" endtime="20211201 14:11:22.857" critical="yes">Variable '${name}' not found. Did you mean:
|
|
${TEST_NAME}</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t9" name="(New_pound_ID)">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuiqnv03Ce90k8lyCqBgV+kuJyHadOjvbNa1jfdMbMETA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.858" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuiqnv03Ce90k8lyCqBgV+kuJyHadOjvbNa1jfdMbMETA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.857" endtime="20211201 14:11:22.858"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.858" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.858" endtime="20211201 14:11:22.859"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/wechat-applet/get/order-list?s</arg>
|
|
<arg>params=status=3&pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.878" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.878" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.878" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.859" endtime="20211201 14:11:22.878"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${reps}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.879" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.878" endtime="20211201 14:11:22.879"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${New_pound_ID}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.879" level="FAIL">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.879" endtime="20211201 14:11:22.879"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.857" endtime="20211201 14:11:22.879" critical="yes">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t10" name="定价-提交订单">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.881" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.881" endtime="20211201 14:11:22.881"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>createorder</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.882" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.881" endtime="20211201 14:11:22.882"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>/ztb-factory/factory/submit/order-price</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${url}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.882" level="INFO">${url} = /ztb-factory/factory/submit/order-price</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.882" endtime="20211201 14:11:22.882"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${id}","plateNumber":"京A10000","productId":"633721764358262784","deductType":1,"unitPrice":2,"isWithoutTare":0}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.883" level="FAIL">Variable '${id}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.882" endtime="20211201 14:11:22.883"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.880" endtime="20211201 14:11:22.883" critical="yes">Variable '${id}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t11" name="待过皮重">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json;charset=utf-8</arg>
|
|
<arg>X-APP-ID=503258978847953927</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiuMfHLAaXugsKJ9qcZh0Y0JqoFugtUcc8kzJGfkpKk9yA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.885" level="INFO">${header} = {'Content-Type': 'application/json;charset=utf-8', 'X-APP-ID': '503258978847953927', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tqSIb9o9ED1tXJI+IS+QyiuMfHLAaXugsKJ9qcZh0Y0JqoFugtUcc8kzJGfkpKk9yA==', 'X...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.884" endtime="20211201 14:11:22.885"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.885" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.885" endtime="20211201 14:11:22.885"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"cardNo":"2836962348","weight":2000.0}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.886" level="INFO">${data} = {"cardNo":"2836962348","weight":2000.0}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.885" endtime="20211201 14:11:22.886"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory-customer/save/order</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.908" level="INFO">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}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.908" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.908" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.886" endtime="20211201 14:11:22.908"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>皮重称重成功、正在打印磅单</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.909" level="FAIL">登录信息已经过期 != 皮重称重成功、正在打印磅单</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.908" endtime="20211201 14:11:22.909"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.884" endtime="20211201 14:11:22.909" critical="yes">登录信息已经过期 != 皮重称重成功、正在打印磅单</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t12" name="过磅审核">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.911" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.911" endtime="20211201 14:11:22.911"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.911" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.911" endtime="20211201 14:11:22.912"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${id}"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.912" level="FAIL">Variable '${id}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.912" endtime="20211201 14:11:22.913"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.910" endtime="20211201 14:11:22.913" critical="yes">Variable '${id}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t13" name="(现金支付)">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.914" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.914" endtime="20211201 14:11:22.914"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.915" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.914" endtime="20211201 14:11:22.915"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"settleType":1,"ids":["${id}"]}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.916" level="FAIL">Variable '${id}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.915" endtime="20211201 14:11:22.916"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.913" endtime="20211201 14:11:22.916" critical="yes">Variable '${id}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t14" name="Qianniao_payment">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu0uPnrRpYjDgoomxi7YXg7P61PQp7sfpe1Oh8c4VFAPQ==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.917" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu0uPnrRpYjDgoomxi7YXg7P61PQp7sfpe1Oh8c4VFAPQ==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.917" endtime="20211201 14:11:22.917"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.917" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.917" endtime="20211201 14:11:22.918"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"settleType":3,"ids":["${id}"]}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.918" level="FAIL">Variable '${id}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:22.918" endtime="20211201 14:11:22.918"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.916" endtime="20211201 14:11:22.919" critical="yes">Variable '${id}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t15" name="In_plant_order_payment_ID">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json, text/plain, */*</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.920" level="INFO">${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.919" endtime="20211201 14:11:22.920"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.920" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.920" endtime="20211201 14:11:22.921"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/admin/get/agency-payment-order-audit-request-list?</arg>
|
|
<arg>params=pageNum=1&pageSize=10&status=</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.978" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.978" level="INFO">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)
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:22.978" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.921" endtime="20211201 14:11:22.978"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${In_plant_order_payment_ID}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.979" level="INFO">${In_plant_order_payment_ID} = 663142896081440768</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.979" endtime="20211201 14:11:22.979"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${In_plant_order_payment_ID}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.980" level="INFO">${In_plant_order_payment_ID} = 663142896081440768</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.980" endtime="20211201 14:11:22.980"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:22.919" endtime="20211201 14:11:22.980" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s2-t16" name="to_examine">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.981" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.981" endtime="20211201 14:11:22.981"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.982" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.982" endtime="20211201 14:11:22.982"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${In_plant_order_payment_ID}","remark":"","status":1}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:22.983" level="INFO">${data} = {"id":"663142896081440768","remark":"","status":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.982" endtime="20211201 14:11:22.983"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:22.983" level="INFO">{"id":"663142896081440768","remark":"","status":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.983" endtime="20211201 14:11:22.983"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/admin/audit/agency-payment-order-audit-request</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.037" level="INFO">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}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.037" level="INFO">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}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.038" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:22.983" endtime="20211201 14:11:23.038"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${reps}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.038" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.038" endtime="20211201 14:11:23.038"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>successful</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.039" level="FAIL">已提交申请,请勿重复提交 != successful</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.039" endtime="20211201 14:11:23.039"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:22.981" endtime="20211201 14:11:23.040" critical="yes">已提交申请,请勿重复提交 != successful</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t17" name="Payment_agent_ID">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json, text/plain, */*</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.041" level="INFO">${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.040" endtime="20211201 14:11:23.041"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-psc-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.041" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.041" endtime="20211201 14:11:23.042"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/payment-settlement-center/admin/get/agency-payment-order-payable-list?</arg>
|
|
<arg>params=status=&pageNum=1&pageSize=10</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.211" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.211" level="INFO">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)
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.212" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.042" endtime="20211201 14:11:23.212"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${Payment_agent_ID}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.213" level="INFO">${Payment_agent_ID} = 663392100741681152</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.212" endtime="20211201 14:11:23.213"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${Payment_agent_ID}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.213" level="INFO">${Payment_agent_ID} = 663392100741681152</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.213" endtime="20211201 14:11:23.213"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.040" endtime="20211201 14:11:23.214" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s2-t18" name="confirm_the_payment">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.215" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.214" endtime="20211201 14:11:23.215"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-psc-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.215" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.215" endtime="20211201 14:11:23.216"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${Payment_agent_ID}","isMergePayment":0,"auditStatus":1}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.216" level="INFO">${data} = {"id":"663392100741681152","isMergePayment":0,"auditStatus":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.216" endtime="20211201 14:11:23.216"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/payment-settlement-center/admin/audit/agency-payment-order-payable/${id}</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.217" level="FAIL">Variable '${id}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.216" endtime="20211201 14:11:23.217"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.214" endtime="20211201 14:11:23.217" critical="yes">Variable '${id}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t19" name="settlement">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.218" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyucznWFlK1sT1Gqwwh19jI0CPso1RivaPRJIqV1679Xpg==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.218" endtime="20211201 14:11:23.218"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.219" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.218" endtime="20211201 14:11:23.219"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/wechat-applet/get/order-list?</arg>
|
|
<arg>params=status=42&pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.232" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.232" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.233" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.219" endtime="20211201 14:11:23.233"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>successful</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.233" level="FAIL">登录信息已经过期 != successful</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.233" endtime="20211201 14:11:23.234"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.217" endtime="20211201 14:11:23.234" critical="yes">登录信息已经过期 != successful</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t20" name="Pay_ID">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.235" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.234" endtime="20211201 14:11:23.235"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.235" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.235" endtime="20211201 14:11:23.236"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/wechat-applet/get/order-list?</arg>
|
|
<arg>params=status=42&pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.254" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.255" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.255" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.236" endtime="20211201 14:11:23.255"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${Pay_ID}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.256" level="FAIL">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.255" endtime="20211201 14:11:23.256"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.234" endtime="20211201 14:11:23.256" critical="yes">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s2-t21" name="Cash_payment_after_settlement">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuZrhORHq6RxTlhcEFR6khLMz37yo2eZhxL+5rBzf3zNg==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.257" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyuZrhORHq6RxTlhcEFR6khLMz37yo2eZhxL+5rBzf3zNg==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.257" endtime="20211201 14:11:23.257"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.258" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.257" endtime="20211201 14:11:23.258"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"settleType":1,"ids":["${Pay_ID}"]}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.259" level="FAIL">Variable '${Pay_ID}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.258" endtime="20211201 14:11:23.259"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.256" endtime="20211201 14:11:23.259" critical="yes">Variable '${Pay_ID}' not found.</status>
|
|
</test>
|
|
<status status="FAIL" starttime="20211201 14:11:22.596" endtime="20211201 14:11:23.260"></status>
|
|
</suite>
|
|
<suite id="s1-s2-s3" name="厂外收货" source="/root/ztb-factory-rf-api/ZTB小程序/厂外收货.robot">
|
|
<test id="s1-s2-s3-t1" name="新建订单">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu8NIrdTFgIEUqQjG1iIScYRz66I1L+T2QOQkx3oG6hYw==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.267" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyu8NIrdTFgIEUqQjG1iIScYRz66I1L+T2QOQkx3oG6hYw=='}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.267" endtime="20211201 14:11:23.267"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.268" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.267" endtime="20211201 14:11:23.268"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/get/all-product?</arg>
|
|
<arg>json={pageNum=1&pageSize=100}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.284" level="INFO">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}"'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.284" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.284" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.268" endtime="20211201 14:11:23.284"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.266" endtime="20211201 14:11:23.285" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s3-t2" name="选择客户">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytsGGi+AUHO80Gpq76XYxz5qApitKhzjoiq+6aX4El3WA==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.286" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'X-FACTORY-ID': '615896891544178688', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytsGGi+AUHO80Gpq76XYxz5qApit...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.286" endtime="20211201 14:11:23.286"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.287" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.287" endtime="20211201 14:11:23.287"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/get/customer-list?</arg>
|
|
<arg>json={name=&pageNum=1&pageSize=1500}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.306" level="INFO">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}"'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.306" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.307" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.287" endtime="20211201 14:11:23.307"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][1]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${id}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.307" level="FAIL">Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.307" endtime="20211201 14:11:23.307"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.285" endtime="20211201 14:11:23.308" critical="yes">Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t3" name="选择车牌">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.309" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.309" endtime="20211201 14:11:23.309"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.310" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.309" endtime="20211201 14:11:23.310"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/get/factory-car-list</arg>
|
|
<arg>params=plateNumber=&pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.326" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.326" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.326" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.310" endtime="20211201 14:11:23.326"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][1]}</arg>
|
|
<arg>driverId</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${driverId}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.327" level="FAIL">Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.326" endtime="20211201 14:11:23.327"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.308" endtime="20211201 14:11:23.327" critical="yes">Resolving variable '${reps.json()["data"]["records"][1]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t4" name="选择司机">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.329" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvYlJSwUiSW7lxtWBKBm4P3ViqpdpO6/Za9ukqlcDXhDw==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.328" endtime="20211201 14:11:23.329"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.329" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.329" endtime="20211201 14:11:23.329"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/recycle-user-center/get/self-department-member-list?</arg>
|
|
<arg>json={enterpriseId=null&isPassFromBackstage=1}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.347" level="INFO">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}"'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.347" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.347" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.329" endtime="20211201 14:11:23.347"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>successful</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.348" level="FAIL">登录信息已经过期 != successful</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.347" endtime="20211201 14:11:23.349"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.327" endtime="20211201 14:11:23.349" critical="yes">登录信息已经过期 != successful</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t5" name="提交订单">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxys0yqz3cIoQSiIWq+krFr0ftczFPPHJe+iKqVytuJ1ckw==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.350" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxys0yqz3cIoQSiIWq+krFr0ftczFPPHJe+iKqVytuJ1ckw==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.350" endtime="20211201 14:11:23.350"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>createorder</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.351" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.351" endtime="20211201 14:11:23.351"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>/ztb-factory/create/scrap-paper-offsite-receipt-order</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${url}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.352" level="INFO">${url} = /ztb-factory/create/scrap-paper-offsite-receipt-order</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.351" endtime="20211201 14:11:23.352"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"productCategoryInfos":[{"productId":"633721764358262784","productCategoryName":"勇兰废塑料三级","unitPrice":"2","konePrice":"指导价格:2","highestUnitPrice":null,"lowestUnitPrice":0}],"predictDeliveryToFactoryTime":null,"factoryCustomerId":"71","factoryCustomerName":"糠总了不得","driverId":"624651125643153408","plateNumber":"赣H97667","driverName":"余镇"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.352" level="INFO">${data} = {"productCategoryInfos":[{"productId":"633721764358262784","productCategoryName":"勇兰废塑料三级","unitPrice":"2","konePrice":"指导价格:2","highestUnitPrice":null,"lowestUnitPrice":0}],"predictDeliveryToFactoryT...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.352" endtime="20211201 14:11:23.352"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.352" level="INFO">{"productCategoryInfos":[{"productId":"633721764358262784","productCategoryName":"勇兰废塑料三级","unitPrice":"2","konePrice":"指导价格:2","highestUnitPrice":null,"lowestUnitPrice":0}],"predictDeliveryToFactoryTime":null,"factoryCustomerId":"71","factoryCustomerName":"糠总了不得","driverId":"624651125643153408","plateNumber":"赣H97667","driverName":"余镇"}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.352" endtime="20211201 14:11:23.352"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>createorder</arg>
|
|
<arg>${url}</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.375" level="INFO">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"}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.375" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.376" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.352" endtime="20211201 14:11:23.376"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${reps}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.376" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.376" endtime="20211201 14:11:23.376"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>successful</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.377" level="FAIL">登录信息已经过期 != successful</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.377" endtime="20211201 14:11:23.377"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.349" endtime="20211201 14:11:23.378" critical="yes">登录信息已经过期 != successful</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t6" name="订单ID变量">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3yfEzRxK716gkM6NVpNEepSQ==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.379" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3yfEzRxK716gkM6NVpNEepSQ==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.379" endtime="20211201 14:11:23.379"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.380" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.379" endtime="20211201 14:11:23.380"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/get/scrap-paper-offsite-receipt-order-list?</arg>
|
|
<arg>params=orderStatus=0&pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.397" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.397" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.397" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.380" endtime="20211201 14:11:23.397"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>orderId</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${orderId}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.398" level="FAIL">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.398" endtime="20211201 14:11:23.398"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.378" endtime="20211201 14:11:23.398" critical="yes">Resolving variable '${reps.json()["data"]["records"][0]}' failed: KeyError: 'data'</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t7" name="点击收货">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.400" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyui4bqxmdDqLckVrE1TtxeFcJa75PJgXSKmYDdnhKpNlQ==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.399" endtime="20211201 14:11:23.400"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.400" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.400" endtime="20211201 14:11:23.401"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/get/scrap-paper-offsite-receipt-order-detail?</arg>
|
|
<arg>params=id=${orderId}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.402" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.401" endtime="20211201 14:11:23.402"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.399" endtime="20211201 14:11:23.402" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t8" name="收货提交订单">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.404" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.403" endtime="20211201 14:11:23.404"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>createorder</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.404" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.404" endtime="20211201 14:11:23.404"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>/ztb-factory/submit/scrap-paper-offsite-receipt-weight-note</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${url}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.405" level="INFO">${url} = /ztb-factory/submit/scrap-paper-offsite-receipt-weight-note</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.405" endtime="20211201 14:11:23.405"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"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"]}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.406" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.405" endtime="20211201 14:11:23.406"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.402" endtime="20211201 14:11:23.406" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t9" name="确认定价">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvUpDa/cGBYvqW67g8p9HMp16JHEJ5NGVtmE6E5M4VrNw==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.407" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvUpDa/cGBYvqW67g8p9HMp16JHEJ5NGVtmE6E5M4VrNw==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.407" endtime="20211201 14:11:23.407"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.408" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.407" endtime="20211201 14:11:23.408"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"scrapPaperReceiptId":"${orderId}","productCategorySettleInfoDtoList":[{"productId":"633721764358262784","scrapPaperPurchaseOrderId":"${scrapPaperPurchaseOrderId}","deductWeight":null,"deductPercent":null,"settleUnitPrice":2}]}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.409" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.408" endtime="20211201 14:11:23.409"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.406" endtime="20211201 14:11:23.409" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t10" name="通过审核">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.410" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytljdLUjLBNZ7rdeOMcRu3y2aPVCz08J1Ck1F5bA+myJw==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.410" endtime="20211201 14:11:23.410"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.411" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.410" endtime="20211201 14:11:23.411"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"scrapPaperReceiptId":"${orderId} "}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.412" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.411" endtime="20211201 14:11:23.412"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.409" endtime="20211201 14:11:23.412" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t11" name="代付款">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.413" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA=='}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.413" endtime="20211201 14:11:23.413"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.414" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.413" endtime="20211201 14:11:23.414"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/get/scrap-paper-offsite-receipt-order-list?</arg>
|
|
<arg>params=orderStatus=4&pageNum=1&pageSize=15</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.431" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.431" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.431" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.414" endtime="20211201 14:11:23.431"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.412" endtime="20211201 14:11:23.431" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s3-t12" name="现金支付">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.433" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.432" endtime="20211201 14:11:23.433"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.433" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.433" endtime="20211201 14:11:23.434"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"settleType":1,"ids":["${orderId}"],"bankCardNo":null}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.435" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.434" endtime="20211201 14:11:23.435"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.432" endtime="20211201 14:11:23.435" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t13" name="Qianniao_payment">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.436" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.435" endtime="20211201 14:11:23.436"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.436" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.436" endtime="20211201 14:11:23.437"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"settleType":3,"ids":["${orderId}"],"bankCardNo":null}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.437" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.437" endtime="20211201 14:11:23.437"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.435" endtime="20211201 14:11:23.438" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t14" name="代付中">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA==</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.439" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyvjanVte0a4+OL04IYp1mlXPBuO1SprGtGY/6yAATzvcA=='}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.439" endtime="20211201 14:11:23.439"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.439" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.439" endtime="20211201 14:11:23.440"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/get/scrap-paper-offsite-receipt-order-detail?</arg>
|
|
<arg>params=id=${orderId}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.440" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.440" endtime="20211201 14:11:23.441"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.438" endtime="20211201 14:11:23.441" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t15" name="In_plant_order_payment_ID">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json, text/plain, */*</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.442" level="INFO">${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.441" endtime="20211201 14:11:23.442"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.442" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.442" endtime="20211201 14:11:23.443"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/admin/get/agency-payment-order-audit-request-list?</arg>
|
|
<arg>params=pageNum=1&pageSize=10&status=</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.492" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.492" level="INFO">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)
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.493" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.443" endtime="20211201 14:11:23.493"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${id}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.494" level="INFO">${id} = 663142896081440768</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.493" endtime="20211201 14:11:23.494"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${id}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.494" level="INFO">${id} = 663142896081440768</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.494" endtime="20211201 14:11:23.494"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.441" endtime="20211201 14:11:23.495" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s3-t16" name="to_examine">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.496" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.495" endtime="20211201 14:11:23.496"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.496" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.496" endtime="20211201 14:11:23.496"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${id}","remark":"","status":1}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.497" level="INFO">${data} = {"id":"663142896081440768","remark":"","status":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.497" endtime="20211201 14:11:23.497"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.497" level="INFO">{"id":"663142896081440768","remark":"","status":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.497" endtime="20211201 14:11:23.497"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/admin/audit/agency-payment-order-audit-request</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.545" level="INFO">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}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.545" level="INFO">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}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.545" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.497" endtime="20211201 14:11:23.545"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${reps}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.546" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.545" endtime="20211201 14:11:23.546"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>successful</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.547" level="FAIL">已提交申请,请勿重复提交 != successful</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.546" endtime="20211201 14:11:23.547"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.495" endtime="20211201 14:11:23.547" critical="yes">已提交申请,请勿重复提交 != successful</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t17" name="Payment_agent_ID">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json, text/plain, */*</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.549" level="INFO">${header} = {'Content-Type': 'application/json, text/plain, */*', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.548" endtime="20211201 14:11:23.549"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-psc-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.549" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.549" endtime="20211201 14:11:23.550"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/payment-settlement-center/admin/get/agency-payment-order-payable-list?</arg>
|
|
<arg>params=status=&pageNum=1&pageSize=10</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.592" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.592" level="INFO">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)
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.592" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.550" endtime="20211201 14:11:23.592"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["data"]["records"][0]}</arg>
|
|
<arg>id</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${id}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.593" level="INFO">${id} = 663392100741681152</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.593" endtime="20211201 14:11:23.593"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${id}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.594" level="INFO">${id} = 663392100741681152</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.594" endtime="20211201 14:11:23.594"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.548" endtime="20211201 14:11:23.594" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s3-t18" name="confirm_the_payment">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
<arg>Authorization=Token 906b281653681738294c0f55aa929960</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.595" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '470236309865238555', 'Authorization': 'Token 906b281653681738294c0f55aa929960'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.595" endtime="20211201 14:11:23.595"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-ops-psc-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.596" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.596" endtime="20211201 14:11:23.596"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"id":"${id}","isMergePayment":0,"auditStatus":1}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.596" level="INFO">${data} = {"id":"663392100741681152","isMergePayment":0,"auditStatus":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.596" endtime="20211201 14:11:23.597"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/payment-settlement-center/admin/audit/agency-payment-order-payable/${id}</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.719" level="INFO">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}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.719" level="INFO">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}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.720" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.597" endtime="20211201 14:11:23.720"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>successful</arg>
|
|
</arguments>
|
|
<status status="PASS" starttime="20211201 14:11:23.720" endtime="20211201 14:11:23.721"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.594" endtime="20211201 14:11:23.721" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s3-t19" name="settlement">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.723" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.723" endtime="20211201 14:11:23.723"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.724" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.724" endtime="20211201 14:11:23.725"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/get/scrap-paper-offsite-receipt-order-detail?</arg>
|
|
<arg>params=id=${orderId}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.726" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.725" endtime="20211201 14:11:23.726"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.722" endtime="20211201 14:11:23.726" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<test id="s1-s2-s3-t20" name="Cash_payment_after_settlement">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.728" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyv3dVSzO4qvBw6diC4vAba7xBIVyqXLCmbEHlXrlSYgLA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.728" endtime="20211201 14:11:23.729"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.729" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.729" endtime="20211201 14:11:23.730"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"settleType":1,"ids":["${orderId}"],"bankCardNo":null}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.731" level="FAIL">Variable '${orderId}' not found.</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.730" endtime="20211201 14:11:23.731"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.727" endtime="20211201 14:11:23.732" critical="yes">Variable '${orderId}' not found.</status>
|
|
</test>
|
|
<status status="FAIL" starttime="20211201 14:11:23.262" endtime="20211201 14:11:23.733"></status>
|
|
</suite>
|
|
<suite id="s1-s2-s4" name="常规代卖" source="/root/ztb-factory-rf-api/ZTB小程序/常规代卖.robot">
|
|
<test id="s1-s2-s4-t1" name="新建订单">
|
|
<status status="FAIL" starttime="20211201 14:11:23.743" endtime="20211201 14:11:23.744" critical="yes">Test case contains no keywords.</status>
|
|
</test>
|
|
<status status="FAIL" starttime="20211201 14:11:23.736" endtime="20211201 14:11:23.744"></status>
|
|
</suite>
|
|
<suite id="s1-s2-s5" name="登录" source="/root/ztb-factory-rf-api/ZTB小程序/登录.robot">
|
|
<test id="s1-s2-s5-t1" name="UEClogin">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953924</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.753" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953924'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.752" endtime="20211201 14:11:23.753"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-uec-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.754" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.753" endtime="20211201 14:11:23.754"></status>
|
|
</kw>
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>account=13517986787</arg>
|
|
<arg>captcha=888888</arg>
|
|
<arg>accountType=2</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.755" level="INFO">${data} = {'account': '13517986787', 'captcha': '888888', 'accountType': '2'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.754" endtime="20211201 14:11:23.755"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.756" level="INFO">{'account': '13517986787', 'captcha': '888888', 'accountType': '2'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.755" endtime="20211201 14:11:23.756"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/uec/authorize/by-captcha</arg>
|
|
<arg>json=${data}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${respones}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.811" level="INFO">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"}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.811" level="INFO">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"}}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.811" level="INFO">${respones} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.756" endtime="20211201 14:11:23.811"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${respones.json()["data"]}</arg>
|
|
<arg>token</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${gettoken}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.812" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.812" endtime="20211201 14:11:23.812"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${gettoken}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.813" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.812" endtime="20211201 14:11:23.813"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.751" endtime="20211201 14:11:23.813" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s5-t2" name="ZTBlogin-token">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.814" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.814" endtime="20211201 14:11:23.814"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.814" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.814" endtime="20211201 14:11:23.815"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"loginToken":"${gettoken}"}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${token}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.815" level="INFO">${token} = {"loginToken":"iHP4V/g6O5DXHixyNrf7tiEqeqolNkEcjrvrx0L2SEU0lC4HqTe/UUBsS6I7eCOkfW9rN54q7FIlymosPw6N+w=="}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.815" endtime="20211201 14:11:23.815"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>recycle-user-center/authorize/get/product-line-token/by/login-token</arg>
|
|
<arg>${token}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${res}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.889" level="INFO">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=="}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.889" level="INFO">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=="}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.889" level="INFO">${res} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.815" endtime="20211201 14:11:23.889"></status>
|
|
</kw>
|
|
<kw name="Get From Dictionary" library="Collections">
|
|
<doc>Returns a value from the given ``dictionary`` based on the given ``key``.</doc>
|
|
<arguments>
|
|
<arg>${res.json()}</arg>
|
|
<arg>data</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${gettoken}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.890" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.890" endtime="20211201 14:11:23.890"></status>
|
|
</kw>
|
|
<kw name="Set Global Variable" library="BuiltIn">
|
|
<doc>Makes a variable available globally in all tests and suites.</doc>
|
|
<arguments>
|
|
<arg>${gettoken}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.891" level="INFO">${gettoken} = iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA==</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.890" endtime="20211201 14:11:23.891"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.813" endtime="20211201 14:11:23.891" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s5-t3" name="后台管理login">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/x-www-form-urlencoded</arg>
|
|
<arg>X-APP-ID=470236309865238555</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.893" level="INFO">${header} = {'Content-Type': 'application/x-www-form-urlencoded', 'X-APP-ID': '470236309865238555'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.892" endtime="20211201 14:11:23.893"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>后台管理</arg>
|
|
<arg>http://api-ops-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.894" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.893" endtime="20211201 14:11:23.894"></status>
|
|
</kw>
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>username=mengyan@qniao.cn</arg>
|
|
<arg>password=qn123456</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.895" level="INFO">${data} = {'username': 'mengyan@qniao.cn', 'password': 'qn123456'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.894" endtime="20211201 14:11:23.895"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.895" level="INFO">{'username': 'mengyan@qniao.cn', 'password': 'qn123456'}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.895" endtime="20211201 14:11:23.895"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>后台管理</arg>
|
|
<arg>/recycle-service/admin/login</arg>
|
|
<arg>data=${data}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${resp}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.944" level="INFO">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
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.944" level="INFO">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":"登陆成功"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.944" level="INFO">${resp} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.895" endtime="20211201 14:11:23.944"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${resp}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.945" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.945" endtime="20211201 14:11:23.945"></status>
|
|
</kw>
|
|
<status status="PASS" starttime="20211201 14:11:23.891" endtime="20211201 14:11:23.945" critical="yes"></status>
|
|
</test>
|
|
<test id="s1-s2-s5-t4" name="新建客户">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>Content-Type=application/json</arg>
|
|
<arg>X-APP-ID=503258978847953926</arg>
|
|
<arg>Authorization=QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==</arg>
|
|
<arg>X-FACTORY-ID=615896891544178688</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${header}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.947" level="INFO">${header} = {'Content-Type': 'application/json', 'X-APP-ID': '503258978847953926', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxyus0IM7YplqP6ckxwAnbYMwW8kjOtWm8KDrBFfLPEPpTA==', 'X-FACTORY-ID': ...</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.946" endtime="20211201 14:11:23.947"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>http://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${header}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.947" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.947" endtime="20211201 14:11:23.948"></status>
|
|
</kw>
|
|
<kw name="Set Variable" library="BuiltIn">
|
|
<doc>Returns the given values which can then be assigned to a variables.</doc>
|
|
<arguments>
|
|
<arg>{"cardNo":"","name":"吴彦祖","mobile":"13232323232","defaultPaymentMethod":1}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${data}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.948" level="INFO">${data} = {"cardNo":"","name":"吴彦祖","mobile":"13232323232","defaultPaymentMethod":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.948" endtime="20211201 14:11:23.948"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${data}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.949" level="INFO">{"cardNo":"","name":"吴彦祖","mobile":"13232323232","defaultPaymentMethod":1}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.949" endtime="20211201 14:11:23.949"></status>
|
|
</kw>
|
|
<kw name="Post On Session" library="RequestsLibrary">
|
|
<doc>Sends a POST request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTB</arg>
|
|
<arg>/ztb-factory/factory/save/customer</arg>
|
|
<arg>${data.encode('utf-8')}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.972" level="INFO">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}'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.972" level="INFO">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":"登录信息已经过期"}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:23.972" level="INFO">${reps} = <Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.949" endtime="20211201 14:11:23.972"></status>
|
|
</kw>
|
|
<kw name="Log" library="BuiltIn">
|
|
<doc>Logs the given message with the given level.</doc>
|
|
<arguments>
|
|
<arg>${reps}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.973" level="INFO"><Response [200]></msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.973" endtime="20211201 14:11:23.973"></status>
|
|
</kw>
|
|
<kw name="Should Be Equal As Strings" library="BuiltIn">
|
|
<doc>Fails if objects are unequal after converting them to strings.</doc>
|
|
<arguments>
|
|
<arg>${reps.json()["message"]}</arg>
|
|
<arg>successful</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.974" level="FAIL">登录信息已经过期 != successful</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.973" endtime="20211201 14:11:23.974"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.946" endtime="20211201 14:11:23.974" critical="yes">登录信息已经过期 != successful</status>
|
|
</test>
|
|
<test id="s1-s2-s5-t5" name="新建品类">
|
|
<status status="FAIL" starttime="20211201 14:11:23.974" endtime="20211201 14:11:23.975" critical="yes">Test case contains no keywords.</status>
|
|
</test>
|
|
<status status="FAIL" starttime="20211201 14:11:23.746" endtime="20211201 14:11:23.975"></status>
|
|
</suite>
|
|
<status status="FAIL" starttime="20211201 14:11:22.529" endtime="20211201 14:11:23.978"></status>
|
|
</suite>
|
|
<suite id="s1-s3" name="系统设置" source="/root/ztb-factory-rf-api/系统设置">
|
|
<suite id="s1-s3-s1" name="员工管理" source="/root/ztb-factory-rf-api/系统设置/员工管理.robot">
|
|
<test id="s1-s3-s1-t1" name="查看员工列表">
|
|
<kw name="Create Dictionary" library="BuiltIn">
|
|
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
|
|
<arguments>
|
|
<arg>X-APP-ID=503258978847953924</arg>
|
|
<arg>X-FACTORY-ID=615992051053498368</arg>
|
|
<arg>Authorization=QNT ${gettoken}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${herder}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:23.989" level="INFO">${herder} = {'X-APP-ID': '503258978847953924', 'X-FACTORY-ID': '615992051053498368', 'Authorization': 'QNT iHP4V/g6O5DXHixyNrf7tq/TvfrIdTfTGdH2F9klxytp7txxyFQt09rT89wxJhOFU+YLZFdh5PA10PEeikN6aA=='}</msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.988" endtime="20211201 14:11:23.989"></status>
|
|
</kw>
|
|
<kw name="Create Session" library="RequestsLibrary">
|
|
<doc>Create Session: create a HTTP session to a server</doc>
|
|
<arguments>
|
|
<arg>ZTBF</arg>
|
|
<arg>https://api-client-ztb-test.qniao.cn</arg>
|
|
<arg>${herder}</arg>
|
|
</arguments>
|
|
<msg timestamp="20211201 14:11:23.989" level="INFO">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 </msg>
|
|
<status status="PASS" starttime="20211201 14:11:23.989" endtime="20211201 14:11:23.990"></status>
|
|
</kw>
|
|
<kw name="Get On Session" library="RequestsLibrary">
|
|
<doc>Sends a GET request on a previously created HTTP Session.</doc>
|
|
<arguments>
|
|
<arg>ZTBF</arg>
|
|
<arg>recycle-user-center/get/self-department-role-list</arg>
|
|
<arg>json={pageNum=1&pageSize=10&legalPersonName=13517986787&enterpriseName=%E7%B3%A0%E5%95%8A}</arg>
|
|
</arguments>
|
|
<assign>
|
|
<var>${reps}</var>
|
|
</assign>
|
|
<msg timestamp="20211201 14:11:24.029" level="INFO">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}"'
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:24.029" level="INFO">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}
|
|
</msg>
|
|
<msg timestamp="20211201 14:11:24.030" level="INFO">/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,</msg>
|
|
<msg timestamp="20211201 14:11:24.030" level="FAIL">HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-role-list</msg>
|
|
<status status="FAIL" starttime="20211201 14:11:23.990" endtime="20211201 14:11:24.030"></status>
|
|
</kw>
|
|
<status status="FAIL" starttime="20211201 14:11:23.987" endtime="20211201 14:11:24.031" critical="yes">HTTPError: 400 Client Error: for url: https://api-client-ztb-test.qniao.cn/recycle-user-center/get/self-department-role-list</status>
|
|
</test>
|
|
<status status="FAIL" starttime="20211201 14:11:23.984" endtime="20211201 14:11:24.031"></status>
|
|
</suite>
|
|
<status status="FAIL" starttime="20211201 14:11:23.982" endtime="20211201 14:11:24.033"></status>
|
|
</suite>
|
|
<status status="FAIL" starttime="20211201 14:11:22.135" endtime="20211201 14:11:24.035"></status>
|
|
</suite>
|
|
<statistics>
|
|
<total>
|
|
<stat pass="13" fail="43">Critical Tests</stat>
|
|
<stat pass="13" fail="43">All Tests</stat>
|
|
</total>
|
|
<tag>
|
|
</tag>
|
|
<suite>
|
|
<stat pass="13" fail="43" id="s1" name="Ztb-Factory-Rf-Api">Ztb-Factory-Rf-Api</stat>
|
|
<stat pass="1" fail="1" id="s1-s1" name="Login">Ztb-Factory-Rf-Api.Login</stat>
|
|
<stat pass="1" fail="1" id="s1-s1-s1" name="Factory">Ztb-Factory-Rf-Api.Login.Factory</stat>
|
|
<stat pass="12" fail="41" id="s1-s2" name="ZTB小程序">Ztb-Factory-Rf-Api.ZTB小程序</stat>
|
|
<stat pass="0" fail="6" id="s1-s2-s1" name="出货">Ztb-Factory-Rf-Api.ZTB小程序.出货</stat>
|
|
<stat pass="4" fail="17" id="s1-s2-s2" name="厂内收货">Ztb-Factory-Rf-Api.ZTB小程序.厂内收货</stat>
|
|
<stat pass="5" fail="15" id="s1-s2-s3" name="厂外收货">Ztb-Factory-Rf-Api.ZTB小程序.厂外收货</stat>
|
|
<stat pass="0" fail="1" id="s1-s2-s4" name="常规代卖">Ztb-Factory-Rf-Api.ZTB小程序.常规代卖</stat>
|
|
<stat pass="3" fail="2" id="s1-s2-s5" name="登录">Ztb-Factory-Rf-Api.ZTB小程序.登录</stat>
|
|
<stat pass="0" fail="1" id="s1-s3" name="系统设置">Ztb-Factory-Rf-Api.系统设置</stat>
|
|
<stat pass="0" fail="1" id="s1-s3-s1" name="员工管理">Ztb-Factory-Rf-Api.系统设置.员工管理</stat>
|
|
</suite>
|
|
</statistics>
|
|
<errors>
|
|
</errors>
|
|
</robot>
|