From 7518e5c443987b6d73ae7be7772e83c494cdf1c0 Mon Sep 17 00:00:00 2001 From: liangjinman Date: Fri, 20 Aug 2021 09:32:39 +0800 Subject: [PATCH] feat: new RF/demo report file --- log.html | 2125 ++++++++++++++++++++++++++++++++++++++++++++ output.xml | 113 +++ report.html | 2431 +++++++++++++++++++++++++++++++++++++++++++++++++++ test.sh | 11 + 4 files changed, 4680 insertions(+) create mode 100644 log.html create mode 100644 output.xml create mode 100644 report.html create mode 100644 test.sh diff --git a/log.html b/log.html new file mode 100644 index 0000000..ef97def --- /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..c1556ba --- /dev/null +++ b/output.xml @@ -0,0 +1,113 @@ + + + + + +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 01:32: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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSgjNYo+R2ShFkxkOTqU3WVR","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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSgjNYo+R2ShFkxkOTqU3WVR","userId":"4163"}} + + + +Logs the given message with the given level. + +${response.json()} + +{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnSgjNYo+R2ShFkxkOTqU3WVR', '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"]} + + + + + + + + + +Critical Tests +All Tests + + + + +Login Get Info + + + + + diff --git a/report.html b/report.html new file mode 100644 index 0000000..cc260b5 --- /dev/null +++ b/report.html @@ -0,0 +1,2431 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

Opening Robot Framework report failed

+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..2df387a --- /dev/null +++ b/test.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +cd /root/yyt-trading-rf-api +git pull --all + +python3 -m robot /root/yyt-trading-rf-api/yyt_trading/login_get_info.robot + + +git add . +git commit -m "feat: new RF/demo report file" +git push #master