From 79dad6bc16bef4b62af7dac96fee14f37cfad907 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E9=87=91=E6=BB=A1?= Date: Thu, 23 Sep 2021 10:29:02 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=20'output.xml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- output.xml | 220 ----------------------------------------------------- 1 file changed, 220 deletions(-) delete mode 100644 output.xml diff --git a/output.xml b/output.xml deleted file mode 100644 index ced00ab..0000000 --- a/output.xml +++ /dev/null @@ -1,220 +0,0 @@ - - - - - - - -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 - - - - -