diff --git a/.yyt-trading.sh.swp b/.yyt-trading.sh.swp new file mode 100644 index 0000000..f75edd7 Binary files /dev/null and b/.yyt-trading.sh.swp differ diff --git a/__init__.robot b/__init__.robot deleted file mode 100644 index a1f6a55..0000000 --- a/__init__.robot +++ /dev/null @@ -1,4 +0,0 @@ -*** Settings *** -Library RequestsLibrary -Library Collections -Library urllib3 diff --git a/log.html b/log.html new file mode 100644 index 0000000..5769b4c --- /dev/null +++ b/log.html @@ -0,0 +1,2125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework log failed

+ +
+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/output.xml b/output.xml new file mode 100644 index 0000000..ced00ab --- /dev/null +++ b/output.xml @@ -0,0 +1,220 @@ + + + + + + + +Helper for quickly disabling all urllib3 warnings. + + + +Create Session: create a HTTP session to a server + +uecclient +https://api-client-uec-test.qniao.cn +headers=${cloud_factory_header} + +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 + + + +Returns the given values which can then be assigned to a variables. + +{"accountType":2,"account":"13000000000","captcha":"888888"} + + +${body} + +${body} = {"accountType":2,"account":"13000000000","captcha":"888888"} + + + +Sends a POST request on a previously created HTTP Session. + +uecclient +/uec/authorize/by-captcha +${body} + + +${response} + +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"} + +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 07:15:02 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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSjr5JOnrrEUcLJR93RJg65m","userId":"4163"}} + +${response} = <Response [200]> + + + +Logs the given message with the given level. + +${response.status_code} + +200 + + + +Logs the given message with the given level. + +${response.text} + +{"code":0,"message":"successful","data":{"token":"iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSjr5JOnrrEUcLJR93RJg65m","userId":"4163"}} + + + +Logs the given message with the given level. + +${response.json()} + +{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSjr5JOnrrEUcLJR93RJg65m', 'userId': '4163'}} + + + +Fails if objects are unequal after converting them to real numbers. + +200 +${response.status_code} + +Argument types are: +<type 'unicode'> +<class 'int'> + + + +Fails if objects are unequal after converting them to strings. + +successful +${response.json()["message"]} + + + + + + + + + + +Helper for quickly disabling all urllib3 warnings. + + + +Create Session: create a HTTP session to a server + +yytops +http://api-ops-yyt-test.qniao.cn +headers=${operation_backend_header} + +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 + + + +Creates and returns a dictionary based on the given ``items``. + +username=liangjinman@qniao.cn +password=qn123456 + + +&{data} + +&{data} = { username=liangjinman@qniao.cn | password=qn123456 } + + + +Sends a POST request on a previously created HTTP Session. + +yytops +/cloud-factory-operation-backend/admin/login +${data} + + +${resp} + +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 + +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 07:15:02 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":"登陆成功"} + +${resp} = <Response [200]> + + + +Logs the given message with the given level. + +${resp.status_code} + +200 + + + +Logs the given message with the given level. + +${resp.text} + +{"code":200,"message":"登陆成功"} + + + +Logs the given message with the given level. + +${resp.json()} + +{'code': 200, 'message': '登陆成功'} + + + +Fails if objects are unequal after converting them to real numbers. + +200 +${resp.status_code} + +Argument types are: +<type 'unicode'> +<class 'int'> + + + +Fails if objects are unequal after converting them to strings. + +登陆成功 +${resp.json()["message"]} + + + + + + + + + + + + + +Critical Tests +All Tests + + + + +Yyt-Trading-Rf-Api +Yyt-Trading-Rf-Api.Login Get Info +Yyt-Trading-Rf-Api.Login Get Info.Login Customer +Yyt-Trading-Rf-Api.Login Get Info.Login Operate + + + + + diff --git a/report.html b/report.html new file mode 100644 index 0000000..1b4703e --- /dev/null +++ b/report.html @@ -0,0 +1,2431 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/yyt-trading.sh b/yyt-trading.sh new file mode 100644 index 0000000..c8655be --- /dev/null +++ b/yyt-trading.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +cd /root/yyt-trading-rf-api +git pull --all + +python3 -m robot /root/yyt-trading-rf-api + +git add . +git commit -m "new report file" +git push