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:35:47 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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShGaKKB2ruLlb+j1MZPOX2H","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/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShGaKKB2ruLlb+j1MZPOX2H","userId":"4163"}}
Logs the given message with the given level.
${response.json()}
{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tnXugE03gmmVVVkL14dTnShGaKKB2ruLlb+j1MZPOX2H', '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