云印通原纸商城
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
767 B

*** Settings ***
Library RequestsLibrary
Library Collections
Library urllib3
*** Variables ***
&{operation_backend_header} Content-Type=application/x-www-form-urlencoded
*** Test Cases ***
operate_mail
Disable Warnings
Create Session yytops http://api-ops-yyt-test.qniao.cn headers=${operation_backend_header}
&{data} Create Dictionary username=liangjinman@qniao.cn password=qn123456
${resp} POST On Session yytops /cloud-factory-operation-backend/admin/login ${data}
Log ${resp.status_code}
Log ${resp.text}
Log ${resp.json()}
Should Be Equal As Numbers 200 ${resp.status_code}
Should Be Equal As Strings 登陆成功 ${resp.json()["message"]}