纸通宝交易版
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.
 
 

23 lines
907 B

*** Settings ***
Library Collections
Library ExcelLibrary
Library urllib3
Library RequestsLibrary
*** Variables ***
${header} {'content-type':'application/json','X-APP-ID':'470236309865238528'}
*** Keywords ***
参数实例化
[Arguments] ${phonenum} ${captcha}
#验证码登录
Disable Warnings
Create Session ZTBT https://api-client-uec-test.qniao.cn ${header}
${data} Create Dictionary account=${phonenum} captcha=${captcha} accountType=2
#${data} Set Variable {"accountType":2,"account":"${account}","captcha":888888}
${respones} POST On Session ZTBT uec/authorize/by-captcha json=${data}
log ${respones.status_code}
log ${respones.json()}
${token} Get From Dictionary ${respones.json()["data"]} token
Set Global Variable ${token}
[Teardown]