纸通宝工厂版
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.
 
 

28 lines
1.5 KiB

*** Settings ***
Library RequestsLibrary
Library Collections
*** Test Cases ***
UEClogin
${header} Create Dictionary Content-Type=application/json X-APP-ID=503258978847953924
Create Session ZTB http://api-client-uec-test.qniao.cn ${header}
${data} Create Dictionary account=13517986787 captcha=888888 accountType=2
log ${data}
${respones} POST On Session ZTB /uec/authorize/by-captcha json=${data}
${gettoken} Get From Dictionary ${respones.json()["data"]} token
Set Global Variable ${gettoken}
ZTBlogin-token
${header} Create Dictionary Content-Type=application/json X-APP-ID=503258978847953926
Create Session ZTB http://api-client-ztb-test.qniao.cn ${header}
${token} Set Variable {"loginToken":"${gettoken}"}
${res} Post On Session ZTB recycle-user-center/authorize/get/product-line-token/by/login-token ${token}
${gettoken} Get From Dictionary ${res.json()} data
Set Global Variable ${gettoken}
后台管理login
${header} Create Dictionary Content-Type=application/json;charset=UTF-8 X-APP-ID=470236309865238555
Create Session 后台管理 http://api-ops-ztb-test.qniao.cn ${header}
${data} Create Dictionary username=mengyan@qniao.cn password=qn123456
log ${data}
${resp} Post On Session 后台管理 recycle-service/admin/employee/get/login-info json=${data}