@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<robot generator= "Robot 3.1.2 (Python 3.6.8 on linux)" generated= "20210820 11:06:12.072 " rpa= "false" >
<robot generator= "Robot 3.1.2 (Python 3.6.8 on linux)" generated= "20210820 11:06:22.123 " 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:06:12.191" endtime= "20210820 11:06:12.192 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.254" endtime= "20210820 11:06:22.254 " > </status>
</kw>
<kw name= "Create Session" library= "RequestsLibrary" >
<doc > Create Session: create a HTTP session to a server</doc>
@ -15,8 +15,8 @@
<arg > https://api-client-uec-test.qniao.cn</arg>
<arg > headers=${cloud_factory_header}</arg>
</arguments>
<msg timestamp= "20210820 11:06:12.192 " 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:06:12.192" endtime= "20210820 11:06:12.193 " > </status>
<msg timestamp= "20210820 11:06:22.254 " 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:06:22.254" endtime= "20210820 11:06:22.255 " > </status>
</kw>
<kw name= "Set Variable" library= "BuiltIn" >
<doc > Returns the given values which can then be assigned to a variables.</doc>
@ -26,8 +26,8 @@
<assign >
<var > ${body}</var>
</assign>
<msg timestamp= "20210820 11:06:12.193 " level= "INFO" > ${body} = {"accountType":2,"account":"13000000000","captcha":"888888"}</msg>
<status status= "PASS" starttime= "20210820 11:06:12.193" endtime= "20210820 11:06:12.193 " > </status>
<msg timestamp= "20210820 11:06:22.255 " level= "INFO" > ${body} = {"accountType":2,"account":"13000000000","captcha":"888888"}</msg>
<status status= "PASS" starttime= "20210820 11:06:22.255" endtime= "20210820 11:06:22.255 " > </status>
</kw>
<kw name= "Post On Session" library= "RequestsLibrary" >
<doc > Sends a POST request on a previously created HTTP Session.</doc>
@ -39,42 +39,42 @@
<assign >
<var > ${response}</var>
</assign>
<msg timestamp= "20210820 11:06:12.274 " level= "INFO" > POST Request : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
<msg timestamp= "20210820 11:06:22.331 " 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:06:12.274 " level= "INFO" > POST Response : url=https://api-client-uec-test.qniao.cn/uec/authorize/by-captcha
<msg timestamp= "20210820 11:06:22.331 " 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:06:1 2 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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSjViJ8mrl61zYJ7GDGzG0dt ","userId":"4163"}}
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 20 Aug 2021 03:06:2 2 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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShg0NuXQYosHm3p+3bbNd73 ","userId":"4163"}}
</msg>
<msg timestamp= "20210820 11:06:12.274 " level= "INFO" > ${response} = < Response [200]> </msg>
<status status= "PASS" starttime= "20210820 11:06:12.193" endtime= "20210820 11:06:12.274 " > </status>
<msg timestamp= "20210820 11:06:22.332 " level= "INFO" > ${response} = < Response [200]> </msg>
<status status= "PASS" starttime= "20210820 11:06:22.256" endtime= "20210820 11:06:22.332 " > </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:06:12.275 " level= "INFO" > 200</msg>
<status status= "PASS" starttime= "20210820 11:06:12.274" endtime= "20210820 11:06:12.275 " > </status>
<msg timestamp= "20210820 11:06:22.333 " level= "INFO" > 200</msg>
<status status= "PASS" starttime= "20210820 11:06:22.332" endtime= "20210820 11:06:22.333 " > </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:06:12.275 " level= "INFO" > {"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSjViJ8mrl61zYJ7GDGzG0dt ","userId":"4163"}}</msg>
<status status= "PASS" starttime= "20210820 11:06:12.275" endtime= "20210820 11:06:12.275 " > </status>
<msg timestamp= "20210820 11:06:22.333 " level= "INFO" > {"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShg0NuXQYosHm3p+3bbNd73 ","userId":"4163"}}</msg>
<status status= "PASS" starttime= "20210820 11:06:22.333" endtime= "20210820 11:06:22.334 " > </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:06:12.276 " level= "INFO" > {'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSjViJ8mrl61zYJ7GDGzG0dt ', 'userId': '4163'}}</msg>
<status status= "PASS" starttime= "20210820 11:06:12.275" endtime= "20210820 11:06:12.276 " > </status>
<msg timestamp= "20210820 11:06:22.334 " level= "INFO" > {'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShg0NuXQYosHm3p+3bbNd73 ', 'userId': '4163'}}</msg>
<status status= "PASS" starttime= "20210820 11:06:22.334" endtime= "20210820 11:06:22.334 " > </status>
</kw>
<kw name= "Should Be Equal As Numbers" library= "BuiltIn" >
<doc > Fails if objects are unequal after converting them to real numbers.</doc>
@ -82,10 +82,10 @@
<arg > 200</arg>
<arg > ${response.status_code}</arg>
</arguments>
<msg timestamp= "20210820 11:06:12.276 " level= "INFO" > Argument types are:
<msg timestamp= "20210820 11:06:22.335 " level= "INFO" > Argument types are:
< type 'unicode'>
< class 'int'> </msg>
<status status= "PASS" starttime= "20210820 11:06:12.276" endtime= "20210820 11:06:12.276 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.334" endtime= "20210820 11:06:22.335 " > </status>
</kw>
<kw name= "Should Be Equal As Strings" library= "BuiltIn" >
<doc > Fails if objects are unequal after converting them to strings.</doc>
@ -93,17 +93,17 @@
<arg > successful</arg>
<arg > ${response.json()["message"]}</arg>
</arguments>
<status status= "PASS" starttime= "20210820 11:06:12.276" endtime= "20210820 11:06:12.277 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.335" endtime= "20210820 11:06:22.336 " > </status>
</kw>
<status status= "PASS" starttime= "20210820 11:06:12.191" endtime= "20210820 11:06:12.277 " critical= "yes" > </status>
<status status= "PASS" starttime= "20210820 11:06:22.253" endtime= "20210820 11:06:22.336 " critical= "yes" > </status>
</test>
<status status= "PASS" starttime= "20210820 11:06:12.188" endtime= "20210820 11:06:12.27 7" > </status>
<status status= "PASS" starttime= "20210820 11:06:22.250" endtime= "20210820 11:06:22.33 7" > </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:06:1 2.28 2" endtime= "20210820 11:06:1 2.28 2" > </status>
<status status= "PASS" starttime= "20210820 11:06:22.343 " endtime= "20210820 11:06:22.343 " > </status>
</kw>
<kw name= "Create Session" library= "RequestsLibrary" >
<doc > Create Session: create a HTTP session to a server</doc>
@ -112,8 +112,8 @@
<arg > http://api-ops-yyt-test.qniao.cn</arg>
<arg > headers=${operation_backend_header}</arg>
</arguments>
<msg timestamp= "20210820 11:06:1 2.28 2" 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:06:1 2.28 2" endtime= "20210820 11:06:12.283 " > </status>
<msg timestamp= "20210820 11:06:22.344 " 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:06:22.343 " endtime= "20210820 11:06:22.344 " > </status>
</kw>
<kw name= "Create Dictionary" library= "BuiltIn" >
<doc > Creates and returns a dictionary based on the given ``items``.</doc>
@ -124,8 +124,8 @@
<assign >
<var > & {data}</var>
</assign>
<msg timestamp= "20210820 11:06:12.283 " level= "INFO" > & {data} = { username=liangjinman@qniao.cn | password=qn123456 }</msg>
<status status= "PASS" starttime= "20210820 11:06:12.283" endtime= "20210820 11:06:12.283 " > </status>
<msg timestamp= "20210820 11:06:22.344 " level= "INFO" > & {data} = { username=liangjinman@qniao.cn | password=qn123456 }</msg>
<status status= "PASS" starttime= "20210820 11:06:22.344" endtime= "20210820 11:06:22.344 " > </status>
</kw>
<kw name= "Post On Session" library= "RequestsLibrary" >
<doc > Sends a POST request on a previously created HTTP Session.</doc>
@ -137,42 +137,42 @@
<assign >
<var > ${resp}</var>
</assign>
<msg timestamp= "20210820 11:06:12.419 " level= "INFO" > POST Request : url=http://api-ops-yyt-test.qniao.cn/cloud-factory-operation-backend/admin/login
<msg timestamp= "20210820 11:06:22.402 " 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& password=qn123456
</msg>
<msg timestamp= "20210820 11:06:12.420 " level= "INFO" > POST Response : url=http://api-ops-yyt-test.qniao.cn/cloud-factory-operation-backend/admin/login
<msg timestamp= "20210820 11:06:22.403 " 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:06:1 2 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'}
headers={'Server': 'nginx/1.16.1', 'Date': 'Fri, 20 Aug 2021 03:06:2 2 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:06:12.420 " level= "INFO" > ${resp} = < Response [200]> </msg>
<status status= "PASS" starttime= "20210820 11:06:12.283" endtime= "20210820 11:06:12.420 " > </status>
<msg timestamp= "20210820 11:06:22.403 " level= "INFO" > ${resp} = < Response [200]> </msg>
<status status= "PASS" starttime= "20210820 11:06:22.345" endtime= "20210820 11:06:22.403 " > </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:06:12.421 " level= "INFO" > 200</msg>
<status status= "PASS" starttime= "20210820 11:06:12.420" endtime= "20210820 11:06:12.421 " > </status>
<msg timestamp= "20210820 11:06:22.404 " level= "INFO" > 200</msg>
<status status= "PASS" starttime= "20210820 11:06:22.404" endtime= "20210820 11:06:22.404 " > </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:06:12.422 " level= "INFO" > {"code":200,"message":"登陆成功"}</msg>
<status status= "PASS" starttime= "20210820 11:06:12.421" endtime= "20210820 11:06:12.422 " > </status>
<msg timestamp= "20210820 11:06:22.405 " level= "INFO" > {"code":200,"message":"登陆成功"}</msg>
<status status= "PASS" starttime= "20210820 11:06:22.405" endtime= "20210820 11:06:22.405 " > </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:06:12.422 " level= "INFO" > {'code': 200, 'message': '登陆成功'}</msg>
<status status= "PASS" starttime= "20210820 11:06:12.422" endtime= "20210820 11:06:12.422 " > </status>
<msg timestamp= "20210820 11:06:22.406 " level= "INFO" > {'code': 200, 'message': '登陆成功'}</msg>
<status status= "PASS" starttime= "20210820 11:06:22.405" endtime= "20210820 11:06:22.406 " > </status>
</kw>
<kw name= "Should Be Equal As Numbers" library= "BuiltIn" >
<doc > Fails if objects are unequal after converting them to real numbers.</doc>
@ -180,10 +180,10 @@
<arg > 200</arg>
<arg > ${resp.status_code}</arg>
</arguments>
<msg timestamp= "20210820 11:06:12.423 " level= "INFO" > Argument types are:
<msg timestamp= "20210820 11:06:22.406 " level= "INFO" > Argument types are:
< type 'unicode'>
< class 'int'> </msg>
<status status= "PASS" starttime= "20210820 11:06:12.422" endtime= "20210820 11:06:12.423 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.406" endtime= "20210820 11:06:22.406 " > </status>
</kw>
<kw name= "Should Be Equal As Strings" library= "BuiltIn" >
<doc > Fails if objects are unequal after converting them to strings.</doc>
@ -191,15 +191,15 @@
<arg > 登陆成功</arg>
<arg > ${resp.json()["message"]}</arg>
</arguments>
<status status= "PASS" starttime= "20210820 11:06:12.423" endtime= "20210820 11:06:12.423 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.406" endtime= "20210820 11:06:22.407 " > </status>
</kw>
<status status= "PASS" starttime= "20210820 11:06:12.281" endtime= "20210820 11:06:12.424 " critical= "yes" > </status>
<status status= "PASS" starttime= "20210820 11:06:22.342" endtime= "20210820 11:06:22.407 " critical= "yes" > </status>
</test>
<status status= "PASS" starttime= "20210820 11:06:12.278" endtime= "20210820 11:06:12.424 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.338" endtime= "20210820 11:06:22.407 " > </status>
</suite>
<status status= "PASS" starttime= "20210820 11:06:12.185" endtime= "20210820 11:06:12.425 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.247" endtime= "20210820 11:06:22.408 " > </status>
</suite>
<status status= "PASS" starttime= "20210820 11:06:12.073" endtime= "20210820 11:06:12.425 " > </status>
<status status= "PASS" starttime= "20210820 11:06:22.124" endtime= "20210820 11:06:22.409 " > </status>
</suite>
<statistics >
<total >