You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
807 B
19 lines
807 B
*** Settings ***
|
|
Library RequestsLibrary
|
|
Library Collections
|
|
Library urllib3
|
|
|
|
*** Variables ***
|
|
&{cloud_factory_header} Content-Type=application/json;charset=UTF-8 X-APP-ID=503258978847965388
|
|
|
|
*** Test Cases ***
|
|
customer_phone
|
|
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"]}
|