Browse Source

new report file

master
梁金满 4 years ago
parent
commit
546fa6c02e
4 changed files with 142 additions and 39 deletions
  1. 10
      log.html
  2. 159
      output.xml
  3. 10
      report.html
  4. 2
      test.sh

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

159
output.xml

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 3.1.2 (Python 3.6.8 on linux)" generated="20210820 10:05:27.796" rpa="false">
<suite id="s1" name="Login Get Info" source="/root/yyt-trading-rf-api/login_get_info.robot">
<test id="s1-t1" name="login_customer">
<robot generator="Robot 3.1.2 (Python 3.6.8 on linux)" generated="20210820 10:33:39.567" rpa="false">
<suite id="s1" name="Login Get Info" source="/root/yyt-trading-rf-api/login_get_info">
<suite id="s1-s1" name="Login Customer" source="/root/yyt-trading-rf-api/login_get_info/login_customer.robot">
<test id="s1-s1-t1" name="uec_authorize_by_captcha">
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20210820 10:05:27.905" endtime="20210820 10:05:27.905"></status>
<status status="PASS" starttime="20210820 10:33:39.698" endtime="20210820 10:33:39.698"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
@ -13,8 +14,8 @@
<arg>https://api-client-uec-test.qniao.cn</arg>
<arg>headers=${cloud_factory_header}</arg>
</arguments>
<msg timestamp="20210820 10:05:27.906" 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="20210820 10:05:27.905" endtime="20210820 10:05:27.906"></status>
<msg timestamp="20210820 10:33:39.699" 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="20210820 10:33:39.698" endtime="20210820 10:33:39.699"></status>
</kw>
<kw name="Set Variable" library="BuiltIn">
<doc>Returns the given values which can then be assigned to a variables.</doc>
@ -24,8 +25,8 @@
<assign>
<var>${body}</var>
</assign>
<msg timestamp="20210820 10:05:27.906" level="INFO">${body} = {"accountType":2,"account":"13000000000","captcha":"888888"}</msg>
<status status="PASS" starttime="20210820 10:05:27.906" endtime="20210820 10:05:27.906"></status>
<msg timestamp="20210820 10:33:39.700" level="INFO">${body} = {"accountType":2,"account":"13000000000","captcha":"888888"}</msg>
<status status="PASS" starttime="20210820 10:33:39.700" endtime="20210820 10:33:39.700"></status>
</kw>
<kw name="Post On Session" library="RequestsLibrary">
<doc>Sends a POST request on a previously created HTTP Session.</doc>
@ -37,42 +38,42 @@
<assign>
<var>${response}</var>
</assign>
<msg timestamp="20210820 10:05:27.990" level="INFO">POST Request : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
<msg timestamp="20210820 10:33:39.777" 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;charset=UTF-8', 'X-APP-ID': '503258978847965388', 'Content-Length': '60'}
body={"accountType":2,"account":"13000000000","captcha":"888888"}
</msg>
<msg timestamp="20210820 10:05:27.990" level="INFO">POST Response : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
<msg timestamp="20210820 10:33:39.778" 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': 'Fri, 20 Aug 2021 02:05:27 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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShNePslgTLdIOCcGmwdtQLB","userId":"4163"}}
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 20 Aug 2021 02:33:39 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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSh0xgYflwOyzDFNH/vyfkw3","userId":"4163"}}
</msg>
<msg timestamp="20210820 10:05:27.991" level="INFO">${response} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 10:05:27.907" endtime="20210820 10:05:27.991"></status>
<msg timestamp="20210820 10:33:39.778" level="INFO">${response} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 10:33:39.700" endtime="20210820 10:33:39.778"></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="20210820 10:05:27.992" level="INFO">200</msg>
<status status="PASS" starttime="20210820 10:05:27.991" endtime="20210820 10:05:27.992"></status>
<msg timestamp="20210820 10:33:39.779" level="INFO">200</msg>
<status status="PASS" starttime="20210820 10:33:39.778" endtime="20210820 10:33:39.779"></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="20210820 10:05:27.992" level="INFO">{"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShNePslgTLdIOCcGmwdtQLB","userId":"4163"}}</msg>
<status status="PASS" starttime="20210820 10:05:27.992" endtime="20210820 10:05:27.993"></status>
<msg timestamp="20210820 10:33:39.780" level="INFO">{"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSh0xgYflwOyzDFNH/vyfkw3","userId":"4163"}}</msg>
<status status="PASS" starttime="20210820 10:33:39.779" endtime="20210820 10:33:39.780"></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="20210820 10:05:27.993" level="INFO">{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShNePslgTLdIOCcGmwdtQLB', 'userId': '4163'}}</msg>
<status status="PASS" starttime="20210820 10:05:27.993" endtime="20210820 10:05:27.993"></status>
<msg timestamp="20210820 10:33:39.780" level="INFO">{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSh0xgYflwOyzDFNH/vyfkw3', 'userId': '4163'}}</msg>
<status status="PASS" starttime="20210820 10:33:39.780" endtime="20210820 10:33:39.780"></status>
</kw>
<kw name="Should Be Equal As Numbers" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to real numbers.</doc>
@ -80,10 +81,10 @@
<arg>200</arg>
<arg>${response.status_code}</arg>
</arguments>
<msg timestamp="20210820 10:05:27.994" level="INFO">Argument types are:
<msg timestamp="20210820 10:33:39.781" level="INFO">Argument types are:
&lt;type 'unicode'&gt;
&lt;class 'int'&gt;</msg>
<status status="PASS" starttime="20210820 10:05:27.994" endtime="20210820 10:05:27.994"></status>
<status status="PASS" starttime="20210820 10:33:39.781" endtime="20210820 10:33:39.781"></status>
</kw>
<kw name="Should Be Equal As Strings" library="BuiltIn">
<doc>Fails if objects are unequal after converting them to strings.</doc>
@ -91,21 +92,123 @@
<arg>successful</arg>
<arg>${response.json()["message"]}</arg>
</arguments>
<status status="PASS" starttime="20210820 10:05:27.994" endtime="20210820 10:05:27.995"></status>
<status status="PASS" starttime="20210820 10:33:39.781" endtime="20210820 10:33:39.782"></status>
</kw>
<status status="PASS" starttime="20210820 10:05:27.904" endtime="20210820 10:05:27.995" critical="yes"></status>
<status status="PASS" starttime="20210820 10:33:39.695" endtime="20210820 10:33:39.782" critical="yes"></status>
</test>
<status status="PASS" starttime="20210820 10:05:27.797" endtime="20210820 10:05:27.995"></status>
<status status="PASS" starttime="20210820 10:33:39.597" endtime="20210820 10:33:39.782"></status>
</suite>
<suite id="s1-s2" name="Login Operate" source="/root/yyt-trading-rf-api/login_get_info/login_operate.robot">
<test id="s1-s2-t1" name="cloud_factory_operation_backend_admin_login">
<kw name="Disable Warnings" library="urllib3">
<doc>Helper for quickly disabling all urllib3 warnings.</doc>
<status status="PASS" starttime="20210820 10:33:39.788" endtime="20210820 10:33:39.788"></status>
</kw>
<kw name="Create Session" library="RequestsLibrary">
<doc>Create Session: create a HTTP session to a server</doc>
<arguments>
<arg>yytops</arg>
<arg>http://api-ops-yyt-test.qniao.cn</arg>
<arg>headers=${operation_backend_header}</arg>
</arguments>
<msg timestamp="20210820 10:33:39.789" level="INFO">Creating Session using : alias=yytops, url=http://api-ops-yyt-test.qniao.cn, headers={'Content-Type': 'application/x-www-form-urlencoded'}, cookies={}, auth=None, timeout=None, proxies=None, verify=False, debug=0 </msg>
<status status="PASS" starttime="20210820 10:33:39.788" endtime="20210820 10:33:39.789"></status>
</kw>
<kw name="Create Dictionary" library="BuiltIn">
<doc>Creates and returns a dictionary based on the given ``items``.</doc>
<arguments>
<arg>username=liangjinman@qniao.cn</arg>
<arg>password=qn123456</arg>
</arguments>
<assign>
<var>&amp;{data}</var>
</assign>
<msg timestamp="20210820 10:33:39.790" level="INFO">&amp;{data} = { username=liangjinman@qniao.cn | password=qn123456 }</msg>
<status status="PASS" starttime="20210820 10:33:39.789" endtime="20210820 10:33:39.790"></status>
</kw>
<kw name="Post On Session" library="RequestsLibrary">
<doc>Sends a POST request on a previously created HTTP Session.</doc>
<arguments>
<arg>yytops</arg>
<arg>/cloud-factory-operation-backend/admin/login</arg>
<arg>${data}</arg>
</arguments>
<assign>
<var>${resp}</var>
</assign>
<msg timestamp="20210820 10:33:39.921" level="INFO">POST Request : url=http://api-ops-yyt-test.qniao.cn/cloud-factory-operation-backend/admin/login
path_url=/cloud-factory-operation-backend/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', 'Content-Length': '49'}
body=username=liangjinman%40qniao.cn&amp;password=qn123456
</msg>
<msg timestamp="20210820 10:33:39.922" level="INFO">POST Response : url=http://api-ops-yyt-test.qniao.cn/cloud-factory-operation-backend/admin/login
status=200, reason=
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 20 Aug 2021 02:33:39 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 4a8bb5b51207941b91dfa6f617504a38', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block', 'X-Frame-Options': 'DENY'}
body={"code":200,"message":"登陆成功"}
</msg>
<msg timestamp="20210820 10:33:39.922" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 10:33:39.790" endtime="20210820 10:33:39.922"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${resp.status_code}</arg>
</arguments>
<msg timestamp="20210820 10:33:39.923" level="INFO">200</msg>
<status status="PASS" starttime="20210820 10:33:39.923" endtime="20210820 10:33:39.923"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${resp.text}</arg>
</arguments>
<msg timestamp="20210820 10:33:39.924" level="INFO">{"code":200,"message":"登陆成功"}</msg>
<status status="PASS" starttime="20210820 10:33:39.923" endtime="20210820 10:33:39.924"></status>
</kw>
<kw name="Log" library="BuiltIn">
<doc>Logs the given message with the given level.</doc>
<arguments>
<arg>${resp.json()}</arg>
</arguments>
<msg timestamp="20210820 10:33:39.925" level="INFO">{'code': 200, 'message': '登陆成功'}</msg>
<status status="PASS" starttime="20210820 10:33:39.924" endtime="20210820 10:33:39.925"></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>${resp.status_code}</arg>
</arguments>
<msg timestamp="20210820 10:33:39.925" level="INFO">Argument types are:
&lt;type 'unicode'&gt;
&lt;class 'int'&gt;</msg>
<status status="PASS" starttime="20210820 10:33:39.925" endtime="20210820 10:33:39.925"></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>登陆成功</arg>
<arg>${resp.json()["message"]}</arg>
</arguments>
<status status="PASS" starttime="20210820 10:33:39.925" endtime="20210820 10:33:39.926"></status>
</kw>
<status status="PASS" starttime="20210820 10:33:39.787" endtime="20210820 10:33:39.926" critical="yes"></status>
</test>
<status status="PASS" starttime="20210820 10:33:39.783" endtime="20210820 10:33:39.927"></status>
</suite>
<status status="PASS" starttime="20210820 10:33:39.568" endtime="20210820 10:33:39.928"></status>
</suite>
<statistics>
<total>
<stat pass="1" fail="0">Critical Tests</stat>
<stat pass="1" fail="0">All Tests</stat>
<stat pass="2" fail="0">Critical Tests</stat>
<stat pass="2" fail="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="1" fail="0" id="s1" name="Login Get Info">Login Get Info</stat>
<stat pass="2" fail="0" id="s1" name="Login Get Info">Login Get Info</stat>
<stat pass="1" fail="0" id="s1-s1" name="Login Customer">Login Get Info.Login Customer</stat>
<stat pass="1" fail="0" id="s1-s2" name="Login Operate">Login Get Info.Login Operate</stat>
</suite>
</statistics>
<errors>

10
report.html

@ -1585,22 +1585,22 @@ storage = function () {
window.output = {};
</script>
<script type="text/javascript">
window.output["suite"] = [1,2,3,0,[],[1,0,198],[],[[4,0,1,0,[],[1,107,91],[]]],[],[1,1,1,1]];
window.output["suite"] = [1,2,3,0,[],[1,0,360],[[4,5,6,0,[],[1,29,185],[],[[7,0,1,0,[],[1,127,87],[]]],[],[1,1,1,1]],[8,9,10,0,[],[1,215,144],[],[[11,0,1,0,[],[1,219,139],[]]],[],[1,1,1,1]]],[],[],[2,2,2,2]];
</script>
<script type="text/javascript">
window.output["strings"] = [];
</script>
<script type="text/javascript">
window.output["strings"] = window.output["strings"].concat(["*","*Login Get Info","*/root/yyt-trading-rf-api/login_get_info.robot","*login_get_info.robot","*login_customer"]);
window.output["strings"] = window.output["strings"].concat(["*","*Login Get Info","*/root/yyt-trading-rf-api/login_get_info","*login_get_info","*Login Customer","*/root/yyt-trading-rf-api/login_get_info/login_customer.robot","*login_get_info/login_customer.robot","*uec_authorize_by_captcha","*Login Operate","*/root/yyt-trading-rf-api/login_get_info/login_operate.robot","*login_get_info/login_operate.robot","*cloud_factory_operation_backend_admin_login"]);
</script>
<script type="text/javascript">
window.output["stats"] = [[{"elapsed":"00:00:00","fail":0,"label":"Critical Tests","pass":1},{"elapsed":"00:00:00","fail":0,"label":"All Tests","pass":1}],[],[{"elapsed":"00:00:00","fail":0,"id":"s1","label":"Login Get Info","name":"Login Get Info","pass":1}]];
window.output["stats"] = [[{"elapsed":"00:00:00","fail":0,"label":"Critical Tests","pass":2},{"elapsed":"00:00:00","fail":0,"label":"All Tests","pass":2}],[],[{"elapsed":"00:00:00","fail":0,"id":"s1","label":"Login Get Info","name":"Login Get Info","pass":2},{"elapsed":"00:00:00","fail":0,"id":"s1-s1","label":"Login Get Info.Login Customer","name":"Login Customer","pass":1},{"elapsed":"00:00:00","fail":0,"id":"s1-s2","label":"Login Get Info.Login Operate","name":"Login Operate","pass":1}]];
</script>
<script type="text/javascript">
window.output["baseMillis"] = 1629425127797;
window.output["baseMillis"] = 1629426819568;
</script>
<script type="text/javascript">
window.output["generated"] = 204;
window.output["generated"] = 371;
</script>
<script type="text/javascript">
window.settings = {"background":{"fail":"#f66","nonCriticalFail":"#9e9","pass":"#9e9"},"logURL":"log.html","rpa":false,"title":""};

2
test.sh

@ -3,7 +3,7 @@
cd /root/yyt-trading-rf-api
git pull --all
python3 -m robot /root/yyt-trading-rf-api/login_get_info.robot
python3 -m robot /root/yyt-trading-rf-api/login_get_info
git add .

Loading…
Cancel
Save