Browse Source

新增获取授信额度、原纸行情、纸品管理:分类、纸厂、品牌

pull/7/head
梁金满 4 years ago
parent
commit
a183c4e6a7
3 changed files with 0 additions and 4746 deletions
  1. 2125
      log.html
  2. 190
      output.xml
  3. 2431
      report.html

2125
log.html
File diff suppressed because it is too large
View File

190
output.xml

@ -1,190 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 3.1.2 (Python 3.6.6 on win32)" generated="20210918 16:55:18.200" rpa="false">
<suite id="s1" name="Login Customer" source="C:\RF\yyt-trading-rf-api\login_get_info\login_customer.robot">
<test id="s1-t1" name="customer_phone">
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20210918 16:55:18.361" endtime="20210918 16:55:18.361"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>uecclient</arg>
<arg>https://api-client-uec-test.qniao.cn</arg>
<arg>headers=${cloud_factory_header}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.361" level="INFO">Creating Session using : alias=uecclient, url=https://api-client-uec-test.qniao.cn, headers={'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847965388'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<status status="PASS" starttime="20210918 16:55:18.361" endtime="20210918 16:55:18.362"></status>
</kw>
<kw name="Set Variable" library="BuiltIn">
<doc>Returns the given values which can then be assigned to a variables.</doc>
<arguments>
<arg>{"accountType":2,"account":"13800138003","captcha":"888888"}</arg>
</arguments>
<assign>
<var>${body}</var>
</assign>
<msg timestamp="20210918 16:55:18.362" level="INFO">${body} = {"accountType":2,"account":"13800138003","captcha":"888888"}</msg>
<status status="PASS" starttime="20210918 16:55:18.362" endtime="20210918 16:55:18.362"></status>
</kw>
<kw name="Post On Session" library="RequestsLibrary">
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<arguments>
<arg>uecclient</arg>
<arg>/uec/authorize/by-captcha</arg>
<arg>${body}</arg>
</arguments>
<assign>
<var>${response}</var>
</assign>
<msg timestamp="20210918 16:55:18.665" 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.24.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847965388', 'Content-Length': '60'}
body={"accountType":2,"account":"13800138003","captcha":"888888"}
</msg>
<msg timestamp="20210918 16:55:18.665" 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': 'Sat, 18 Sep 2021 08:55:17 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/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==","userId":"584061932592566272"}}
</msg>
<msg timestamp="20210918 16:55:18.666" level="INFO">${response} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210918 16:55:18.362" endtime="20210918 16:55:18.666"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${response.status_code}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.666" level="INFO">200</msg>
<status status="PASS" starttime="20210918 16:55:18.666" endtime="20210918 16:55:18.666"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${response.text}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.666" level="INFO">{"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==","userId":"584061932592566272"}}</msg>
<status status="PASS" starttime="20210918 16:55:18.666" endtime="20210918 16:55:18.666"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${response.json()}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.667" level="INFO">{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==', 'userId': '584061932592566272'}}</msg>
<status status="PASS" starttime="20210918 16:55:18.666" endtime="20210918 16:55:18.667"></status>
</kw>
<kw name="Should Be Equal As Numbers" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to real numbers.</doc>
<arguments>
<arg>200</arg>
<arg>${response.status_code}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.667" level="INFO">Argument types are:
&lt;type 'unicode'&gt;
&lt;class 'int'&gt;</msg>
<status status="PASS" starttime="20210918 16:55:18.667" endtime="20210918 16:55:18.667"></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>successful</arg>
<arg>${response.json()["message"]}</arg>
</arguments>
<status status="PASS" starttime="20210918 16:55:18.667" endtime="20210918 16:55:18.668"></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>${response.json()["data"] }</arg>
<arg>token</arg>
</arguments>
<assign>
<var>${gettoken_customer}</var>
</assign>
<msg timestamp="20210918 16:55:18.668" level="INFO">${gettoken_customer} = iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==</msg>
<status status="PASS" starttime="20210918 16:55:18.668" endtime="20210918 16:55:18.668"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${gettoken_customer}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.668" level="INFO">iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==</msg>
<status status="PASS" starttime="20210918 16:55:18.668" endtime="20210918 16:55:18.668"></status>
</kw>
<kw name="Set Suite Variable" library="BuiltIn">
<doc>Makes a variable available everywhere within the scope of the current suite.</doc>
<arguments>
<arg>${gettoken_customer}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.669" level="INFO">${gettoken_customer} = iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==</msg>
<status status="PASS" starttime="20210918 16:55:18.668" endtime="20210918 16:55:18.669"></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>${response.json()["data"] }</arg>
<arg>userId</arg>
</arguments>
<assign>
<var>${userid_customer}</var>
</assign>
<msg timestamp="20210918 16:55:18.669" level="INFO">${userid_customer} = 584061932592566272</msg>
<status status="PASS" starttime="20210918 16:55:18.669" endtime="20210918 16:55:18.669"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${userid_customer}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.669" level="INFO">584061932592566272</msg>
<status status="PASS" starttime="20210918 16:55:18.669" endtime="20210918 16:55:18.669"></status>
</kw>
<kw name="Set Suite Variable" library="BuiltIn">
<doc>Makes a variable available everywhere within the scope of the current suite.</doc>
<arguments>
<arg>${userid_customer}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.670" level="INFO">${userid_customer} = 584061932592566272</msg>
<status status="PASS" starttime="20210918 16:55:18.669" endtime="20210918 16:55:18.670"></status>
</kw>
<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=503258978847965388</arg>
<arg>Authorization=${gettoken_customer}</arg>
</arguments>
<assign>
<var>&amp;{cloudfactorycustomerheader}</var>
</assign>
<msg timestamp="20210918 16:55:18.670" level="INFO">&amp;{cloudfactorycustomerheader} = { Content-Type=application/json;charset=UTF-8 | X-APP-ID=503258978847965388 | Authorization=iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg== }</msg>
<status status="PASS" starttime="20210918 16:55:18.670" endtime="20210918 16:55:18.670"></status>
</kw>
<kw name="Set Suite Variable" library="BuiltIn">
<doc>Makes a variable available everywhere within the scope of the current suite.</doc>
<arguments>
<arg>${cloudfactorycustomerheader}</arg>
</arguments>
<msg timestamp="20210918 16:55:18.670" level="INFO">${cloudfactorycustomerheader} = {'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847965388', 'Authorization': 'iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg=='}</msg>
<status status="PASS" starttime="20210918 16:55:18.670" endtime="20210918 16:55:18.671"></status>
</kw>
<status status="PASS" starttime="20210918 16:55:18.360" endtime="20210918 16:55:18.671" critical="yes"></status>
</test>
<status status="PASS" starttime="20210918 16:55:18.202" endtime="20210918 16:55:18.671"></status>
</suite>
<statistics>
<total>
<stat pass="1" fail="0">Critical Tests</stat>
<stat pass="1" fail="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="1" fail="0" id="s1" name="Login Customer">Login Customer</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>

2431
report.html
File diff suppressed because it is too large
View File

Loading…
Cancel
Save