|
|
@ -0,0 +1,19 @@ |
|
|
|
|
|
*** Settings *** |
|
|
|
|
|
Library RequestsLibrary |
|
|
|
|
|
Library Collections |
|
|
|
|
|
Library urllib3 |
|
|
|
|
|
|
|
|
|
|
|
*** Variables *** |
|
|
|
|
|
&{cloud_factory_header} Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847965388 |
|
|
|
|
|
|
|
|
|
|
|
*** Test Cases *** |
|
|
|
|
|
login_customer |
|
|
|
|
|
Disable Warnings |
|
|
|
|
|
Create Session uecclient https://api-client-uec-test.qniao.cn headers=${cloud_factory_header} |
|
|
|
|
|
${body} Set Variable {"accountType":2,"account":"13000000000","captcha":"888888"} |
|
|
|
|
|
${response} POST On Session uecclient /uec/authorize/by-captcha ${body} |
|
|
|
|
|
Log ${response.status_code} |
|
|
|
|
|
Log ${response.text} |
|
|
|
|
|
Log ${response.json()} |
|
|
|
|
|
Should Be Equal As Numbers 200 ${response.status_code} |
|
|
|
|
|
Should Be Equal As Strings successful ${response.json()["message"]} |