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":"13800138003","captcha":"888888"}
${body}
${body} = {"accountType":2,"account":"13800138003","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.24.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":"13800138003","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': 'Sat, 18 Sep 2021 08:55:17 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/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==","userId":"584061932592566272"}}
${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/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==","userId":"584061932592566272"}}
Logs the given message with the given level.
${response.json()}
{'code': 0, 'message': 'successful', 'data': {'token': 'iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==', 'userId': '584061932592566272'}}
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"]}
Returns a value from the given ``dictionary`` based on the given ``key``.
${response.json()["data"] }
token
${gettoken_customer}
${gettoken_customer} = iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==
Logs the given message with the given level.
${gettoken_customer}
iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==
Makes a variable available everywhere within the scope of the current suite.
${gettoken_customer}
${gettoken_customer} = iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg==
Returns a value from the given ``dictionary`` based on the given ``key``.
${response.json()["data"] }
userId
${userid_customer}
${userid_customer} = 584061932592566272
Logs the given message with the given level.
${userid_customer}
584061932592566272
Makes a variable available everywhere within the scope of the current suite.
${userid_customer}
${userid_customer} = 584061932592566272
Creates and returns a dictionary based on the given ``items``.
Content-Type=application/json;charset=UTF-8
X-APP-ID=503258978847965388
Authorization=${gettoken_customer}
&{cloudfactorycustomerheader}
&{cloudfactorycustomerheader} = { Content-Type=application/json;charset=UTF-8 | X-APP-ID=503258978847965388 | Authorization=iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg== }
Makes a variable available everywhere within the scope of the current suite.
${cloudfactorycustomerheader}
${cloudfactorycustomerheader} = {'Content-Type': 'application/json;charset=UTF-8', 'X-APP-ID': '503258978847965388', 'Authorization': 'iHP4V/g6O5DXHixyNrf7tm/UsBwShEYjzGx1kBBPitW/uRQ/XF4TcsgaRNT5xfGbd8lW/8cZSuwx4bLjA9dbxg=='}
Critical Tests
All Tests
Login Customer