云印通原纸商城
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.
 
 

220 lines
11 KiB

<?xml version="1.0" encoding="UTF-8"?>
<robot generator="Robot 3.1.2 (Python 3.6.8 on linux)" generated="20210820 11:34:07.061" rpa="false">
<suite id="s1" name="Yyt-Trading-Rf-Api" source="/root/yyt-trading-rf-api">
<suite id="s1-s1" name="Login Get Info" source="/root/yyt-trading-rf-api/login_get_info">
<suite id="s1-s1-s1" name="Login Customer" source="/root/yyt-trading-rf-api/login_get_info/login_customer.robot">
<test id="s1-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 11:34:07.200" endtime="20210820 11:34:07.200"></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="20210820 11:34:07.201" 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 11:34:07.200" endtime="20210820 11:34:07.201"></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":"13000000000","captcha":"888888"}</arg>
</arguments>
<assign>
<var>${body}</var>
</assign>
<msg timestamp="20210820 11:34:07.201" level="INFO">${body} = {"accountType":2,"account":"13000000000","captcha":"888888"}</msg>
<status status="PASS" starttime="20210820 11:34:07.201" endtime="20210820 11:34:07.201"></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="20210820 11:34:07.284" 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 11:34:07.284" 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 03:34:07 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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSgSPiwmvkC2G9MNlyoocKXU","userId":"4163"}}
</msg>
<msg timestamp="20210820 11:34:07.284" level="INFO">${response} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 11:34:07.202" endtime="20210820 11:34:07.284"></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 11:34:07.285" level="INFO">200</msg>
<status status="PASS" starttime="20210820 11:34:07.285" endtime="20210820 11:34:07.285"></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 11:34:07.286" level="INFO">{"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSgSPiwmvkC2G9MNlyoocKXU","userId":"4163"}}</msg>
<status status="PASS" starttime="20210820 11:34:07.286" endtime="20210820 11:34:07.286"></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 11:34:07.287" level="INFO">{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSgSPiwmvkC2G9MNlyoocKXU', 'userId': '4163'}}</msg>
<status status="PASS" starttime="20210820 11:34:07.286" endtime="20210820 11:34:07.287"></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="20210820 11:34:07.287" level="INFO">Argument types are:
&lt;type 'unicode'&gt;
&lt;class 'int'&gt;</msg>
<status status="PASS" starttime="20210820 11:34:07.287" endtime="20210820 11:34:07.288"></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="20210820 11:34:07.288" endtime="20210820 11:34:07.288"></status>
</kw>
<status status="PASS" starttime="20210820 11:34:07.199" endtime="20210820 11:34:07.288" critical="yes"></status>
</test>
<status status="PASS" starttime="20210820 11:34:07.194" endtime="20210820 11:34:07.289"></status>
</suite>
<suite id="s1-s1-s2" name="Login Operate" source="/root/yyt-trading-rf-api/login_get_info/login_operate.robot">
<test id="s1-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 11:34:07.294" endtime="20210820 11:34:07.295"></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 11:34:07.295" 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 11:34:07.295" endtime="20210820 11:34:07.296"></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 11:34:07.296" level="INFO">&amp;{data} = { username=liangjinman@qniao.cn | password=qn123456 }</msg>
<status status="PASS" starttime="20210820 11:34:07.296" endtime="20210820 11:34:07.296"></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 11:34:07.436" 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 11:34:07.436" 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 03:34:07 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 11:34:07.436" level="INFO">${resp} = &lt;Response [200]&gt;</msg>
<status status="PASS" starttime="20210820 11:34:07.297" endtime="20210820 11:34:07.437"></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 11:34:07.438" level="INFO">200</msg>
<status status="PASS" starttime="20210820 11:34:07.437" endtime="20210820 11:34:07.438"></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 11:34:07.438" level="INFO">{"code":200,"message":"登陆成功"}</msg>
<status status="PASS" starttime="20210820 11:34:07.438" endtime="20210820 11:34:07.438"></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 11:34:07.439" level="INFO">{'code': 200, 'message': '登陆成功'}</msg>
<status status="PASS" starttime="20210820 11:34:07.439" endtime="20210820 11:34:07.439"></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 11:34:07.440" level="INFO">Argument types are:
&lt;type 'unicode'&gt;
&lt;class 'int'&gt;</msg>
<status status="PASS" starttime="20210820 11:34:07.439" endtime="20210820 11:34:07.440"></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 11:34:07.440" endtime="20210820 11:34:07.440"></status>
</kw>
<status status="PASS" starttime="20210820 11:34:07.294" endtime="20210820 11:34:07.440" critical="yes"></status>
</test>
<status status="PASS" starttime="20210820 11:34:07.290" endtime="20210820 11:34:07.441"></status>
</suite>
<status status="PASS" starttime="20210820 11:34:07.191" endtime="20210820 11:34:07.442"></status>
</suite>
<status status="PASS" starttime="20210820 11:34:07.062" endtime="20210820 11:34:07.442"></status>
</suite>
<statistics>
<total>
<stat pass="2" fail="0">Critical Tests</stat>
<stat pass="2" fail="0">All Tests</stat>
</total>
<tag>
</tag>
<suite>
<stat pass="2" fail="0" id="s1" name="Yyt-Trading-Rf-Api">Yyt-Trading-Rf-Api</stat>
<stat pass="2" fail="0" id="s1-s1" name="Login Get Info">Yyt-Trading-Rf-Api.Login Get Info</stat>
<stat pass="1" fail="0" id="s1-s1-s1" name="Login Customer">Yyt-Trading-Rf-Api.Login Get Info.Login Customer</stat>
<stat pass="1" fail="0" id="s1-s1-s2" name="Login Operate">Yyt-Trading-Rf-Api.Login Get Info.Login Operate</stat>
</suite>
</statistics>
<errors>
</errors>
</robot>